From ad2004d4995bbe5dcdbfb4dddfe7413effb40fff Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Wed, 28 Sep 2022 15:27:40 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E6=88=BF=E7=A7=9F=E7=A7=9F=E8=B5=81=20?= =?UTF-8?q?=E5=90=88=E5=90=8C=E4=B8=8A=E4=BC=A0=E9=99=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rent/rentcontractinfo-add-or-update.vue | 77 ++++++++++++++++++- .../rent/rentcontractinfo-look-or-check.vue | 17 +++- .../modules/plugins/rent/upload-image.vue | 3 +- 3 files changed, 90 insertions(+), 7 deletions(-) diff --git a/src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue b/src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue index af71bc574..a472ca5a9 100644 --- a/src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue +++ b/src/views/modules/plugins/rent/rentcontractinfo-add-or-update.vue @@ -286,11 +286,36 @@
- + + + + + + + + @@ -145,10 +191,10 @@ export default { exportURL: '/gov/org/icWorkLog/export' }, userId: this.$store.state.user.id, - agencyIdArray:[], + agencyIdArray: [], orgOptions: [], logTypeArr: [], - orgOptionProps:{ + orgOptionProps: { multiple: false, value: 'agencyId', label: 'agencyName', @@ -168,22 +214,22 @@ export default { this.getCategrayList() }, methods: { - getGridList() { + getGridList () { const { user } = this.$store.state this.$http - .post('/gov/org/customeragency/agencygridtree', {}) - .then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } else { - console.log('获取组织树成功', res.data) - this.orgOptions=[] - this.orgOptions .push( res.data) - } - }) - .catch(() => { - return this.$message.error('网络错误') - }) + .post('/gov/org/customeragency/agencygridtree', {}) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } else { + console.log('获取组织树成功', res.data) + this.orgOptions = [] + this.orgOptions.push(res.data) + } + }) + .catch(() => { + return this.$message.error('网络错误') + }) }, exportHandle () { const url = this.mixinViewModuleOptions.exportURL @@ -254,20 +300,20 @@ export default { }) return ca }, - handleChangeAgency(val) { + handleChangeAgency (val) { let obj = this.$refs["myCascader"].getCheckedNodes()[0].data if (obj) { - if(obj.level === 'grid'){ - this.dataForm.gridId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : ''; - this.dataForm.agencyId='' - }else{ + if (obj.level === 'grid') { + this.dataForm.gridId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : ''; + this.dataForm.agencyId = '' + } else { this.dataForm.agencyId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : ''; this.dataForm.gridId = '' } - }else{ - this.dataForm.agencyId='' + } else { + this.dataForm.agencyId = '' this.dataForm.gridId = '' } }, @@ -291,72 +337,71 @@ export default { }