From 3336d498af40d1053d9da10bd53b072bb3237031 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期五, 22 十二月 2023 16:52:57 +0800 Subject: [PATCH] 修改侧边栏显示状态 --- src/common/untils/request.js | 10 +++++----- src/views/other/payment/collectionPlan/AddCollectionPlan.vue | 6 +++--- src/components/layout/components/appsidebar/index.vue | 8 ++++++++ 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/common/untils/request.js b/src/common/untils/request.js index e370bc2..d7bf74b 100644 --- a/src/common/untils/request.js +++ b/src/common/untils/request.js @@ -33,7 +33,7 @@ prod:`//${window.location.hostname}:9080`, test:`//192.168.20.119:9080`, // 鎯宠烦鍒版湰鍦板惎鍔ㄧ殑鐧诲綍椤电殑璇濋渶瑕佹妸dev鏀规垚浣犳湰鍦伴」鐩矾寰� - dev: `//192.168.8.111:8081` + dev: `//192.168.20.158:8080` } return loginPathMap[environmentType()] @@ -70,8 +70,8 @@ return res } else if([2012,2013,2014,2015].includes(res.data.code)){ if (isDev){ - alert("JWT澶辨晥") - // window.location = getApsPage()+'/' + alert("JWT澶辨晥,鍗冲皢璺宠浆鑷崇櫥褰曢〉..") + window.location = getApsPage()+'/login' }else { // JWT閴存潈澶辨晥 璺宠浆鍒扮櫥褰曢〉 window.location = getApsPage()+'/login' @@ -89,8 +89,8 @@ (error) => { if (error.response.status === 401){ if (isDev){ - alert("JWT澶辨晥") - // window.location = getApsPage()+'/' + alert("JWT澶辨晥,鍗冲皢璺宠浆鑷崇櫥褰曢〉..") + window.location = getApsPage()+'/login' }else { // JWT閴存潈澶辨晥 璺宠浆鍒扮櫥褰曢〉 window.location = getApsPage()+'/login' diff --git a/src/components/layout/components/appsidebar/index.vue b/src/components/layout/components/appsidebar/index.vue index d3903a9..89b72f6 100644 --- a/src/components/layout/components/appsidebar/index.vue +++ b/src/components/layout/components/appsidebar/index.vue @@ -36,6 +36,7 @@ <el-menu-item index="/backgroundConfig/rolePermssion">瑙掕壊鏉冮檺</el-menu-item> </el-submenu> --> </el-menu> + <el-empty v-if="this.menus===null||this.menus===undefined||this.menus.length===0" :image-size="130" description="娌℃湁渚ф爮鑿滃崟"></el-empty> </div> </div> </template> @@ -93,4 +94,11 @@ <!-- Add "scoped" attribute to limit CSS to this component only --> <style lang="scss" scoped> @import "./index.scss"; +::v-deep .el-empty{ + .el-empty__description{ + p{ + color: #dddd; + } + } +} </style> diff --git a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue b/src/views/other/payment/collectionPlan/AddCollectionPlan.vue index 52cd7d5..fad9749 100644 --- a/src/views/other/payment/collectionPlan/AddCollectionPlan.vue +++ b/src/views/other/payment/collectionPlan/AddCollectionPlan.vue @@ -198,7 +198,7 @@ amount: 130, sourceType: this.editCommonConfig.sourceType, // 婧愬崟绫诲瀷 1閿�鍞槑缁�2鏈嶅姟鍚堝悓3閿�鍞彂绁� sourceId: this.editCommonConfig.infomation.id, - principalId: this.getCookie('username')||0, + principalId: '', planAmount: 0, // 璁″垝閲戦 firstDate: this.getCurrentDate(1), collectionType: 1, @@ -238,7 +238,7 @@ collectionType: this.collectionType, moneyType: "浜烘皯甯�", amountTotal: this.editCommonConfig.infomation.amountTotal, - principalId:this.getCookie('username') + principalId:'' } }, getCommonData() { @@ -337,7 +337,7 @@ id: 0, moneyType: "浜烘皯甯�", percent: ratio, - principalId: this.principalId, + principalId: Number(this.principalId), remark: "", sourceId: this.sourceId, sourceType: this.sourceType, -- Gitblit v1.8.0