Browse Source

默认需要审批

ZaiZai 4 months ago
parent
commit
38e9731ec9
2 changed files with 13 additions and 4 deletions
  1. 1 1
      public/version.json
  2. 12 3
      src/views/file/collection.vue

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20241015095612"
+  "value": "20241015101223"
 }

+ 12 - 3
src/views/file/collection.vue

@@ -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',
+            },
         ]
     }
 }