Files
UNION_NJUST/target/classes/views/mobile/condolence/apply_info.html
T
2026-09-23 09:38:39 +08:00

58 lines
1.6 KiB
HTML

<!--#
layout("/mobile/platform.html"){
#-->
<style>
</style>
<div id="app" v-cloak>
<van-nav-bar title="慰问申请信息" left-arrow placeholder fixed @click-left="history.back()"></van-nav-bar>
<div>
<condolence-info :id.sync="id"></condolence-info>
<van-button :color="themeColor" block @click="doEdit" class="ml10 mr10" v-if="state_id==2010||state_id==2020">撤&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;回
</van-button>
</div>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [mobileMixins],
data() {
return {
id: "",
state_id: ""
}
},
components: {
'condolence-info': httpVueLoader('/components/condolence/mobile/common.vue?v=' + new Date().getTime()),
},
methods: {
doEdit() {
vant.Dialog.confirm({
title: '标题',
message: '确认要撤回吗?',
})
.then(async () => {
const resp = await $.post("/platform/fw/condolence/ucr/doEdit", {id: this.id});
this.$toast.success('撤回成功');
setTimeout(() => {
location.href = '/mobile/condolence/audit'
}, 1000)
})
.catch(() => {
// on cancel
});
}
},
async created() {
this.id = GetQueryString('id')
this.state_id = GetQueryString('state_id')
}
})
</script>
<!--#
}
#-->