From 9c76501511609056b692d8cd0b4c4640f4ad7694 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 19 Aug 2024 15:18:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:pc=E7=AB=AF=E4=BD=9C=E4=B8=9A=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E6=B7=BB=E5=8A=A0=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wf/ticketdetail.vue | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/src/views/wf/ticketdetail.vue b/src/views/wf/ticketdetail.vue index ded02abf..ef8343c3 100644 --- a/src/views/wf/ticketdetail.vue +++ b/src/views/wf/ticketdetail.vue @@ -245,6 +245,9 @@ + + + { - this.operationBtn = res; + that.operationBtn = res; + if(res.length>0){ + for (let i = 0; i < res.length; i++) { + if(res[i].on_submit_func=="apps.opm.services.check_opl_audit_imgs"){ + that.audit_imgs_show = true; + } + } + } + }); }, //访客详情 @@ -822,6 +844,9 @@ export default { params.ticket_data.close_note = this.form.close_note; params.ticket_data.close_dos = this.form.close_dos; } + if(this.audit_imgs_show){ + params.ticket_data.audit_imgs = this.audit_imgs; + } this.$API.wf.ticket.ticketHandle .req(this.ticketId, params) .then((res) => { From 8a8c8322a5031a58817b71b0c1552b4f307ed834 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 19 Aug 2024 16:33:56 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=E5=AE=A1=E6=89=B9=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=A4=8D=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wf/ticketdetail.vue | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/views/wf/ticketdetail.vue b/src/views/wf/ticketdetail.vue index ef8343c3..6d2fba90 100644 --- a/src/views/wf/ticketdetail.vue +++ b/src/views/wf/ticketdetail.vue @@ -769,11 +769,23 @@ export default { }, //许可证详情 getOpl() { - this.$API.opm.opl.read.req(this.projectId).then((res) => { - debugger; - console.log(res); - this.itemDetail = res; - this.operationId = res.operation; + let that = this; + that.$API.opm.opl.read.req(that.projectId).then((res) => { + // debugger; + // console.log(res); + that.itemDetail = res; + that.operationId = res.operation; + if(res.audit_imgs.length>0){ + that.audit_imgs = res.audit_imgs; + res.audit_imgs_.forEach((item) => { + let obj = {}; + Object.assign(obj, item); + obj.url = item.file; + that.fileurl.push(obj) + }); + // console.log('that.audit_imgs',that.audit_imgs) + // console.log('that.fileurl',that.fileurl) + } }); }, showMoreInfo() {