Selaa lähdekoodia

上传按钮禁用

duy 1 vuosi sitten
vanhempi
commit
3dd41f69b1
1 muutettua tiedostoa jossa 11 lisäystä ja 1 poistoa
  1. 11 1
      src/views/tasks/components/hc-data/middlepay-form.vue

+ 11 - 1
src/views/tasks/components/hc-data/middlepay-form.vue

@@ -106,7 +106,16 @@
             </template>
             <el-form :model="baseForm" label-position="left" label-width="auto">
                 <el-form-item label="上传附件">
-                    <hc-form-upload type="list" :src="baseForm.fileList" :h-props="uploadFormProps" is-del @upload="attachmentUpload" @change="attachmentUploadChange" @del="attachmentUploadDel" />
+                    <hc-form-upload 
+                        type="list" 
+                        :src="baseForm.fileList" 
+                        :h-props="uploadFormProps" 
+                        is-del 
+                        :disabled="taskInfo.status === 2 || taskInfo.status === 3 || tableInfo.status === 1" 
+                        @upload="attachmentUpload" 
+                        @change="attachmentUploadChange" 
+                        @del="attachmentUploadDel"
+                    />
                 </el-form-item>
             </el-form>
         </hc-card-item>
@@ -169,6 +178,7 @@ onMounted(() => {
 const taskInfo = ref({})
 const tableInfo = ref({})
 const setTaskInfo = (table, row) => {
+  
     tableInfo.value = table
     taskInfo.value = row
     if (getObjVal(table) && getObjVal(row)) {