From e07a28ee68fa766b0f2b133892170a4c010c2357 Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Mon, 9 Feb 2026 10:35:01 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20[=E7=99=BB=E5=BD=95]=20=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=AC=AC=E4=B8=80=E4=B8=AAurl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Sidebar/Logo.vue | 8 ++++---- src/store/getters.js | 4 +++- src/store/modules/user.js | 10 ++++++++-- src/views/login.vue | 4 ++-- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index 8ed2eaa..ecfb97f 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -2,16 +2,16 @@
diff --git a/src/store/getters.js b/src/store/getters.js index df156c6..bc86946 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -17,6 +17,8 @@ const getters = { topbarRouters: (state) => state.permission.topbarRouters, defaultRoutes: (state) => state.permission.defaultRoutes, sidebarRouters: (state) => state.permission.sidebarRouters, - language: (state) => state.app.language + language: (state) => state.app.language, + + defaultUrl: (state) => state.user.defaultUrl } export default getters diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 2199cf7..94c5f0c 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -13,7 +13,9 @@ const user = { nickName: '', avatar: '', roles: [], - permissions: [] + permissions: [], + + defaultUrl: '/user/work' }, mutations: { @@ -40,6 +42,9 @@ const user = { }, SET_PERMISSIONS: (state, permissions) => { state.permissions = permissions + }, + SET_DEFAULTURL: (state, defaultUrl) => { + state.defaultUrl = defaultUrl } }, @@ -59,7 +64,8 @@ const user = { commit('SET_TOKEN', data.access_token) setExpiresIn(data.expires_in) commit('SET_EXPIRES_IN', data.expires_in) - resolve() + commit('SET_DEFAULTURL', data.defaultUrl) + resolve(data.defaultUrl) }) .catch((error) => { reject(error) diff --git a/src/views/login.vue b/src/views/login.vue index dab6767..4d9c330 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -156,8 +156,8 @@ export default { Cookies.remove("password"); Cookies.remove('rememberMe'); } - this.$store.dispatch("Login", this.loginForm).then(() => { - this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); + this.$store.dispatch("Login", this.loginForm).then((url) => { + this.$router.push({ path: url }).catch(()=>{}); }).catch(err => { if(err && err.message==='exists'){ this.$confirm(this.$t('system.crowdOut'), this.$t('system.tip'), { From 7292f2917415720e20eac28b72786d8b570bd448 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Mon, 9 Feb 2026 10:59:35 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:[=E8=B5=84=E6=BA=90=E5=BA=93]=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/resource/gyzj/comps/ffjl/Xq.vue | 1 + src/views/business/resource/gyzj/comps/ffjlList.vue | 1 + src/views/business/resource/gyzj/comps/gyzj/Xq.vue | 1 + src/views/business/resource/gyzj/comps/gyzjList.vue | 1 + src/views/business/resource/gyzj/index.vue | 1 + src/views/business/resource/mjy/comps/ffjl/Xq.vue | 3 +++ src/views/business/resource/mjy/comps/ffjlList.vue | 1 + src/views/business/resource/mjy/comps/mjy/Xq.vue | 3 ++- src/views/business/resource/mjy/comps/mjyList.vue | 1 + src/views/business/resource/mjy/index.vue | 1 + src/views/business/study/comp/wzlb/gyzjList.vue | 2 +- src/views/business/study/comp/wzlb/mjyList.vue | 2 +- 12 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/views/business/resource/gyzj/comps/ffjl/Xq.vue b/src/views/business/resource/gyzj/comps/ffjl/Xq.vue index c966c8a..9b272b1 100644 --- a/src/views/business/resource/gyzj/comps/ffjl/Xq.vue +++ b/src/views/business/resource/gyzj/comps/ffjl/Xq.vue @@ -221,6 +221,7 @@ export default { this.form = response.data this.open = true this.getJjcgjList() + this.saveSimpleLog({name:row.bh,nameEn:row.bh,jcmc:'给药制剂发放回收详情',jcmcEn:'Formulation In-and-Out Record Detail'}) }).finally(() => { this.$modal.closeLoading() }) diff --git a/src/views/business/resource/gyzj/comps/ffjlList.vue b/src/views/business/resource/gyzj/comps/ffjlList.vue index 892648b..4771aef 100644 --- a/src/views/business/resource/gyzj/comps/ffjlList.vue +++ b/src/views/business/resource/gyzj/comps/ffjlList.vue @@ -397,6 +397,7 @@ export default { a.href = uri + window.btoa(unescape(encodeURIComponent(exportTemplate))) a.click() that.$modal.closeLoading() + that.saveSimpleLog({name:'',nameEn:'',jcmc:'给药制剂发放回收导出',jcmcEn:'Formulation In-and-Out Record Export'}) }).finally(() => { that.$modal.closeLoading() }) diff --git a/src/views/business/resource/gyzj/comps/gyzj/Xq.vue b/src/views/business/resource/gyzj/comps/gyzj/Xq.vue index 1469336..b851d7e 100644 --- a/src/views/business/resource/gyzj/comps/gyzj/Xq.vue +++ b/src/views/business/resource/gyzj/comps/gyzj/Xq.vue @@ -226,6 +226,7 @@ export default { this.form = response.data this.open = true this.getTzList() + this.saveSimpleLog({name:row.bh,nameEn:row.bh,jcmc:'给药制剂详情',jcmcEn:'Formulation Detail'}) }).finally(() => { this.$modal.closeLoading() }) diff --git a/src/views/business/resource/gyzj/comps/gyzjList.vue b/src/views/business/resource/gyzj/comps/gyzjList.vue index ad1875d..dfbd478 100644 --- a/src/views/business/resource/gyzj/comps/gyzjList.vue +++ b/src/views/business/resource/gyzj/comps/gyzjList.vue @@ -414,6 +414,7 @@ export default { a.href = uri + window.btoa(unescape(encodeURIComponent(exportTemplate))) a.click() that.$modal.closeLoading() + that.saveSimpleLog({name:'',nameEn:'',jcmc:'给药制剂导出',jcmcEn:'Formulation Export'}) }).finally(() => { that.$modal.closeLoading() }) diff --git a/src/views/business/resource/gyzj/index.vue b/src/views/business/resource/gyzj/index.vue index 911db44..041119a 100644 --- a/src/views/business/resource/gyzj/index.vue +++ b/src/views/business/resource/gyzj/index.vue @@ -43,6 +43,7 @@ export default { changeTab(item) { if (this.active !== item.key) { this.active = item.key + this.saveSimpleLog({name:this.$t(item.name,'zh_CN'),nameEn:this.$t(item.name,'en_US'),jcmc:this.$t('system.enterPage','zh_CN'),jcmcEn:this.$t('system.enterPage','en_US')}) } }, showDetailCallback(val) { diff --git a/src/views/business/resource/mjy/comps/ffjl/Xq.vue b/src/views/business/resource/mjy/comps/ffjl/Xq.vue index c1d00fb..9af529f 100644 --- a/src/views/business/resource/mjy/comps/ffjl/Xq.vue +++ b/src/views/business/resource/mjy/comps/ffjl/Xq.vue @@ -222,6 +222,9 @@ export default { this.form = response.data this.open = true this.getJjcgjList() + this.saveSimpleLog({name:row.bh,nameEn:row.bh,jcmc:'麻精药发放回收详情',jcmcEn:'Controlled Drug In-and-Out Record Detail'}) + }).finally(() => { + this.$modal.closeLoading() }) } } diff --git a/src/views/business/resource/mjy/comps/ffjlList.vue b/src/views/business/resource/mjy/comps/ffjlList.vue index 39af500..db642e3 100644 --- a/src/views/business/resource/mjy/comps/ffjlList.vue +++ b/src/views/business/resource/mjy/comps/ffjlList.vue @@ -397,6 +397,7 @@ export default { a.href = uri + window.btoa(unescape(encodeURIComponent(exportTemplate))) a.click() that.$modal.closeLoading() + that.saveSimpleLog({name:'',nameEn:'',jcmc:'麻精药发放回收导出',jcmcEn:'Controlled Drug In-and-Out Record Export'}) }).finally(() => { that.$modal.closeLoading() }) diff --git a/src/views/business/resource/mjy/comps/mjy/Xq.vue b/src/views/business/resource/mjy/comps/mjy/Xq.vue index 1c0be7b..fa465f2 100644 --- a/src/views/business/resource/mjy/comps/mjy/Xq.vue +++ b/src/views/business/resource/mjy/comps/mjy/Xq.vue @@ -221,8 +221,9 @@ export default { this.$modal.loading() info({ id: row.id }).then(response => { this.form = response.data - this.getTzList() this.open = true + this.getTzList() + this.saveSimpleLog({name:row.bh,nameEn:row.bh,jcmc:'麻精药详情',jcmcEn:'Controlled Drug Detail'}) }).finally(() => { this.$modal.closeLoading() }) diff --git a/src/views/business/resource/mjy/comps/mjyList.vue b/src/views/business/resource/mjy/comps/mjyList.vue index 84e3a24..c06594f 100644 --- a/src/views/business/resource/mjy/comps/mjyList.vue +++ b/src/views/business/resource/mjy/comps/mjyList.vue @@ -413,6 +413,7 @@ export default { a.href = uri + window.btoa(unescape(encodeURIComponent(exportTemplate))) a.click() that.$modal.closeLoading() + that.saveSimpleLog({name:'',nameEn:'',jcmc:'麻精药导出',jcmcEn:'Controlled Drug Export'}) }).finally(() => { that.$modal.closeLoading() }) diff --git a/src/views/business/resource/mjy/index.vue b/src/views/business/resource/mjy/index.vue index fbe816e..f441a96 100644 --- a/src/views/business/resource/mjy/index.vue +++ b/src/views/business/resource/mjy/index.vue @@ -43,6 +43,7 @@ export default { changeTab(item) { if (this.active !== item.key) { this.active = item.key + this.saveSimpleLog({name:this.$t(item.name,'zh_CN'),nameEn:this.$t(item.name,'en_US'),jcmc:this.$t('system.enterPage','zh_CN'),jcmcEn:this.$t('system.enterPage','en_US')}) } }, showDetailCallback(val) { diff --git a/src/views/business/study/comp/wzlb/gyzjList.vue b/src/views/business/study/comp/wzlb/gyzjList.vue index a69fa9b..a6b16c7 100644 --- a/src/views/business/study/comp/wzlb/gyzjList.vue +++ b/src/views/business/study/comp/wzlb/gyzjList.vue @@ -102,7 +102,7 @@ -