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;
},
/**