duy 1 tahun lalu
induk
melakukan
7ec810dd20
1 mengubah file dengan 8 tambahan dan 6 penghapusan
  1. 8 6
      src/views/patrol/add.vue

+ 8 - 6
src/views/patrol/add.vue

@@ -158,13 +158,14 @@
                             <hc-table-input v-model="row.rectifyFeedback" type="textarea" :disabled="type === 'review' || type === 'view'" />
                         </template>
                         <template #rectifyAttachment="{ row, index }">
-                            <el-link v-if="row?.rectifyAttachmentName" type="primary" :disabled="type === 'review' || type === 'view'" @click="clickAttachment(row)">{{ row.rectifyAttachmentName }}</el-link>
-                            <template v-else>
-                                <el-link v-if="type === 'changeRow' || type === 'add' || type === 'confirmChange'" :disabled="type === 'review' || type === 'view'" @click="clickAttachment(row, index)">上传</el-link>
-                                <el-link v-else type="primary" @click="openAttachment(row, index)">
-                                    上传
-                                </el-link>
+                            <template v-if="row?.rectifyAttachment">
+                                <el-link v-if=" type === 'changeRow' || type === 'add'" type="primary" @click="clickAttachment(row, index)">{{ row.rectifyAttachmentName }}</el-link>
+                                <el-link v-else @click="openAttachment(row)">{{ row.rectifyAttachmentName }}</el-link>
                             </template>
+                              
+                            <el-link v-else type="primary" @click="clickAttachment(row, index)">
+                                上传
+                            </el-link>
                         </template>
                         <template #inspectUserName="{ row }">
                             <hc-table-input v-model="row.inspectUserName" type="textarea" :disabled="type === 'review' || type === 'view'" />
@@ -713,6 +714,7 @@ const saveInfo = async ()=>{
         saveLoading.value = false
         if (!error && code === 200) {
             window?.$message?.success('操作成功')
+      
             goList()
         }
     }