四邻联动

This commit is contained in:
liuye
2022-04-18 18:52:27 +08:00
parent c5fa49a5e4
commit d261e10dc8
5 changed files with 188 additions and 61 deletions

View File

@@ -2,23 +2,23 @@
<div class="detail">
<div class="flex mar-b16">
<div class="label">党员信息</div>
<div class="value">待审核</div>
<div class="value">{{form.partyName}}</div>
</div>
<div class="flex mar-b16">
<div class="label">四邻对象</div>
<div class="value">张三</div>
<div class="value">{{form.residentName}}</div>
</div>
<div class="flex mar-b16">
<div class="label">事件日期</div>
<div class="value">2022-04-15</div>
<div class="value">{{form.linksageDate}}</div>
</div>
<div class="flex">
<div class="label">事件描述</div>
</div>
<div class="content">帮助赵顺伟咨询户口迁移问题</div>
<div class="footer">
<div class="content">{{form.description}}</div>
<div class="footer" v-if="form.status == 0">
<div @click="toContent">审核不通过</div>
<div class="btn">审核通过</div>
<div class="btn" @click="pass">审核通过</div>
</div>
</div>
</template>
@@ -30,24 +30,47 @@ export default {
name: 'detail',
data() {
return {
value: ''
id: '',
form: {}
}
},
computed: {
...mapState(['user']),
},
created() {
this.$dict.load('appSpecialTypeFive')
onLoad(option) {
this.id = option.id
this.getDetail()
uni.$on('reload', () => {
this.getDetail()
})
},
onShow() {
document.title = '四邻联动'
},
methods: {
toContent() {
uni.navigateTo({url: './Content'})
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')
}
})
})
}
},
}
</script>