From 922ffeb0c14df093c9ba1a2d566cf400ba3f313d Mon Sep 17 00:00:00 2001 From: zhangyichen <5277314+zacty@user.noreply.gitee.com> Date: Mon, 28 Mar 2022 15:33:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug=2052181=20=E6=A0=87?= =?UTF-8?q?=E5=87=86=E6=B3=95=E8=A7=84=E6=B8=85=E5=8D=95--=E5=9C=A8?= =?UTF-8?q?=E9=AB=98=E7=BA=A7=E6=9F=A5=E8=AF=A2=E5=86=85=E7=9A=84=E6=A0=87?= =?UTF-8?q?=E5=87=86=E5=8F=B7=E8=BE=93=E5=85=A5=E4=BF=A1=E6=81=AF=EF=BC=8C?= =?UTF-8?q?=E7=9B=AE=E5=89=8D=E5=A4=96=E4=BE=A7=E7=9A=84=E6=A0=87=E5=87=86?= =?UTF-8?q?=E5=8F=B7=E4=B9=9F=E4=BC=9A=E8=87=AA=E5=8A=A8=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/addEdit.vue | 46 +++++++++++++------ 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index 688a29fde..303d501de 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -503,16 +503,16 @@ + v-model="sarAccessInfo.seniorStandNumber" + :placeholder="'请输入' + standLabelNum"/> + v-model="sarAccessInfo.seniorLawsNumber" + :placeholder="'请输入' + standLabelNum"/> + v-model="sarAccessInfo.seniorStandCode" + :placeholder="'请输入' + standLabelNum"/> @@ -845,9 +845,14 @@ export default { id: '', standName: '', standNumber: '', + lawsNumber: '', standCode: '', // 政策编号 textStatus: '', + seniorStandNumber: '', + seniorLawsNumber: '', + seniorStandCode: '', + textStatusBuss: '', CLLX: '', SYRZ: '', @@ -1032,7 +1037,7 @@ export default { }*/ this.sarAccessInfo = formData this.showQueryMore = false - this.selectLawsStands() + this.selectLawsStands(1) }, // 删除上传的文件 @@ -1508,9 +1513,20 @@ export default { } }) }, - pageInfo() { + pageInfo(type) { if (this.sarAccessInfo.dataSource === 'INLAND_STAND' || this.sarAccessInfo.dataSource === 'FOREIGN_STAND') { - StandardsInfoPage((this.sarAccessInfo)).then(res => { + if (type === 1) { + delete this.sarAccessInfo.standNumber + delete this.sarAccessInfo.lawsNumber + delete this.sarAccessInfo.standCode + } + console.log('this.sarAccessInfo===' , this.sarAccessInfo) + StandardsInfoPage(type === 1 ? ({...this.sarAccessInfo, standNumber: this.sarAccessInfo.seniorStandNumber, lawsNumber: this.sarAccessInfo.seniorLawsNumber, standCode: this.sarAccessInfo.seniorStandCode}) : (this.sarAccessInfo)).then(res => { + // if (type === 1) { + // this.sarAccessInfo.standNumber = '' + // this.sarAccessInfo.lawsNumber = '' + // this.sarAccessInfo.standCode = '' + // } this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { if (item.standYear === null) { @@ -1544,20 +1560,20 @@ export default { }) } }, - // 查询数据搜索 table 数据 - selectLawsStands() { + // 查询数据搜索 table 数据 type === 1为高级搜索 + selectLawsStands(type) { if (this.sarAccessInfo.dataSource === 'INLAND_STAND') { this.sarAccessInfo.standType = 'INLAND' - this.pageInfo() + this.pageInfo(type) } else if (this.sarAccessInfo.dataSource === 'FOREIGN_STAND') { this.sarAccessInfo.standType = 'FOREIGN' - this.pageInfo() + this.pageInfo(type) } else if (this.sarAccessInfo.dataSource === 'FOREIGN_LAWS') { this.sarAccessInfo.standType = 'LAWS' - this.pageInfo() + this.pageInfo(type) } else if (this.sarAccessInfo.dataSource === 'BUSINESS') { this.sarAccessInfo.standType = 'BUSINESS' - this.pageInfo() + this.pageInfo(type) } },