mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
审批中心
This commit is contained in:
@@ -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
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user