This commit is contained in:
Paidax
2024-10-21 14:59:28 +08:00
parent 5f028efbe0
commit ef90e437f5
7 changed files with 55 additions and 10 deletions
@@ -205,7 +205,7 @@ layout("/layouts/platform.html"){
window.location.href = '/platform/msgNotify/send?notifyId=' + id + "&hold=" + hold
}*/
const {id, hold} = row
window.location.href = '/platform/msgNotify/send?notifyId=' + id + "&hold=" + hold
window.location.href = '/platform/msgNotify/send?notifyId=' + id + "&hold=" + false
},
openView(row) {
const {id, hold} = row
@@ -229,4 +229,4 @@ layout("/layouts/platform.html"){
</script>
<!--#
}
#-->
#-->
@@ -97,10 +97,11 @@ layout("/layouts/platform.html"){
<el-table-column align="center" fixed="right" header-align="center" label="操作"
width="120px">
width="180px">
<template scope="scope">
<el-button @click="openView(scope.row)" size="mini" type="primary">查看
</el-button>
<el-button @click="openView(scope.row)" size="mini" type="primary">查看</el-button>
<el-button v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('A06')}"
@click="doDelete(scope.row)" size="mini" type="danger">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -260,6 +261,21 @@ display: -webkit-box;
}
},
methods: {
async doDelete(row) {
const confirm = await this.$confirm('确定要删除该报名人员吗', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
if (confirm !== "confirm") return
const resp = await $.post('/platform/zgfw/lxy/hdtj/doDelete', {id:row.id})
if (resp.code === 0) {
this.pageData()
this.$message.success(resp.msg)
} else {
this.$message.warning(resp.msg)
}
},
async confirmMsg(val) {
const confirm = await this.$confirm('确定要给报名人员发送消息吗', '提示', {
confirmButtonText: '确定',