Lijy há 4 meses atrás
pai
commit
b0eda2c73c

+ 3 - 4
fhKeeper/formulahousekeeper/timesheet/src/components/taskComponent.vue

@@ -1997,14 +1997,13 @@ export default {
     },
     showReasonForRejection(item) {
         const taskId = this.taskId
+        const id = item
         this.http.post('/task/getFileRejectReason',{
             taskId
         },res => {
             if(res.code == 'ok'){
-                const text = (res.data || []).map(item => {
-                    return `文件【${item.documentName}】的驳回原因为:${item.fileRejectReason}<br/>`
-                })
-                this.$alert(text.join(''), '驳回原因', { dangerouslyUseHTMLString: true });
+                let text = res.data.find(item => item.id == id)
+                this.$alert(text.fileRejectReason, '驳回原因');
             }else {
                 this.$message.error(res.msg)
             }