diff --git a/src/views/lecturer/LecturerApproval.vue b/src/views/lecturer/LecturerApproval.vue index 39605925..48f774b9 100644 --- a/src/views/lecturer/LecturerApproval.vue +++ b/src/views/lecturer/LecturerApproval.vue @@ -270,14 +270,7 @@ export default { let initData = ref(false); - watchEffect(() => { - console.log('Item changed:', props.activeKeyProps); - if(!initData.value && props.activeKeyProps == 2){ - getTableDate() - } - // 在这里你可以根据 props.item 进行一些操作 - }); - + onMounted(() => { console.log("props.activeKeyProps",props.activeKeyProps) // const search = sessionStorage.getItem('searchApprlval') @@ -434,8 +427,7 @@ export default { { value: "E10", label: "审核打回", }, { value: "S20", label: "审核通过", }, ]) - watch( - ) + //切换筛选 const handlemoreid = () => { if (state.moreid == 1) { @@ -1111,6 +1103,16 @@ export default { } } + + watchEffect(() => { + console.log('Item changed:', props.activeKeyProps); + if(!initData.value && props.activeKeyProps == 2){ + getTableDate() + } + // 在这里你可以根据 props.item 进行一些操作 + }); + + return { ...toRefs(state), enterPressHadlerSearch,