From 31ab38670493d60d009d11565ec4278cde82d933 Mon Sep 17 00:00:00 2001 From: XaoLi717 <144221124+XaoLi717@users.noreply.github.com> Date: Fri, 1 Nov 2024 09:23:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BA=8B=E5=8A=A1=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home/Index.vue | 47 +++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index 4ef34f8..76047a1 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -18,9 +18,9 @@ - - - + + + @@ -95,6 +95,7 @@ type="primary" :underline="false" target="_blank" + @click.prevent="more" style="margin-top: 10px" > 更多>> @@ -102,9 +103,9 @@ - + - + * {{item.processInstance.name}}--> - - + + - - + + @@ -364,22 +365,28 @@ const handleCarouselChange = async (currentIndex:number) => { pageNo.value=currentIndex+1 } -//利用路由实现跳转 + +/** 利用路由实现新闻跳转 */ const moreNews = async () => { await push({name: 'Homeimg'}) } -//利用路由实现跳转 -const moreTodos = async () => { - await push({name: 'BpmTodoTask'}) + +/** 动态切换路由的参数 */ +const bpmRouterNames = ref('BpmTodoTask') + +/** 流程模块需要切换路由 */ +const moreName = async (tab:any) => { + const name = tab.props?.name + if (name !== undefined){ + bpmRouterNames.value = name + } } -//利用路由实现跳转 -const moreDones = async () => { - await push({name: 'BpmTodoTask'}) -} -//利用路由实现跳转 -const moreCopys = async () => { - await push({name: 'BpmProcessInstanceCopy'}) + +/** 利用路由实现流程跳转 */ +const more = async () => { + await push({name: `${bpmRouterNames.value}`}) } + /** 处理审批按钮 */ const handleAudit = (row: any) => { console.log("processInstanceId",row.processInstanceId.id)