帮扶措施

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

@@ -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;