This commit is contained in:
shijingjing
2022-03-26 15:32:20 +08:00
parent 7e063e5a9a
commit 9c4b47deca
3 changed files with 132 additions and 55 deletions

View File

@@ -1,12 +1,15 @@
<template>
<div class="result">
<div class="result" showPage='false'>
<div class="type">
<div class="left">
<span>*</span><span v-if="type==0">处理意见</span><span v-else>处理结果</span>
<span>*</span>
<span v-if="checkType == 0">处理意见</span>
<span v-else>处理结果</span>
</div>
<div class="right">
<AiSelect v-model="result" dict="" />
<AiSelect v-model="operation" dict="fpRiskPersonOperation1" v-if="checkType == 0" />
<AiSelect v-model="operation" dict="fpRiskPersonOperation2" v-else />
</div>
</div>
@@ -15,7 +18,7 @@
<span>*</span><span>备注说明</span>
</div>
<div class="bottom">
<u-input type="textarea" v-model="value" placeholder="请简要说明情况" maxlength="500" height="200"/>
<u-input type="textarea" v-model="opinion" placeholder="请简要说明情况" maxlength="500" height="200"/>
</div>
</div>
@@ -24,13 +27,11 @@
<span style="margin-right: 8px"></span><span>图片<span style="color: #999;font-size:14px;">最多9张</span></span>
</div>
<div class="bottom">
<img src="./img/phone.png" alt="">
<AiUploader :def.sync="files" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
</div>
</div>
<div class="btn">
提交
</div>
<div class="btn" @click="submit">提交</div>
</div>
</template>
@@ -39,14 +40,48 @@
export default {
data() {
return {
result: '',
value: '',
type: 0
operation: '',
opinion: '',
checkType: '',
files: [],
showPage: false,
id:''
}
},
onLoad(o) {
this.$dict.load('fpRiskPersonOperation1','fpRiskPersonOperation2','fpRiskType').then(()=>{
this.checkType = o.checkType
this.id = o.id
this.showPage = true
})
},
methods: {
submit() {
if(!this.operation) {
return this.$u.toast('请选择处理意见')
}
if(!this.opinion) {
return this.$u.toast('请输入备注说明')
}
let ids = [];
ids.push(this.id);
this.$http.post('/app/apppreventionreturntopovertyriskperson/monitor',{
operation: this.operation,
opinion: this.opinion,
files: this.files,
ids: ids,
}).then(res => {
if (res.code == 0) {
this.$u.toast('提交成功')
setTimeout(() => {
uni,navigateBack()
},600)
}
})
}
},
methods: {},
onShow() {
document.title = type==0? "处理意见":"处理结果"
document.title = this.checkType == 0? "处理意见":"处理结果"
}
}
</script>
@@ -88,9 +123,7 @@ export default {
}
}
.bottom {
img {
margin: 30px 0;
}
padding: 30px 0;
}
}