This commit is contained in:
@jyuhsin
2025-12-23 10:34:29 +08:00
parent d765edf331
commit 572c9b2df7
9 changed files with 101 additions and 8 deletions
@@ -172,6 +172,26 @@
historyBack: function(func = ()=>{}) {
historyBack(func);
}
},
created() {
// 只处理有 pageForm 且 pageForm 有 approval 字段的组件
if (
this.pageForm &&
typeof this.pageForm === 'object' &&
('approval' in this.pageForm || 'isAudit' in this.pageForm)
) {
// 从 URL 查询参数中读取 approval
const urlParams = new URLSearchParams(window.location.search);
const approvalParam = urlParams.get('tab');
if (approvalParam === 'done') {
this.$set(this.pageForm, 'approval', true);
this.$set(this.pageForm, 'isAudit', true);
} else if (approvalParam === 'todo') {
this.$set(this.pageForm, 'approval', false);
this.$set(this.pageForm, 'isAudit', false);
}
}
}
})
</script>
@@ -258,7 +258,7 @@ const user = {
this.$message.warning("当前流程没有配置地址")
return
}
window.open(formKey + "?taskId=" + taskId + "bizId=" + businessNo + "taskKey=" + taskKey)
window.open(formKey + "?taskId=" + taskId + "bizId=" + businessNo + "taskKey=" + taskKey + "&tab=" + this.activeTab)
},
getRoleNames() {
$.post("/platform/sys/role/getRoleNames").then(res => {
@@ -33,7 +33,7 @@ layout("/layouts/platform.html"){
<template slot-scope="{row}">
<!-- <el-button size="mini" type="primary" @click="$refs.userRef.onOpen(row.id,true)">设置分管校领导</el-button>-->
<el-button size="mini" type="primary" @click="$refs.userRef.onOpen(row.id,false)">设置单位领导</el-button>
<el-button size="mini" type="danger">删除</el-button>
<el-button size="mini" type="danger" @click="onDelete(row)">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -85,7 +85,23 @@ layout("/layouts/platform.html"){
this.$refs.treeRef.listTree()
}
})
}
},
onDelete (row) {
this.$confirm("您确定要删除吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
}).then(() => {
$.post(loc() + "/delete", { id: row.id }).then((res) => {
if (res.code === 0) {
this.$message.success(res.msg)
this.doSearch()
this.$refs.treeRef.listTree()
}
})
})
},
},
created() {
this.pageData()
@@ -36,13 +36,21 @@ const TREE_COMPONENT = {
treeData: []
}
},
watch: {
name(val) {
this.$refs.treeRef.filter(val)
}
},
methods: {
treeNodeClick(data, node) {
this.currentTreeData = data
this.currentTreeNode = node
this.$emit("node-click", data, node)
},
filterNode() {},
filterNode(value, data, node) {
if (!value) return true
return data.name.indexOf(value) !== -1
},
listTree() {
this.$axios.post("/platform/proposal/config/unit/tree").then((res) => {
if (res.code === 0) {
@@ -204,6 +204,13 @@ layout("/layouts/platform.html"){
async meetingChange(val) {
this.doSearch()
},
listDelegation() {
this.$axios.post("/platform/proposal/common/listDelegation", {sessionId: this.pageForm.sessionId}).then((res) => {
if (res.code === 0) {
this.delegationOptions = res.data
}
})
},
// 查询开启的教代会
listOpenSession() {
this.$axios.post("/platform/proposal/common/listOpenSession").then((res) => {
@@ -182,7 +182,13 @@ layout("/layouts/platform.html"){
this.formData.committeeId = null
this.doSearch()
},
listDelegation() {
this.$axios.post("/platform/proposal/common/listDelegation", {sessionId: this.pageForm.sessionId}).then((res) => {
if (res.code === 0) {
this.delegationOptions = res.data
}
})
},
// 查询开启的教代会
listOpenSession() {
this.$axios.post("/platform/proposal/common/listOpenSession").then((res) => {
@@ -182,7 +182,7 @@ const todo = {
this.$toast("当前流程没有配置地址");
return;
}
this.$pjaxReplace(h5FormKey + "?taskId=" + taskId + "bizId=" + businessNo + "taskKey=" + taskKey)
this.$pjaxReplace(h5FormKey + "?taskId=" + taskId + "bizId=" + businessNo + "taskKey=" + taskKey+ "&tab=" + this.activeTab)
},
// 获取空状态文本