Commit dcc27a62 authored by 何远江's avatar 何远江

显示文件ID字段

parent ea52a2ce
......@@ -7,7 +7,7 @@ import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import VXETable from 'vxe-table'
import VxeTable,{VXETable} from 'vxe-table'
import { setupRouter } from './router'
import { setupStore } from './stores'
......@@ -22,7 +22,20 @@ function bootstrap() {
setupRouter(app)
app.use(ElementPlus, {locale: zhCn})
app.use(VXETable)
VXETable.config({
table: {
columnConfig: {
resizable: true
},
rowConfig: {
isHover: true,
isCurrent: true,
}
}
})
app.use(VxeTable)
app.mount('#app')
}
......
......@@ -26,12 +26,15 @@
size="small"
min-height="460"
border
:column-config="{
resizable: true
}"
:loading="loading"
:data="tableData"
>
<vxe-column type="checkbox" width="50"></vxe-column>
<vxe-column field="customerId_dictText" title="客户名称" width="120"></vxe-column>
<vxe-column title="原始文件地址">
<vxe-column title="原始文件地址" min-width="300">
<template #default="{ row }">
<el-link
v-for="item in row.filePath.split(';')"
......@@ -42,15 +45,24 @@
>
</template>
</vxe-column>
<vxe-column title="标注文件地址">
<vxe-column field="orderFileId" title="标注文件ID" width="180"></vxe-column>
<vxe-column title="标注文件地址" min-width="300">
<template #default="{ row }">
<el-link target="_blank" :href="'/preview-excel?fileId=' + row.orderFileId">{{
row.mergeFilePath
}}</el-link>
</template>
</vxe-column>
<vxe-column field="templateFileId" title="模版文件ID" width="180"></vxe-column>
<vxe-column title="模版文件地址" min-width="300">
<template #default="{ row }">
<el-link target="_blank" :href="'/comment-excel?fileId=' + row.templateFileId">{{
row.templateFileId_dictText
}}</el-link>
</template>
</vxe-column>
<vxe-column field="createTime" title="创建时间" width="180"></vxe-column>
<vxe-column field="action" title="操作" width="80">
<vxe-column field="action" title="操作" width="80" fixed="right">
<template #default="{ row }">
<el-link
type="primary"
......
......@@ -31,7 +31,7 @@
>
<vxe-column type="checkbox" width="50"></vxe-column>
<vxe-column field="customerId_dictText" title="客户名称" width="120"></vxe-column>
<vxe-column title="原始文件地址">
<vxe-column title="原始文件地址" min-width="300">
<template #default="{ row }">
<el-link
v-for="item in row.filePath.split(';')"
......@@ -42,15 +42,24 @@
>
</template>
</vxe-column>
<vxe-column title="标注文件地址">
<vxe-column title="标注文件ID" field="orderFileId" width="180" />
<vxe-column title="标注文件地址" min-width="300">
<template #default="{ row }">
<el-link target="_blank" :href="'/preview-excel?fileId=' + row.orderFileId">{{
row.mergeFilePath
}}</el-link>
</template>
</vxe-column>
<vxe-column title="模版文件ID" field="templateFileId" width="180" />
<vxe-column title="模版文件地址" min-width="300">
<template #default="{ row }">
<el-link target="_blank" :href="'/comment-excel?fileId=' + row.templateFileId">{{
row.mergeFilePath
}}</el-link>
</template>
</vxe-column>
<vxe-column field="createTime" title="创建时间" width="180"></vxe-column>
<vxe-column field="action" title="操作" width="80">
<vxe-column field="action" title="操作" width="80" fixed="right">
<template #default="{ row }">
<el-link
type="primary"
......
......@@ -27,7 +27,8 @@
>
<vxe-column type="checkbox" width="50"></vxe-column>
<vxe-column field="customerId_dictText" title="客户名称" width="120"></vxe-column>
<vxe-column title="原始文件地址">
<vxe-column field="varFileId" title="变量文件ID" width="180"></vxe-column>
<vxe-column title="原始文件地址" min-width="300">
<template #default="{ row }">
<el-link
v-for="item in row.filePath.split(';')"
......@@ -38,7 +39,7 @@
>
</template>
</vxe-column>
<vxe-column title="标注文件地址">
<vxe-column title="标注文件地址" min-width="300">
<template #default="{ row }">
<el-link target="_blank" :href="'/preview-excel?fileId=' + row.varFileId + '&type=var'">{{
row.mergeFilePath
......@@ -46,7 +47,7 @@
</template>
</vxe-column>
<vxe-column field="createTime" title="创建时间" width="180"></vxe-column>
<vxe-column field="action" title="操作" width="80">
<vxe-column field="action" title="操作" width="80" fixed="right">
<template #default="{ row }">
<el-link
type="primary"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment