This commit is contained in:
shijingjing
2022-04-28 16:45:49 +08:00
parent 5e71c0ae07
commit d1b7ab7424
3 changed files with 12 additions and 4 deletions

View File

@@ -178,7 +178,7 @@
</div> </div>
</div> </div>
<div class="upload"> <div class="upload">
<AiUploader :def.sync="photo" multiple placeholder="上传图片" :limit="1" action="/admin/file/add2"></AiUploader> <AiUploader :def.sync="photo" multiple placeholder="上传图片" :limit="1" action="/admin/file/add2" :disabled="id"></AiUploader>
</div> </div>
</div> </div>
@@ -600,7 +600,7 @@ export default {
this.flag = true this.flag = true
this.id = query.id this.id = query.id
this.getInfo(this.id) this.getInfo(this.id)
this.photo = this.form.photo
} else { } else {
this.form.currentAreaId = this.user.areaId this.form.currentAreaId = this.user.areaId
} }
@@ -780,6 +780,7 @@ export default {
...this.form, ...this.form,
...res.data ...res.data
} }
this.photo = [{url:this.form.photo}]
if(this.form.photo) { if(this.form.photo) {
this.form.files = [{url: this.form.photo}] this.form.files = [{url: this.form.photo}]

View File

@@ -51,7 +51,11 @@
</div> </div>
<div class="item-info"> <div class="item-info">
<label>健康状况</label> <label>健康状况</label>
<span>{{ $dict.getLabel('fpHealth', info.healthyStatus) }}</span> <span>
<span v-for="(item, index) in healthyStatusList" :key="index"><span v-if="index > 0">,</span>{{$dict.getLabel("fpHealth", item)}}</span>
</span>
<!-- <span v-for="(item,index) in">{{ $dict.getLabel('fpHealth', info.healthyStatus) }}</span> -->
</div> </div>
<div class="item-info"> <div class="item-info">
<label>残疾类别</label> <label>残疾类别</label>
@@ -163,6 +167,7 @@ export default {
return { return {
id: '', id: '',
info: {}, info: {},
healthyStatusList: []
} }
}, },
onLoad(o) { onLoad(o) {
@@ -176,6 +181,8 @@ export default {
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${this.id}`).then(res => { this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${this.id}`).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.info = res.data this.info = res.data
this.healthyStatusList = res.data.healthyStatus.split(',')
} }
}) })
}, },