From 19924726b3be760a27d4d736f413d982ef53256c Mon Sep 17 00:00:00 2001 From: zhen <1173776308@qq.com> Date: Wed, 17 Jul 2024 10:10:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=9C=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/smart/operationticketDetail.vue | 26 ++++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/views/smart/operationticketDetail.vue b/src/views/smart/operationticketDetail.vue index 941056d..f86478a 100644 --- a/src/views/smart/operationticketDetail.vue +++ b/src/views/smart/operationticketDetail.vue @@ -77,7 +77,7 @@ 驳回 修改 { - this.tab1_form.reviewStatus="1" - this.tab1_form.sts= "1" + this.tab1_form.reviewStatus="1"; + this.tab1_form.sts= "1" ; add(this.tab1_form).then(()=>{ this.$router.push({ path: "/smart/operationticket", @@ -697,7 +697,7 @@ export default { type: "warning" }).then(() => { this.tab1_form.reviewStatus="1" - add(this.tab1_form).then(() => { + update(this.tab1_form).then(() => { this.$router.push({ path: "/smart/operationticket", query: {}, @@ -716,14 +716,14 @@ export default { } }, back() { - if(this.$route.query.frameMode=="add") { + if(this.$route.query.frameMode==="add") { this.$router.push({path: "/smart/operationticket"}); }else{ this.updateToSearch(); this.SearchDetail(); } }, - seachToUpdate () { + searchToUpdate () { this.shouldShowButton=false; this.addUpdateShowButton=true; this.readonlyForm=false; @@ -740,9 +740,15 @@ export default { this.item_form.operationTicketNo = this.tab1_form.operationTicketNo; this.item_onLoad(); if(this.type.prop==='operationItem'){ + this.shouldShowButton=false; this.addUpdateShowButton=false; - }else { - this.addUpdateShowButton=true; + } + else { + if(this.$route.query.frameMode!=="add"){ + this.updateToSearch() + }else { + this.addUpdateShowButton = this.type.prop !== 'operationItem'; + } } },