From d4c312d982d453d833232266d52f4564524f3c90 Mon Sep 17 00:00:00 2001 From: "zhaokaiyao@91isoft.com" <6922339zky> Date: Mon, 11 Oct 2021 16:53:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E5=85=A5=E5=BA=93=E6=B5=81?= =?UTF-8?q?=E7=A8=8B1->=E6=B7=BB=E5=8A=A0=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E5=87=BA=E7=8E=B0undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzrk/step1.vue | 66 +++++++++++++------ 1 file changed, 47 insertions(+), 19 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index 175355b33..1ec709505 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -1533,7 +1533,6 @@ watch:{ 'form.country': { handler (val) { - console.log(val) if (val !== '' && val !== null && typeof (val) !== 'undefined') { if (val instanceof Array) { this.countryArr = val.join(","); @@ -1727,7 +1726,7 @@ data.forEach(item => { this.$set(this.textStatusMap, item.value, item.label) }) - console.log(this.textStatusMap, '文本状态的值') + }, clearFormData(data){ this.form = { @@ -1818,10 +1817,10 @@ const bringData = this.standardCheckedList[0] bringData.signFlag = this.form.signFlag && this.form.signFlag != '' ? this.form.signFlag : '0' bringData.standInData = this.form.standInData && this.form.standInData != '' ? this.form.standInData : '0' - console.log(bringData) + const json = Object.assign(bringData, bringData.attrInfoCaseMap); this.form = JSON.parse(JSON.stringify(json)) - console.log(json,'AAAAAAA') + this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw && JSON.parse(JSON.stringify(json)).qcdw !== '[]' ? JSON.parse(JSON.stringify(json)).qcdw.split(',') : [] this.form.wssmr = JSON.parse(JSON.stringify(json)).wssmr && JSON.parse(JSON.stringify(json)).wssmr !== '[]' ? JSON.parse(JSON.stringify(json)).wssmr.split(',') : [] this.form.zrgcs = JSON.parse(JSON.stringify(json)).zrgcs && JSON.parse(JSON.stringify(json)).zrgcs !== '[]' ? JSON.parse(JSON.stringify(json)).zrgcs.split(',') : [] @@ -2213,7 +2212,6 @@ }, // 导入标准数据成功后执行 importFileSuccess (response, file,fileList) { - console.log("helloFIleSuccess") // 上传成功后判断是否是两条数据是的话替换掉旧数据 // if (fileList.length > 1) { // this.fileList = fileList.splice(0, 1) @@ -2224,49 +2222,81 @@ if(this.fileType === 'fbgbjbd'){ this.FBGBJBDFileList=fileList; this.form.fbgbjbd += response.data.id+','; + if( this.form.fbgbjbdName=== undefined){ + this.form.fbgbjbdName='' + } this.form.fbgbjbdName += response.data.name+','; }else if(this.fileType === 'xgd'){ - this.xgdFileList=fileList; - this.form.xgd += response.data.id+','; + this.xgdFileList=fileList; + this.form.xgd += response.data.id+','; + if( this.form.xgdName=== undefined){ + this.form.xgdName='' + } this.form.xgdName += response.data.name+','; }else if(this.fileType === 'bpg'){ this.bpgFileList=fileList; this.form.bpg += response.data.id+','; + if( this.form.bpgName=== undefined){ + this.form.bpgName='' + } this.form.bpgName += response.data.name+','; }else if(this.fileType === 'ssg'){ this.ssgFileList=fileList; this.form.ssg += response.data.id+','; + if( this.form.ssgName=== undefined){ + this.form.ssgName='' + } this.form.ssgName += response.data.name+','; }else if(this.fileType === 'zqyjg'){ this.zqyjgFileList=fileList; - this.form.zqyjg += response.data.id+','; + this.form.zqyjg += response.data.id+','; + if( this.form.zqyjgName=== undefined){ + this.form.zqyjgName='' + } this.form.zqyjgName += response.data.name+','; }else if(this.fileType === 'jdwj'){ this.jdwjFileList=fileList; this.form.jdwj += response.data.id+','; + if( this.form.jdwjName=== undefined){ + this.form.jdwjName='' + } this.form.jdwjName += response.data.name+','; }else if(this.fileType === 'kwj'){ this.kwjFileList=fileList; this.form.kwj += response.data.id+','; + if( this.form.kwjName=== undefined){ + this.form.kwjName='' + } this.form.kwjName += response.data.name+','; - }else if(this.fileType === 'xgd'){ - this.xgdFileList=fileList; - this.form.xgd += response.data.id+','; - this.form.xgdName += response.data.name+','; - }else if(this.fileType === 'glwj'){ + } + // else if(this.fileType === 'xgd'){ + // this.xgdFileList=fileList; + // this.form.xgd += response.data.id+','; + // this.form.xgdName += response.data.name+','; + // } + else if(this.fileType === 'glwj'){ this.qlwjFileList=fileList; this.form.glwj += response.data.id+','; + if( this.form.glwjName=== undefined){ + this.form.glwjName='' + } this.form.glwjName += response.data.name+','; }else if(this.fileType === 'ca'){ this.caFileList=fileList; this.form.ca += response.data.id+','; + if( this.form.caName=== undefined){ + this.form.caName='' + } this.form.caName += response.data.name+','; }else if(this.fileType === 'zbjbd'){ this.zbjbdFileList=fileList; this.form.zbjbd += response.data.id+','; + if( this.form.zbjbdName=== undefined){ + this.form.zbjbdName='' + } this.form.zbjbdName += response.data.name+','; } - this.$message({ + this.$message({ showClose: true, message: response.message, type: 'success' @@ -2299,7 +2329,6 @@ }else if (type==='glwj'){ this.fileList=this.qlwjFileList; } - this.fileMadel = true; }, @@ -2312,7 +2341,7 @@ } this.modalShowFlag1 = false } - + }, popoverHideCancel(){ this.modalShowFlag1 = false @@ -2328,7 +2357,7 @@ } this.modalShowFlag2 = false } - + }, popoverHideBusVsCancel(){ this.modalShowFlag2 = false @@ -2360,7 +2389,7 @@ } this.modalShowFlag4 = false } - + }, popoverHideModelCancel(){ this.modalShowFlag4 = false @@ -2407,7 +2436,6 @@ roleForm: this.roleForm, commentText: this.commentText })) - console.log(_formData, '参数') saveTaskFirst(_formData).then(res => { this.saveLoading = false this.$message.success('保存成功')