This commit is contained in:
2026-07-02 16:06:57 +08:00
parent f637e02c08
commit 4afb3bd835
5 changed files with 143 additions and 4 deletions
@@ -22,6 +22,7 @@ layout("/layouts/platform.html"){
<el-card shadow="never" style="border: 1px solid var(--border-color-lighter);flex: 1;" :body-style="{ height: '100%', display: 'flex' , 'flex-direction': 'column' }">
<table-tool>
<el-button type="primary" size="small" icon="el-icon-refresh" @click="syncSysUnit">同步系统单位</el-button>
<el-button type="primary" size="small" icon="el-icon-refresh" :loading="syncUnitReplyActorsLoading" @click="syncUnitReplyActors">同步承办单位答复人</el-button>
</table-tool>
<el-table :data="tableData" border ref="tableRef" height="100%">
<el-table-column label="序号" type="index" :index="indexMethod" width="60"></el-table-column>
@@ -69,7 +70,8 @@ layout("/layouts/platform.html"){
data() {
return {
currentTreeNode: null,
currentTreeData: null
currentTreeData: null,
syncUnitReplyActorsLoading: false
}
},
methods: {
@@ -85,6 +87,23 @@ layout("/layouts/platform.html"){
this.$refs.treeRef.listTree()
}
})
},
syncUnitReplyActors() {
this.$confirm("确定要按当前单位领导配置同步进行中的承办单位答复待办吗?", "提示", {
type: "warning"
}).then(() => {
this.syncUnitReplyActorsLoading = true
this.$axios.post(loc() + "/syncUnitReplyActors")
.then((res) => {
if (res.code === 0) {
this.$message.success(res.msg)
}
})
.finally(() => {
this.syncUnitReplyActorsLoading = false
})
})
}
},
created() {