From 9a761a06593c7f835dac1fbb26d201bba33e5c8e Mon Sep 17 00:00:00 2001 From: ky_yusj <2655568377@qq.com> Date: Thu, 20 May 2021 18:12:48 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/src/pages/business/house/project/form.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Web/src/pages/business/house/project/form.vue b/Web/src/pages/business/house/project/form.vue index ce880ee..1054def 100644 --- a/Web/src/pages/business/house/project/form.vue +++ b/Web/src/pages/business/house/project/form.vue @@ -14,7 +14,7 @@ - + 住宅 非住宅 @@ -23,10 +23,10 @@ - + - + @@ -61,6 +61,7 @@ export default { /** 其他成员属性 */ areaData: [], intEntity: {}, + exist: false, /* ... */ }; }, @@ -74,7 +75,7 @@ export default { (newVal, oldVal) => { // 做点什么 if (this.form.areaCode.length == 4 && this.form.type) { - if (this.intEntity.id && this.intEntity.type == this.form.type) { + if (this.intEntity.id && this.intEntity.type == this.form.type && this.intEntity.areaCode[this.intEntity.areaCode.length - 1] == this.form.areaCode[this.form.areaCode.length - 1]) { this.$set(this.form, 'sort', this.intEntity.sort); this.$set(this.form, 'name', this.intEntity.name); } else { @@ -143,6 +144,8 @@ export default { areaCode: areaCode.length == 4 ? areaCode : [], /* ... */ }); + // 住宅/非住宅不可更改 + this.exist = !!params.record; }, /**