This commit is contained in:
yanran200730
2022-03-15 16:03:13 +08:00
parent dff68edcbb
commit 091a2761cf

View File

@@ -16,6 +16,7 @@
</ai-info-item>
<ai-info-item label="现实状态" isLine :value="dict.getLabel('visitCondolenceReality', info.reality)"></ai-info-item>
<ai-info-item label="走访人" :value="info.createUserName"></ai-info-item>
<ai-info-item label="人员类型" :value="info.type"></ai-info-item>
<ai-info-item label="走访时间" :value="info.visitTime"></ai-info-item>
</ai-wrapper>
</template>
@@ -44,7 +45,7 @@
created () {
this.id = this.params.id
this.dict.load(['visitCondolenceReality']).then(() => {
this.getInfo(this.params.id)
this.getDictList()
})
},
@@ -54,6 +55,21 @@
if (res.code === 0) {
this.info = res.data
this.info.images = res.data.images ? JSON.parse(res.data.images) : []
this.info.type = this.dictList.filter(v => v.dictValue === res.data.applicationId)[0].dictName
}
})
},
getDictList () {
this.instance.post(`/app/appapplicationinfo/queryApplicationListByType`).then(res => {
if (res.code == 0) {
this.dictList = res.data.map(v => {
return {
dictValue: v.id,
dictName: v.applicationName
}
})
this.getInfo(this.params.id)
}
})
},