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

This commit is contained in:
gengxin
2025-02-18 09:10:11 +08:00
parent 100a31d665
commit edf0e099ba
3 changed files with 6 additions and 11 deletions

View File

@@ -173,7 +173,6 @@ const expenseList = ref([])
const searchList = ref([])
const timesList = ref([])
const clickItem = (item,i) => {
console.log("clickItem gx item",item,i);
indexList.value = i
resetData(i,false)
}
@@ -197,8 +196,6 @@ watch(()=>props.visible,(val)=>{
).then(res=>{
if(res.data.code === 200){
forData.value = res.data.data;
console.log("getListByAffiliation gx forData.value ",forData.value)
console.log("getListByAffiliation gx forData.value value",forData.value)
//todo1 , 只有一个处理 初始化 处理数据 ,进行 激活处理
if(forData.value.length == 1){
activeList.value.push(0);
@@ -472,8 +469,6 @@ const columns = [
const closeDrawer = () => emit("update:visible", false);
const activeList = ref([])
const setList = (item) => {
console.log("setList gx item",item)
console.log("setList gx activeList",activeList)
const index = activeList.value.findIndex(listItem => listItem === item);
if (index > -1) {
activeList.value.splice(index, 1);

View File

@@ -267,6 +267,11 @@ export default {
watch(() => props.key, (val) => {
console.log(val, 'valllllll')
})
watch(() => props.activeKey, (activeKey) => {
console.log(activeKey, 'activeKey props')
})
onMounted(() => {
// const search = sessionStorage.getItem('searchApprlval')
// console.log(search,'search')

View File

@@ -8,7 +8,7 @@
</a-tab-pane>
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
<a-tab-pane key="2" tab="审批中心">
<LecturerApproval ref="lecturerApproval"/>
<LecturerApproval :activeKey="state.activeKey" ref="lecturerApproval"/>
</a-tab-pane>
</a-tabs>
</div>
@@ -30,7 +30,6 @@ export default {
const store = useStore();
const userInfo = computed(() => store.state.userInfo)
const route = useRoute();
const lecturerApproval = ref();
const state = reactive({
activeKey: '1',
})
@@ -49,11 +48,7 @@ export default {
})
const activeKeyFn = () => {
console.log("activeKeyFn lecturerApproval",lecturerApproval)
state.activeKey = '2'
//刷新页面数据getTableDate()
lecturerApproval.getTableDate()
}
return {