|
@@ -313,7 +313,7 @@
|
|
|
<template #action="{ row, index }">
|
|
|
<el-button v-if="tableUploadType === 'edit'" plain size="small" type="warning" @click="tableRowName(row)">查看文件</el-button>
|
|
|
<el-button v-if="tableUploadType === 'edit'" :loading="row.newBtnLoading" plain size="small" type="primary" @click="substitutionClick(row)">替换</el-button>
|
|
|
- <el-button :loading="row.delBtnLoading" class="ml-2" plain size="small" type="danger" @click="delUploadData(row, index)">删除</el-button>
|
|
|
+ <el-button :loading="row.delBtnLoading" plain size="small" type="danger" @click="delUploadData(row, index)">删除</el-button>
|
|
|
</template>
|
|
|
</HcTable>
|
|
|
<template #footer>
|
|
@@ -1374,6 +1374,7 @@ const tableUploadColumn = ref([
|
|
|
{ key: 'action', name: '操作', width: 220 },
|
|
|
])
|
|
|
const setTableUploadColumn = () => {
|
|
|
+ const type = tableUploadType
|
|
|
if (isBuiltDrawing.value === 2) {
|
|
|
tableUploadColumn.value = [
|
|
|
{ key: 'fileNumber', name: '文件编号', width: 200 },
|
|
@@ -1387,7 +1388,11 @@ const setTableUploadColumn = () => {
|
|
|
{ key: 'isNeedCertification', name: '是否需要认证', width: 100 },
|
|
|
{ key: 'dutyUser', name: '责任者', width: 160 },
|
|
|
{ key: 'isElement', name: '是否四要素', width: 90 },
|
|
|
- { key: 'action', name: '操作', width: 220, align: 'center', fixed: 'right' },
|
|
|
+ {
|
|
|
+ key: 'action', name: '操作',
|
|
|
+ width: type.value === 'edit' ? 220 : 70,
|
|
|
+ align: 'center', fixed: 'right',
|
|
|
+ },
|
|
|
]
|
|
|
sheetTypeStatus()
|
|
|
sheetSourceStatus()
|
|
@@ -1400,7 +1405,11 @@ const setTableUploadColumn = () => {
|
|
|
{ key: 'isNeedCertification', name: '是否需要认证', width: 100 },
|
|
|
{ key: 'dutyUser', name: '责任者', width: 160 },
|
|
|
{ key: 'isElement', name: '是否四要素', width: 90 },
|
|
|
- { key: 'action', name: '操作', width: 220, align: 'center', fixed: 'right' },
|
|
|
+ {
|
|
|
+ key: 'action', name: '操作',
|
|
|
+ width: type.value === 'edit' ? 220 : 70,
|
|
|
+ align: 'center', fixed: 'right',
|
|
|
+ },
|
|
|
]
|
|
|
}
|
|
|
}
|