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 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>
@@ -600,7 +600,7 @@ export default {
this.flag = true
this.id = query.id
this.getInfo(this.id)
this.photo = this.form.photo
} else {
this.form.currentAreaId = this.user.areaId
}
@@ -780,6 +780,7 @@ export default {
...this.form,
...res.data
}
this.photo = [{url:this.form.photo}]
if(this.form.photo) {
this.form.files = [{url: this.form.photo}]

View File

@@ -361,7 +361,7 @@ export default {
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${this.id}`).then(res => {
if (res.code === 0) {
this.info = res.data
let ylbxCount = 0
let ylCount = 0
if(res.data.family && res.data.family.length) {

View File

@@ -51,7 +51,11 @@
</div>
<div class="item-info">
<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 class="item-info">
<label>残疾类别</label>
@@ -163,6 +167,7 @@ export default {
return {
id: '',
info: {},
healthyStatusList: []
}
},
onLoad(o) {
@@ -176,6 +181,8 @@ export default {
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${this.id}`).then(res => {
if (res.code === 0) {
this.info = res.data
this.healthyStatusList = res.data.healthyStatus.split(',')
}
})
},