From d28628f35a77b5d0c61177b9b99d6ae5e18741d9 Mon Sep 17 00:00:00 2001 From: guoyue Date: Wed, 26 Oct 2022 15:01:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=B6=88=E6=81=AF=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E8=8E=B7=E5=8F=96=E5=88=97=E8=A1=A8bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/personalCenter/components/MyApply.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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