From d435de943589eb60a76ca0844efe2aa96cb68a3c Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期二, 12 十一月 2024 09:46:52 +0800 Subject: [PATCH] feat: 统计日报表 --- src/store/mutations.js | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/store/mutations.js b/src/store/mutations.js index e8fc14e..a91e245 100644 --- a/src/store/mutations.js +++ b/src/store/mutations.js @@ -20,20 +20,25 @@ state.resultAsyncRoutes = state.items2.filter((item)=>item.id == 2); localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes)); console.log(state.resultAsyncRoutes,state.roles,'0娉婅溅') - break; + break; case 1: state.resultAsyncRoutes =state.items.filter((item)=>item.id == 3); localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes)); console.log(state.resultAsyncRoutes,state.roles,'1鎵ф硶') break; - case 2: + case 2: state.resultAsyncRoutes = state.items; localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes)); console.log(state.resultAsyncRoutes,state.roles,' 鍏ㄩ儴')// 涓嶇敤淇敼 break; + case 3: + state.resultAsyncRoutes = state.items3.filter((item)=>item.id == 2); + localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes)); + console.log(state.resultAsyncRoutes,state.roles,'3APP绔�') + break; default: - break; + break; } }, -- Gitblit v1.9.1