From 9b3446fe6886a61efa3004278dec1e620842dd0a Mon Sep 17 00:00:00 2001 From: zhen <1173776308@qq.com> Date: Fri, 26 Jul 2024 15:53:39 +0800 Subject: [PATCH] =?UTF-8?q?bug=20=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/smart/workpermitDetail.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/smart/workpermitDetail.vue b/src/views/smart/workpermitDetail.vue index ea69f1d..fce75f9 100644 --- a/src/views/smart/workpermitDetail.vue +++ b/src/views/smart/workpermitDetail.vue @@ -522,8 +522,9 @@ }, }, created () { + this.form =" "; this.type = this.option.column[0]; - if(this.$route.query.frameMode == "search"){ + if(this.$route.query.frameMode === "search"){ this.option.column.push({ label: '工作票附票', prop: 'attachment' }); this.readonlyForm=true; this.shouldShowButton=true; @@ -541,7 +542,6 @@ this.UpdateShowButton=false; this.addUpdateShowButton=true; this.frame_class = null; - this.form =" "; } const create_user = this.findObject(this.optionParam.column, "createUser"); create_user.display = false; @@ -701,15 +701,6 @@ SearchDetail() { getDetail(this.$route.query.id).then(res => { console.log(res); - const charactersPerRow = 20; - //延期申请理由 - let extRegReasonLen = res.data.data.extRegReason.length; - let extRegReasonLenRows = Math.ceil(extRegReasonLen / charactersPerRow); - this.tab1_option.column[20].maxRows = extRegReasonLenRows; - //变更申请理由 - let changeReasonLen = res.data.data.changeReason.length; - let changeReasonLenRows = Math.ceil(changeReasonLen / charactersPerRow); - this.tab1_option.column[22].maxRows = changeReasonLenRows; this.tab1_form = res.data.data; switch (this.tab1_form.checkStatus){ case 1: @@ -724,6 +715,15 @@ default: this.form =" "; } + const charactersPerRow = 20; + //延期申请理由 + let extRegReasonLen = res.data.data.extRegReason.length; + let extRegReasonLenRows = Math.ceil(extRegReasonLen / charactersPerRow); + this.tab1_option.column[20].maxRows = extRegReasonLenRows; + //变更申请理由 + let changeReasonLen = res.data.data.changeReason.length; + let changeReasonLenRows = Math.ceil(changeReasonLen / charactersPerRow); + this.tab1_option.column[22].maxRows = changeReasonLenRows; }); }, closeTicket() {