| | |
| | | } else if([2012,2013,2014,2015].includes(res.data.code)){ |
| | | if (isDev){ |
| | | alert("JWT失效") |
| | | window.location = getApsPage()+'/' |
| | | // window.location = getApsPage()+'/' |
| | | }else { |
| | | // JWT鉴权失效 跳转到登录页 |
| | | window.location = getApsPage()+'/login' |
| | |
| | | if (error.response.status === 401){ |
| | | if (isDev){ |
| | | alert("JWT失效") |
| | | window.location = getApsPage()+'/' |
| | | // window.location = getApsPage()+'/' |
| | | }else { |
| | | // JWT鉴权失效 跳转到登录页 |
| | | window.location = getApsPage()+'/login' |
| | |
| | | prod: `//${window.location.hostname}:9080`, |
| | | test: `//192.168.20.119:9080`, |
| | | // 想跳到本地启动的登录页的话需要把dev改成你本地项目路径 |
| | | dev: `//192.168.8.112:8081` |
| | | dev: `//192.168.8.113:8080` |
| | | } |
| | | return loginPathMap[this.environmentType()] |
| | | }, |
| | |
| | | console.log(res.data.list,"crm菜单") |
| | | res.data.list.map((item)=>{ |
| | | if(item.systemType===2){ |
| | | this.menus=item.menus |
| | | let newList= JSON.parse(JSON.stringify([...item.menus])) |
| | | // 隐藏了 生成计划 和 服务收费管理模块 |
| | | if(newList[1]){ |
| | | const found = newList[1].children.find(obj => obj.title === "生成计划") |
| | | if(found){ |
| | | newList[1].children=[...newList[1].children.slice(0, -1)]; |
| | | } |
| | | } |
| | | if(newList[2]){ |
| | | const found1 = newList[2].children.find(obj => obj.title === "服务收费管理") |
| | | if(found1){ |
| | | newList[2].children=[...newList[2].children.slice(0, -1)]; |
| | | } |
| | | } |
| | | this.menus=newList |
| | | } |
| | | }) |
| | | }) |
| | |
| | | } |
| | | } |
| | | router.beforeEach(async (to, from, next) => { |
| | | console.log(to,from,"看看") |
| | | try { |
| | | const result = await hasPermission(to.path); |
| | | console.log(result,"result") |
| | |
| | | ...row, |
| | | status: 2 |
| | | } |
| | | console.log(params,"看看params") |
| | | await sendSalesDetailsToOtherSystem(params).then((res)=>{ |
| | | if (res.code == 200) { |
| | | this.$message.success("成功推送至aps系统") |