讲师费用管理,页面跳转,刷新页面

This commit is contained in:
gengxin
2025-02-18 10:18:35 +08:00
parent f2f38ee9cd
commit f6531d34e0
2 changed files with 5 additions and 13 deletions

View File

@@ -232,7 +232,7 @@
</div>
</template>
<script lang="jsx">
import { reactive, toRefs, ref, watch, computed, onMounted ,defineProps} from "vue";
import { reactive, toRefs, ref, watch, computed, onMounted} from "vue";
import { useRouter } from "vue-router";
import { message } from "ant-design-vue";
import dayjs from "dayjs";
@@ -265,16 +265,7 @@ export default {
},
setup() {
const props = defineProps({
activeKeyProps: {
type: String,
default: false,
},
})
watch(()=>props.activeKeyProps, (activeKeyPropsVal) => {
console.log("activeKeyPropsVal",activeKeyPropsVal)
})
onMounted(() => {
// const search = sessionStorage.getItem('searchApprlval')

View File

@@ -8,7 +8,7 @@
</a-tab-pane>
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
<a-tab-pane key="2" tab="审批中心">
<LecturerApproval :activeKeyProps="activeKey" ref="lecturerApproval"/>
<LecturerApproval ref="lecturerApproval"/>
</a-tab-pane>
</a-tabs>
</div>
@@ -39,8 +39,9 @@ export default {
return roleCode.some(t => t == admin)
}
}
watch(
)
watch(()=>state.activeKey,(valActiveKey)=>{
console.log("valActiveKey",valActiveKey)
})
onMounted(() => {
if (route.query.activeKey) {
state.activeKey = '2'