diff --git a/src/api/yingji/keyEnterprise.js b/src/api/yingji/keyEnterprise.js index 2faf740..6495096 100644 --- a/src/api/yingji/keyEnterprise.js +++ b/src/api/yingji/keyEnterprise.js @@ -84,7 +84,14 @@ export function listDist(query) { params: query }) } - +//计划企业表数结构 +export function planeEnTree(data) { + return request({ + url: '/pharmaceuticals/bPlanEnterprise/tree', + method: 'get', + params:data + }) +} // 行政区划树结构 export function xzTree() { return request({ diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 4f2fdc4..4d4a105 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -138,7 +138,10 @@ export default { }) .then(() => { this.$store.dispatch("LogOut").then(() => { - location.href = "/demo/suzhouyingjiPC/"; + location.href = + process.env.NODE_ENV === "production" + ? "/demo/suzhouyingjiPC/" + : "/"; }); }) .catch(() => {}); diff --git a/src/layout/newyjLayout.vue b/src/layout/newyjLayout.vue index e1a3b1a..b61014f 100644 --- a/src/layout/newyjLayout.vue +++ b/src/layout/newyjLayout.vue @@ -78,12 +78,11 @@ export default { dept: (state) => state.user.dept, username: (state) => state.user.name, roles: (state) => state.user.roles, - newRouter:(state) => state.user.newRouter, - new1:(state) => state.user.new1, + newRouter: (state) => state.user.newRouter, + new1: (state) => state.user.new1, }), }, - created() { - }, + created() {}, watch: { $route: { handler(n, o) { @@ -111,7 +110,10 @@ export default { }) .then(() => { this.$store.dispatch("LogOut").then(() => { - location.href = "/demo/suzhouyingjiPC/"; + location.href = + process.env.NODE_ENV === "production" + ? "/demo/suzhouyingjiPC/" + : "/"; }); }) .catch(() => {}); diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index 28ea9aa..c70396a 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -127,7 +127,7 @@ export const loadView = (view) => { return (resolve) => require([`@/views/${view}`], resolve) } else { // 使用 import 实现生产环境的路由懒加载 - return () => import(`@/views/${view}`) + return (resolve) => require([`@/views/${view}`], resolve) } } diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 63bf066..c9e993c 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -153,7 +153,7 @@ const user = { toRouter = arr1 } else { //区级和镇级 - if (user.dept.parentId == 100 || user.dept.parentId == 101) { + if (user.dept.parentId != 0) { arr2 = arr1.filter((value) => { return value.path == "/planManage"; }); diff --git a/src/views/login.vue b/src/views/login.vue index 5a0bcaf..93b7198 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -5,6 +5,7 @@
苏州应急执法计划管理系统
+
-
@@ -239,7 +239,9 @@ export default { height: calc(100% - 200px); width: 100%; display: flex; - flex-direction: row-reverse; + // align-items: center; + justify-content: center; + // flex-direction: row-reverse; } } .iconO { @@ -281,7 +283,7 @@ export default { height: 360px; box-sizing: border-box; padding: 35px 35px 5px 35px; - margin-right: 260px; + // margin-right: 260px; margin-top: 20px; background: rgba(229, 236, 246, 0.95); box-shadow: 0px 1px 32px 0px #0c4990; diff --git a/src/views/yingji/echarts/executive.vue b/src/views/yingji/echarts/executive.vue new file mode 100644 index 0000000..712d4b9 --- /dev/null +++ b/src/views/yingji/echarts/executive.vue @@ -0,0 +1,78 @@ + + + \ No newline at end of file diff --git a/src/views/yingji/enforcing.vue b/src/views/yingji/enforcing.vue index 970d2e7..82db706 100644 --- a/src/views/yingji/enforcing.vue +++ b/src/views/yingji/enforcing.vue @@ -23,13 +23,8 @@
区划:
- + +
@@ -157,6 +152,7 @@