diff --git a/front/src/views/personalCenter/components/MyApply.vue b/front/src/views/personalCenter/components/MyApply.vue index 29c08390..7654f29e 100644 --- a/front/src/views/personalCenter/components/MyApply.vue +++ b/front/src/views/personalCenter/components/MyApply.vue @@ -208,6 +208,7 @@ onBeforeUnmount, h, defineProps, + nextTick, } from 'vue' import { getMyProcessInstancePage, @@ -252,16 +253,19 @@ typeList.value.push('设备申请') } const typeStrObj = { - 能力上架: 'resourcemountapply', - 能力下架: 'resourcundercarriageapply', - 能力需求: 'abilitydemandapply', - 需求评论: 'comment_review', + '能力上架': 'resourcemountapply', + '能力下架': 'resourcundercarriageapply', + '能力需求': 'abilitydemandapply', + '需求评论': 'comment_review', } let tabList = ref(['全部', '审核中', '审核完成']) const contentList = reactive({ data: [] }) let tabIndex = ref(0) let typeIndex = ref(0) let typeName = ref(typeList.value[0]) + if(router.currentRoute.value.query.tabTypeName) { + typeName.value = router.currentRoute.value.query.tabTypeName + } const videoVisible = ref(false) const numFlag = ref(true) const columns = ref([ @@ -306,7 +310,7 @@ ended.value = '' page.value = 1 typeIndex.value = index - typeName.value = item + typeName.value = item; getApplyList() } @@ -565,7 +569,6 @@ params.processDefinitionKey = processDefinitionKey.value getMyProcessInstancePage(params).then((res) => { contentList.data = [] - // initNum(name.value) console.log(res.data.data.list) contentList.data = res.data.data.list total.value = res.data.data.total