Browse Source

Merge branch 'dev_shequzhili' into dev

feature
jiangyy 3 years ago
parent
commit
e4eec7a79c
  1. 47
      src/router/index.js
  2. 2
      src/views/modules/visual/cpts/analyse.vue

47
src/router/index.js

@ -202,26 +202,6 @@ router.beforeEach((to, from, next) => {
const customerId = localStorage.getItem("customerId");
console.log("customerId:", customerId);
// http
// .get("/gov/access/menu/nav")
// .then(({ data: res }) => {
// if (res.code !== 0) {
// // Vue.prototype.$message.error(res.msg)
// return next({
// name: "login",
// });
// }
// next({
// ...to,
// replace: true,
// });
// })
// .catch(() => {
// next({
// name: "login",
// });
// });
window.SITE_CONFIG["menuShujuList"] = [
// {
// url: "/visual/plugin/power/organization",
@ -351,7 +331,6 @@ router.beforeEach((to, from, next) => {
],
},
{
icon: "icon-setting",
id: "2221321fefefaewfa123",
@ -409,6 +388,32 @@ router.beforeEach((to, from, next) => {
];
fnAddDynamicMenuRoutes2(window.SITE_CONFIG["menuShujuList"]);
http
.get("/gov/access/menu/nav?tableName=data_menu")
.then(({ data: res }) => {
if (res.code == 10005 || res.code == 10006 || res.code == 10007) {
// 10005 token为空 10006登陆超时 10007别处登录
console.log("登录失效");
Vue.prototype.$message.error(res.msg);
return next({
name: "login",
});
}
// window.SITE_CONFIG["menuShujuList"] = res.data;
// fnAddDynamicMenuRoutes2(window.SITE_CONFIG["menuShujuList"]);
next({
...to,
replace: true,
});
})
.catch(() => {
next({
name: "login",
});
});
http
.get("/gov/access/menu/nav")
.then(({ data: res }) => {

2
src/views/modules/visual/cpts/analyse.vue

@ -172,7 +172,7 @@
</div>
</div>
<div v-if="tempList.length&&tempList.length.length>0"
<div v-if="tempList.length&&tempList.length>0"
class="analys-col">
<img v-if="tempList.length > 1"
class="analys-up"

Loading…
Cancel
Save