bug修改
This commit is contained in:
@@ -1,37 +1,38 @@
|
||||
<!-- 解析列表 -->
|
||||
<template>
|
||||
<el-dialog v-model="dialogVisible" title="详情" width="70%" draggable @closed="close">
|
||||
<vxe-table border auto-resize height="500" :data="tableData" v-bind="defaultAttribute">
|
||||
<vxe-column field="name" align="center" title="文件名称"></vxe-column>
|
||||
<vxe-column field="createTime" align="center" title="导入时间"></vxe-column>
|
||||
<vxe-column field="allCount" align="center" title="数据总数(条)" width="120"></vxe-column>
|
||||
<vxe-column field="realCount" align="center" title="已入库总数(条)" width="120"></vxe-column>
|
||||
<vxe-column field="state" align="center" title="解析状态" width="100">
|
||||
<template v-slot:default="scoped">
|
||||
<el-tag type="warning" v-if="scoped.row.state == 0">未解析</el-tag>
|
||||
<el-tag type="success" v-if="scoped.row.state == 1">解析成功</el-tag>
|
||||
<el-tag type="danger" v-if="scoped.row.state == 2">解析失败</el-tag>
|
||||
<el-tag type="primary" v-if="scoped.row.state == 3">文件不存在</el-tag>
|
||||
</template>
|
||||
</vxe-column>
|
||||
</vxe-table>
|
||||
<div :style="tableHeight">
|
||||
<vxe-table border auto-resize height="auto" :data="tableData" v-bind="defaultAttribute">
|
||||
<vxe-column field="name" align="center" title="文件名称"></vxe-column>
|
||||
<vxe-column field="createTime" align="center" title="导入时间"></vxe-column>
|
||||
<vxe-column field="allCount" align="center" title="数据总数(条)" width="120"></vxe-column>
|
||||
<vxe-column field="realCount" align="center" title="已入库总数(条)" width="120"></vxe-column>
|
||||
<vxe-column field="state" align="center" title="解析状态" width="100">
|
||||
<template v-slot:default="scoped">
|
||||
<el-tag type="warning" v-if="scoped.row.state == 0">未解析</el-tag>
|
||||
<el-tag type="success" v-if="scoped.row.state == 1">解析成功</el-tag>
|
||||
<el-tag type="danger" v-if="scoped.row.state == 2">解析失败</el-tag>
|
||||
<el-tag type="primary" v-if="scoped.row.state == 3">文件不存在</el-tag>
|
||||
</template>
|
||||
</vxe-column>
|
||||
</vxe-table>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { ref, onMounted, provide, watch, onBeforeUnmount } from 'vue'
|
||||
import { ref, onMounted, onBeforeUnmount } from 'vue'
|
||||
import TableStore from '@/utils/tableStore'
|
||||
import Table from '@/components/table/index.vue'
|
||||
import TableHeader from '@/components/table/header/index.vue'
|
||||
import { ArrowLeft } from '@element-plus/icons-vue'
|
||||
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
||||
import { mainHeight } from '@/utils/layout'
|
||||
const emit = defineEmits(['back'])
|
||||
const dialogVisible = ref(false)
|
||||
const tableHeight = mainHeight(550)
|
||||
const height = ref(0)
|
||||
height.value = window.innerHeight < 1080 ? 230 : 450
|
||||
|
||||
const tableStore: any = new TableStore({
|
||||
url: '',
|
||||
publicHeight: height.value,
|
||||
// publicHeight: height.value,
|
||||
showPage: false,
|
||||
column: [
|
||||
{ width: '60', type: 'checkbox', fixed: 'left' },
|
||||
@@ -57,9 +58,6 @@ const tableStore: any = new TableStore({
|
||||
2: '解析失败',
|
||||
3: '文件不存在'
|
||||
}
|
||||
// formatter: row => {
|
||||
// return row.cellValue == 1 ? '未注册' : row.cellValue == 2 ? '注册' : '接入'
|
||||
// },
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
@@ -99,10 +97,8 @@ const close = () => {
|
||||
dialogVisible.value = false
|
||||
}
|
||||
const updateViewportHeight = async () => {
|
||||
// height.value = window.innerHeight;
|
||||
height.value = window.innerHeight < 1080 ? 230 : 450
|
||||
tableStore.table.publicHeight = height.value
|
||||
// await tableStore.index()
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user