测试监听数据

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

View File

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