测试监听数据

This commit is contained in:
gengxin
2025-03-04 07:27:22 +08:00
parent 64682c3933
commit 97eb95b8c7
2 changed files with 18 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
</a-tab-pane>
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
<a-tab-pane key="2" tab="审批中心">
<OrganizationApproval/>
<OrganizationApproval :organizationActive="organizationActive"/>
</a-tab-pane>
</a-tabs>
</div>
@@ -34,12 +34,14 @@ export default {
const state = reactive({
activeKey: '1',
organizationActive:"0"
});
onMounted(() => {
if (route.query.activeKey) {
state.activeKey = '2'
state.activeKey = '2';
state.organizationActive = "1"
}
})

View File

@@ -534,7 +534,10 @@ export default {
lockLecturer,
AddApprover,
},
setup() {
props: {
organizationActive: String
},
setup(props) {
const formRef = ref();
const state = reactive({
@@ -1048,6 +1051,16 @@ export default {
state.formParam.affiliationName = record.affiliationName;
state.formParam.remark = record.remark;
};
watch(
() => props.organizationActive,
(val) => {
console.log("organizationActive gx val",val)
}
);
const cancel = () => {
state.formParam = {
orglistName: null,