Browse Source

上传按钮禁用

duy 1 year ago
parent
commit
6a7e01f2f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/tasks/components/hc-data/material-form.vue

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

@@ -60,7 +60,7 @@
             </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>