Files
dvcp_v2_wxcp_app/src/apps/AppWarningMonitoring/result.vue

143 lines
3.2 KiB
Vue
Raw Normal View History

2022-03-24 11:02:59 +08:00
<template>
2022-03-26 15:32:20 +08:00
<div class="result" showPage='false'>
2022-03-24 14:32:23 +08:00
<div class="type">
<div class="left">
2022-03-26 15:32:20 +08:00
<span>*</span>
<span v-if="checkType == 0">处理意见</span>
<span v-else>处理结果</span>
2022-03-24 14:32:23 +08:00
</div>
<div class="right">
2022-03-26 15:32:20 +08:00
<AiSelect v-model="operation" dict="fpRiskPersonOperation1" v-if="checkType == 0" />
<AiSelect v-model="operation" dict="fpRiskPersonOperation2" v-else />
2022-03-24 14:32:23 +08:00
</div>
</div>
<div class="remark">
<div class="top">
<span>*</span><span>备注说明</span>
</div>
<div class="bottom">
2022-03-26 15:32:20 +08:00
<u-input type="textarea" v-model="opinion" placeholder="请简要说明情况" maxlength="500" height="200"/>
2022-03-24 14:32:23 +08:00
</div>
</div>
<div class="picture">
<div class="top">
<span style="margin-right: 8px"></span><span>图片<span style="color: #999;font-size:14px;">最多9张</span></span>
</div>
<div class="bottom">
2022-03-26 15:32:20 +08:00
<AiUploader :def.sync="files" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
2022-03-24 14:32:23 +08:00
</div>
</div>
2022-03-26 15:32:20 +08:00
<div class="btn" @click="submit">提交</div>
2022-03-24 14:43:08 +08:00
2022-03-24 14:32:23 +08:00
</div>
2022-03-24 11:02:59 +08:00
</template>
<script>
export default {
data() {
2022-03-24 14:32:23 +08:00
return {
2022-03-26 15:32:20 +08:00
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)
}
})
2022-03-24 14:32:23 +08:00
}
2022-03-24 11:02:59 +08:00
},
onShow() {
2022-03-26 15:32:20 +08:00
document.title = this.checkType == 0? "处理意见":"处理结果"
2022-03-24 11:02:59 +08:00
}
}
</script>
<style lang="scss" scoped>
.result {
2022-03-24 14:32:23 +08:00
.type {
height: 112px;
line-height: 112px;
background: #FFF;
font-size: 32px;
display: flex;
justify-content: space-between;
padding: 0 32px;
box-sizing: border-box;
.left {
span:first-child {
color: #FF4466;
}
span:last-child {
color: #333333;
}
}
}
.remark,
.picture {
box-sizing: border-box;
margin-top: 16px;
background: #FFF;
padding: 0 32px;
font-size: 32px;
.top {
padding-top: 20px;
span:first-child {
color: #FF4466;
}
span:last-child {
color: #333333;
}
}
.bottom {
2022-03-26 15:32:20 +08:00
padding: 30px 0;
2022-03-24 14:32:23 +08:00
}
}
2022-03-24 14:43:08 +08:00
.btn {
height: 112px;
line-height: 112px;
text-align: center;
background: #3192F4;
color: #FFF;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
font-size: 32px;
}
2022-03-24 11:02:59 +08:00
}
</style>