diff --git a/src/apps/AppServicePublic/Add.vue b/src/apps/AppServicePublic/Add.vue index 44d650a0..7b14c19b 100644 --- a/src/apps/AppServicePublic/Add.vue +++ b/src/apps/AppServicePublic/Add.vue @@ -19,7 +19,7 @@
- +
@@ -69,13 +69,14 @@ export default { }, computed: {...mapState(['user'])}, onLoad(o) { - console.log(o) if (o.id) { this.id = o.id } this.moduleId = o.moduleId - this.forms.areaId = this.user.areaId + if (!o.id) { + this.forms.areaId = this.user.areaId + } this.listName = o.listName this.getType() }, diff --git a/src/apps/AppWalkask/add.vue b/src/apps/AppWalkask/add.vue index cc020225..8a586755 100644 --- a/src/apps/AppWalkask/add.vue +++ b/src/apps/AppWalkask/add.vue @@ -93,7 +93,6 @@ export default { this.areaIdProps = this.user.areaId if (!this.id) { this.forms.areaId = this.user.areaId - this.forms.areaName = this.user.areaName } this.$dict.load('realityStatus').then(() => { this.getDetail() diff --git a/src/components/AiAreaPicker.vue b/src/components/AiAreaPicker.vue index 2a0177ed..177ea390 100644 --- a/src/components/AiAreaPicker.vue +++ b/src/components/AiAreaPicker.vue @@ -161,10 +161,13 @@ export default { if (this.value && !this.areaName && this.value !== this.areaId) { this.areaName = this.list.find((e) => e.id == this.value).name } - if (!this.areaName && this.value === this.areaId) { this.areaName = self.name } + + if (!this.value) { + this.areaName = self.name + } if (self.id) { this.list.unshift(self) } @@ -230,6 +233,7 @@ export default { }, handleInit() { this.index = this.value || this.areaId + console.log(this.value, this.areaId) if (this.all && !this.areaId && !this.currentArea.id) { this.getProvinces()