帮扶措施

This commit is contained in:
shijingjing
2022-04-26 10:59:43 +08:00
parent 1bab0cb3ab
commit 01d7cdd52a
2 changed files with 21 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
<u-icon name="list" color="#999" size="28" @click="edit(item.id)" style="margin-left:16px;"></u-icon>
</div>
</div>
<p style="color: #999999;">帮扶措施{{ $dict.getLabel('fpAssistanceMeasures',item.operationDesc) }}</p>
<p>{{ item.detail }}</p>
<div class="imgs" v-if="item.files && item.files.length">
<image :src="img.url" @click="prevImg(item.files, img.url)" v-for="(img, index) in item.files"
@@ -45,6 +46,7 @@ export default {
},
onLoad(query) {
this.$dict.load('fpAssistanceMeasures')
this.id = query.id
this.getList()
uni.$on('reload', () => {

View File

@@ -1,5 +1,9 @@
<template>
<div class="form">
<div class="help">
<div><span style="color: #FF4466;">*</span>帮扶类型</div>
<AiSelect dict="fpAssistanceMeasures" v-model="operationDesc"></AiSelect>
</div>
<div class="form-item form-item__textarea">
<div class="form-item__title">
<em>*</em>
@@ -30,10 +34,12 @@ export default {
pid: '',
files: [],
id: '',
type: ''
type: '',
operationDesc: '',
}
},
onLoad(query) {
this.$dict.load('fpAssistanceMeasures')
this.pid = query.pid
this.type = query.type
if(query.id) {
@@ -59,6 +65,9 @@ export default {
})
},
submit() {
if (!this.operationDesc) {
return this.$u.toast('请选择帮扶类型')
}
if (!this.detail) {
return this.$u.toast('请输入帮扶内容')
}
@@ -67,7 +76,8 @@ export default {
files: this.files,
pid: this.pid,
id: this.id,
type: this.type
type: this.type,
operationDesc: this.operationDesc
}).then(res => {
if (res.code === 0) {
this.$u.toast('提交成功')
@@ -94,6 +104,13 @@ export default {
background: #fff;
}
.help {
padding: 32px;
box-sizing: border-box;
display: flex;
justify-content: space-between;
}
.form-item {
padding: 32px;