| | |
| | | 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()] |
| | |
| | | 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' |
| | |
| | | (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' |
| | |
| | | <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> |
| | |
| | | <!-- 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> |
| | |
| | | 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, |
| | |
| | | collectionType: this.collectionType, |
| | | moneyType: "人民币", |
| | | amountTotal: this.editCommonConfig.infomation.amountTotal, |
| | | principalId:this.getCookie('username') |
| | | principalId:'' |
| | | } |
| | | }, |
| | | getCommonData() { |
| | |
| | | id: 0, |
| | | moneyType: "人民币", |
| | | percent: ratio, |
| | | principalId: this.principalId, |
| | | principalId: Number(this.principalId), |
| | | remark: "", |
| | | sourceId: this.sourceId, |
| | | sourceType: this.sourceType, |