This commit is contained in:
yanran200730
2022-01-18 17:16:18 +08:00
parent a3948329f3
commit 8218448c60
2 changed files with 22 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
<div class="header-description">
<u-form :model="forms" ref="uForm" label-width="auto">
<u-form-item label="区域选择" prop="areaId" class="areaIds" style="position: relative">
<AiAreaPicker v-model="forms.areaId" :areaId="areaIdProps" @select="areaSelect" style="color: #333"></AiAreaPicker>
<AiAreaPicker :value="forms.areaId" :areaId="areaIdProps" @select="areaSelect" style="color: #333"></AiAreaPicker>
<u-icon name="arrow-right" color="rgb(192, 196, 204)" size="30" style="margin-left: 4px" />
</u-form-item>
@@ -93,7 +93,7 @@ export default {
this.areaIdProps = this.user.areaId
if (!this.id) {
this.forms.areaId = this.user.areaId
this.areaName = this.user.areaName
this.forms.areaName = this.user.areaName
}
this.$dict.load('realityStatus').then(() => {
this.getDetail()
@@ -126,6 +126,8 @@ export default {
this.forms = res.data
this.forms.create_user_name = res.data.name
this.forms.realityValue = res.data.reality
this.forms.areaId = res.data.areaId
this.forms.areaName = res.data.areaName
this.forms.reality = this.$dict.getLabel('realityStatus', res.data.reality)
if (res.data.images) {
this.forms.images = JSON.parse(res.data.images || '[]')