From 0122532e226e7d39e372a3d81a96abb50495ddd1 Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Wed, 22 Dec 2021 20:50:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E5=BA=93=20-=20=E5=88=86?= =?UTF-8?q?=E8=A7=A3=E5=8D=95=20-=20=E6=97=A5=E6=9C=9F=E5=A4=9A=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/details/otherStandardDetails/index.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index 34122febe..c0dd20f61 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -2515,17 +2515,24 @@ export default { if (this.selectedItemList.length>0){ this.editResolveListShowflag = true let editItem = JSON.parse(JSON.stringify(this.selectedItemList[0])) + console.log('2518',editItem) this.resolveListForm = editItem this.resolveListForm.termsConditions = this.resolveListForm.termsConditions?this.resolveListForm.termsConditions.replace(/<.*?>/ig, ' '):'' // this.resolveListForm.readContent = this.readContent?this.readContent.replace(/<.*?>/ig, ' '):'' + this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.split(',') + this.resolveListForm.zccssrq = this.resolveListForm.zccssrq.split(',') }else { this.$message.warning('请选择一条数据') } }, saveEditInfo(){ - console.log('2530',this.resolveListForm) - this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.join(',') - this.resolveListForm.zccssrq = this.resolveListForm.zccssrq.join(',') + console.log('2530',typeof this.resolveListForm.xccssrq) + if (typeof this.resolveListForm.xccssrq !== 'string'){ + this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.join(',') + } + if (typeof this.resolveListForm.zccssrq !== 'string'){ + this.resolveListForm.zccssrq = this.resolveListForm.zccssrq.join(',') + } this.$http.putData( 'SarStandItems/sar-stand-items/updateSarItemAndInterpretation', this.resolveListForm,