审批中心

This commit is contained in:
gengxin
2025-02-18 22:03:22 +08:00
parent 4d3a7343ca
commit 1e6393f91a
2 changed files with 14 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<template>
<a-tabs v-model:activeKey="activeKey">
<a-tab-pane key="1" tab="培训发僧组织列表">
<OrganizationList/>
<OrganizationList :activeKeyFn="activeKeyFn"/>
</a-tab-pane>
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
<a-tab-pane key="2" tab="审批中心">
@@ -38,8 +38,14 @@ export default {
}
})
const activeKeyFn = () => {
state.activeKey = '2'
}
return {
...toRefs(state),
activeKeyFn
};
},
};

View File

@@ -512,7 +512,10 @@ export default {
lockLecturer,
AddApprover,
},
setup() {
props: {
activeKeyFn: Function
},
setup(props) {
const formRef = ref();
const state = reactive({
@@ -1108,6 +1111,8 @@ export default {
message.success("修改成功");
cancel();
getTableDate();
//TODO GX04
props.activeKeyFn();
} else {
message.error(res.data.msg);
}
@@ -1129,6 +1134,7 @@ export default {
cancel();
searchSubmit();
state.example = false;
props.activeKeyFn();
})
.catch((err) => {
message.destroy();