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