2022-04-18 11:34:03 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="detail">
|
|
|
|
|
<div class="flex mar-b16">
|
|
|
|
|
<div class="label">党员信息</div>
|
2022-04-18 18:52:27 +08:00
|
|
|
<div class="value">{{form.partyName}}</div>
|
2022-04-18 11:34:03 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="flex mar-b16">
|
|
|
|
|
<div class="label">四邻对象</div>
|
2022-04-18 18:52:27 +08:00
|
|
|
<div class="value">{{form.residentName}}</div>
|
2022-04-18 11:34:03 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="flex mar-b16">
|
|
|
|
|
<div class="label">事件日期</div>
|
2022-04-18 18:52:27 +08:00
|
|
|
<div class="value">{{form.linksageDate}}</div>
|
2022-04-18 11:34:03 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<div class="label">事件描述</div>
|
|
|
|
|
</div>
|
2022-04-18 18:52:27 +08:00
|
|
|
<div class="content">{{form.description}}</div>
|
|
|
|
|
<div class="footer" v-if="form.status == 0">
|
2022-04-18 11:34:03 +08:00
|
|
|
<div @click="toContent">审核不通过</div>
|
2022-04-18 18:52:27 +08:00
|
|
|
<div class="btn" @click="pass">审核通过</div>
|
2022-04-18 11:34:03 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {mapState} from "vuex";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'detail',
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2022-04-18 18:52:27 +08:00
|
|
|
id: '',
|
|
|
|
|
form: {}
|
2022-04-18 11:34:03 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
...mapState(['user']),
|
|
|
|
|
|
|
|
|
|
},
|
2022-04-18 18:52:27 +08:00
|
|
|
onLoad(option) {
|
|
|
|
|
this.id = option.id
|
|
|
|
|
this.getDetail()
|
|
|
|
|
uni.$on('reload', () => {
|
|
|
|
|
this.getDetail()
|
|
|
|
|
})
|
2022-04-18 11:34:03 +08:00
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
document.title = '四邻联动'
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
toContent() {
|
2022-04-18 18:52:27 +08:00
|
|
|
uni.navigateTo({url: `./Content?id=${this.id}`})
|
|
|
|
|
},
|
|
|
|
|
getDetail() {
|
|
|
|
|
this.$http.post(`/app/apppartyfourlinkage/queryDetailById?id=${this.id}`).then((res) => {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
this.form = res.data
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
pass() {
|
|
|
|
|
this.$confirm('是否确认审核通过?').then(() => {
|
|
|
|
|
this.$http.post(`/app/apppartyfourlinkage/auditById?id=${this.id}&status=1`).then((res) => {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
this.$u.toast('审核成功')
|
|
|
|
|
this.getDetail()
|
|
|
|
|
uni.$emit('reload')
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
2022-04-18 11:34:03 +08:00
|
|
|
}
|
2022-04-18 18:52:27 +08:00
|
|
|
|
2022-04-18 11:34:03 +08:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.detail {
|
|
|
|
|
.flex{
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 34px 32px 34px 32px;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
color: #333;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
.label{
|
|
|
|
|
width: 150px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.mar-b16{
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
}
|
|
|
|
|
.content{
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 0 32px 32px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
color: #333;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
}
|
|
|
|
|
.footer {
|
|
|
|
|
width: 100%;
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
background: #fff;
|
|
|
|
|
color: #f46;
|
|
|
|
|
div{
|
|
|
|
|
flex: 1;
|
|
|
|
|
height: 112px;
|
|
|
|
|
line-height: 112px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
.btn {
|
|
|
|
|
background: #3975C6;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</style>
|