From 24109ab423cb1eb9d36c6f0d0970e6dfa419a5c2 Mon Sep 17 00:00:00 2001 From: gengxin Date: Tue, 18 Feb 2025 10:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B2=E5=B8=88=E8=B4=B9=E7=94=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC=EF=BC=8C?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/lecturer/LecturerApproval.vue | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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,