mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
审批中心
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-tabs v-model:activeKey="activeKey">
|
<a-tabs v-model:activeKey="activeKey">
|
||||||
<a-tab-pane key="1" tab="培训发僧组织列表">
|
<a-tab-pane key="1" tab="培训发僧组织列表">
|
||||||
<OrganizationList/>
|
<OrganizationList :activeKeyFn="activeKeyFn"/>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
|
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
|
||||||
<a-tab-pane key="2" tab="审批中心">
|
<a-tab-pane key="2" tab="审批中心">
|
||||||
@@ -38,8 +38,14 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
const activeKeyFn = () => {
|
||||||
|
state.activeKey = '2'
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
|
activeKeyFn
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -512,7 +512,10 @@ export default {
|
|||||||
lockLecturer,
|
lockLecturer,
|
||||||
AddApprover,
|
AddApprover,
|
||||||
},
|
},
|
||||||
setup() {
|
props: {
|
||||||
|
activeKeyFn: Function
|
||||||
|
},
|
||||||
|
setup(props) {
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
@@ -1108,6 +1111,8 @@ export default {
|
|||||||
message.success("修改成功");
|
message.success("修改成功");
|
||||||
cancel();
|
cancel();
|
||||||
getTableDate();
|
getTableDate();
|
||||||
|
//TODO GX04
|
||||||
|
props.activeKeyFn();
|
||||||
} else {
|
} else {
|
||||||
message.error(res.data.msg);
|
message.error(res.data.msg);
|
||||||
}
|
}
|
||||||
@@ -1129,6 +1134,7 @@ export default {
|
|||||||
cancel();
|
cancel();
|
||||||
searchSubmit();
|
searchSubmit();
|
||||||
state.example = false;
|
state.example = false;
|
||||||
|
props.activeKeyFn();
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
|
|||||||
Reference in New Issue
Block a user