From 04c68130450510a4e5e99e3abb34f3779e09b3a8 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Thu, 12 May 2022 14:03:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E6=88=BF=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/rent/renthouse-add-or-update.vue | 190 +++++------- src/views/modules/plugins/rent/renthouse.vue | 93 ++++-- .../modules/plugins/rent/renthouseForm.vue | 290 +++++++++--------- 3 files changed, 285 insertions(+), 288 deletions(-) diff --git a/src/views/modules/plugins/rent/renthouse-add-or-update.vue b/src/views/modules/plugins/rent/renthouse-add-or-update.vue index 417c5a0e..1833b7d1 100644 --- a/src/views/modules/plugins/rent/renthouse-add-or-update.vue +++ b/src/views/modules/plugins/rent/renthouse-add-or-update.vue @@ -1,109 +1,62 @@ @@ -130,12 +83,6 @@ export default { ownerPhone: '', ownerIdCard: '', sort: '', - delFlag: '', - revision: '', - createdBy: '', - createdTime: '', - updatedBy: '', - updatedTime: '', communityId: '', communityName: '', gridId: '', @@ -149,7 +96,26 @@ export default { homeId: '', homeName: '', purchaseDate: '' - } + }, + houseTypeArr: [ + { dictValue: '1', dictName: '楼房' }, + { dictValue: '2', dictName: '平房' }, + { dictValue: '3', dictName: '别墅' } + ], + rentFlagArr: [ + { dictValue: 0, dictName: '自住' }, + { dictValue: 1, dictName: '出租' }, + { dictValue: 2, dictName: '闲置' } + ], + purposeArr: [ + { dictValue: '1', dictName: '住宅' }, + { dictValue: '2', dictName: '商业' }, + { dictValue: '3', dictName: '办公' }, + { dictValue: '4', dictName: '工业' }, + { dictValue: '5', dictName: '仓储' }, + { dictValue: '6', dictName: '商住混用' }, + { dictValue: '7', dictName: '其他' } + ], } }, computed: { @@ -269,7 +235,7 @@ export default { }, // 获取信息 getInfo () { - this.$http.get(`/rent/rentHouse/${this.dataForm.id}`).then(({ data: res }) => { + this.$http.get(`/pli/power/rentHouse/${this.dataForm.id}`).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } @@ -285,7 +251,7 @@ export default { if (!valid) { return false } - this.$http[!this.dataForm.id ? 'post' : 'put']('/rent/rentHouse/', this.dataForm).then(({ data: res }) => { + this.$http[!this.dataForm.id ? 'post' : 'put']('/pli/power/rentHouse/', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } diff --git a/src/views/modules/plugins/rent/renthouse.vue b/src/views/modules/plugins/rent/renthouse.vue index e117888d..cca04ff1 100644 --- a/src/views/modules/plugins/rent/renthouse.vue +++ b/src/views/modules/plugins/rent/renthouse.vue @@ -1,7 +1,7 @@