林倩 4 anni fa
parent
commit
50e34e2240

+ 6 - 3
config/dev.env.js

@@ -14,7 +14,7 @@ module.exports = merge(prodEnv, {
     QQQ: '"/easy-mock2"',
 
     //是否需要登录验证
-    NEED_LOGIN: "true",
+    NEED_LOGIN: "false",
 
     //需要依赖的系统名称
     // INSTALLED_PROJECT: "'zfba,demo2,cross-env'",
@@ -28,7 +28,7 @@ module.exports = merge(prodEnv, {
 
     // 布局结构配置,可选项包含 `layout-menu-top`, `layout`
     LAYOUT: '"layout"',
-
+    PORT: "8871",
     //是否启用本地mock
     IS_MOCK: "false",
 
@@ -36,7 +36,10 @@ module.exports = merge(prodEnv, {
         "/dcucauth": {
             // target: "http://10.11.1.155:8861" // 傅志强
             // target: "http://10.11.1.192:8871" // 马志强
-            target: "http://10.11.1.142:8861" // 易长安
+            // target: "http://10.11.1.142:8861" // 易长安
+            // target: "http://10.254.10.15:8861" // 傅志强
+            target: "http://10.11.1.151:8861"
+
         }
     })
 });

+ 1 - 1
config/dev.env.js-deploy

@@ -16,7 +16,7 @@ module.exports = merge(prodEnv, {
     //MODULE2: '"/easy-mock2"',
 
     //是否需要登录验证
-    NEED_LOGIN: "true",
+    NEED_LOGIN: "false",
 
     //需要依赖的系统名称
     //INSTALLED_PROJECT: "'zfba,demo2,cross-env'",

+ 1 - 1
config/prod.env.js

@@ -4,7 +4,7 @@ module.exports = {
     IS_BASE_PACKAGE: "true",
     FILE_BASE_PATH: '"http://192.168.10.14:1665"',
 
-    NEED_LOGIN: "true",
+    NEED_LOGIN: "false",
     BASE_API: '"/dcucauth"',
     BUILD_PATH: '"../dist"',
     IS_OAUTH2: "false",

+ 1 - 1
config/prod.env.js-deploy

@@ -3,7 +3,7 @@ module.exports = {
     NODE_ENV: '"production"',
     IS_BASE_PACKAGE: "true",
 
-    NEED_LOGIN: "true",
+    NEED_LOGIN: "false",
     BASE_API: '"/zfba"',
     BUILD_PATH: '"../dist"',
 

+ 5 - 1
src/main.js

@@ -45,7 +45,11 @@ if (!process.env.IS_BASE_PACKAGE) {
     utils = require("@/utils").default;
 } else {
     // 引入路由权限控制
-    require("ui-jz-v4-common/src/router/permission");
+    if(process.env.NEED_LOGIN) {
+       require("@/router/dcuc_permission.js");      
+    }else {
+        require("@/router/lxr_permission.js");  
+    }
     // 全局引入 封装的组件
     BaseUI = require("ui-jz-v4-common/src/components").default;
     // 全局引入工具类

+ 1 - 2
src/pages/layout/components/navbar.vue

@@ -80,8 +80,7 @@ export default {
         },
         logout() {
             this.$confirm("是否确定退出系统").then(() => {
-                window.loginUtil.logout(this);
-
+                 window.location.href = `https://login.iam.com/apphub/logout`;
                 // if (getSettingBool("IS_OAUTH2")) {
                 //     let logoutUrl =
                 //         window.sessionStorage["authorizeUrl"] + `/logout?redirect_uri=${window.location.href}`;

+ 83 - 89
src/router/permission.js → src/router/dcuc_permission.js

@@ -2,44 +2,62 @@ import router from "@/router/index.js";
 import store from "@/store";
 import NProgress from "nprogress"; // progress bar
 import "./progress.css";
-import {getQueryObject} from "../utils/data-utils.js";
-import {getToken, getUserName} from "@/utils/auth"; // getToken from cookie
+import { getToken, getUserName } from "@/utils/auth"; // getToken from cookie
 import _ from "lodash";
 
-const {initSettings, getSetting, getSettings, getSettingBool} = window.systemParamsUtils;
+const { initSettings, getSetting, getSettings, getSettingBool } = window.systemParamsUtils;
 
-NProgress.configure({showSpinner: false}); // NProgress Configuration
+NProgress.configure({ showSpinner: false }); // NProgress Configuration
 
-// permission judge function
-function hasPermission(userPermissions, routePermissions) {
-    if (!routePermissions || (routePermissions && routePermissions.length === 0)) {
-        return true;
-    }
-    return userPermissions.some(userPermission => {
-        return routePermissions.indexOf(userPermission) >= 0;
-    });
+// 合并白名单列表
+const WHITE_LIST = getSetting("WHITE_LIST");
+let whiteList = ["/login", "/auth-redirect"]; // no redirect whitelist
+if (WHITE_LIST instanceof Array) {
+    whiteList = whiteList.concat(WHITE_LIST);
 }
 
-const whiteList = ["/login", "/auth-redirect"]; // no redirect whitelist
-
 router.beforeEach((to, from, next) => {
     NProgress.start(); // start progress bar
     let queryObject = getQueryObject();
     if (_.isEmpty(getSettings())) {
-        //如果配置信息为空,则先加载配置信息
-        initSettings().then(() => location.reload());
-    } else if (!getSettingBool("NEED_LOGIN")) {
-        // 如果项目不需要登录,则不需要获取用户信息和权限
-        noNeedLogin(to, from, next);
+        initSettings().then(() => location.reload()); // 如果配置信息为空,则先加载配置信息
+    } else if (!getSettingBool("NEED_LOGIN") || whiteList.indexOf(to.path) !== -1) {
+        noNeedLogin(to, from, next); // 如果项目不需要登录或页面url在白名单中,则不需要获取用户信息和权限
     } else if (getSettingBool("IS_OAUTH2") && queryObject.code) {
-        //如果使用oauth2登录并且地址栏中有code参数,则去请求token
-        getAccessToken(queryObject);
+        getAccessToken(queryObject); // 如果使用oauth2登录并且地址栏中有code参数,则去请求token
     } else {
-        //检查是否登录
-        checkLogin(to, next);
+        checkLogin(to, next); // 检查是否登录
     }
 });
 
+/**
+ * 将url的参数转为对象
+ * 不传默认获取当前浏览器地址的参数
+ */
+function getQueryObject(url = window.location.href) {
+    const search = url.substring(url.lastIndexOf("?") + 1);
+    const obj = {};
+    const reg = /([^?&=]+)=([^?&=]*)/g;
+    search.replace(reg, (rs, $1, $2) => {
+        const name = decodeURIComponent($1);
+        let val = decodeURIComponent($2);
+        val = String(val);
+        obj[name] = val;
+        return rs;
+    });
+    return obj;
+}
+
+// permission judge function
+function hasPermission(userPermissions = [], routePermissions = []) {
+    if (routePermissions && routePermissions.length === 0) {
+        return true;
+    }
+    return userPermissions.some(userPermission => {
+        return routePermissions.indexOf(userPermission) >= 0;
+    });
+}
+
 router.afterEach(() => {
     NProgress.done(); // finish progress bar
 });
@@ -62,49 +80,19 @@ function noNeedLogin(to, from, next) {
  * 如果是Oauth2登录并且地址栏上有code字段,则去请求access_token
  * @param queryObject   地址栏上的参数
  */
-function getAccessToken(queryObject) {
+async function getAccessToken(queryObject) {
     let code = queryObject.code.split("#/")[0];
-    store
-        .dispatch("GetOAuthToken", { code })
-        .then(code => {
-            //如果登录成功了,清除掉url中的code,刷新页面
-            if (getToken()) {
-                window.location.href = delParam("code");
-            }
-        })
-        .catch(reason => {
-            store.dispatch("FedLogout").then(() => {
-                location.reload();
-            });
-        });
-}
-
-/**
- * 去掉url上的指定参数
- * @param paramKey  要删除的key
- */
-function delParam(paramKey) {
-    let url = window.location.href; //页面url
-    let urlParam = window.location.search.substr(1); //页面参数
-    let beforeUrl = url.substr(0, url.indexOf("?")); //页面主地址(参数之前地址)
-    let nextUrl = "";
-    let arr = [];
-    if (urlParam !== "") {
-        let urlParamArr = urlParam.split("&"); //将参数按照&符分成数组
-        for (let i = 0; i < urlParamArr.length; i++) {
-            let paramArr = urlParamArr[i].split("="); //将参数键,值拆开
-            //如果键雨要删除的不一致,则加入到参数中
-            if (paramArr[0] !== paramKey) {
-                arr.push(urlParamArr[i]);
-            }
+    try {
+        await store.dispatch("GetOAuthToken", { code });
+        if (getToken()) {
+            window.location.href = "http://" + window.location.host + decodeURIComponent(window.location.pathname);
         }
-        if (arr.length > 0) {
-            nextUrl = "?" + arr.join("&");
-        }
-        url = beforeUrl + nextUrl;
+    } catch (reason) {
+        console.error(reason);
+        store.dispatch("FedLogout").then(() => {
+            location.reload();
+        });
     }
-    url = "http://" + window.location.host + decodeURIComponent(window.location.pathname);
-    return url;
 }
 
 /**
@@ -115,8 +103,7 @@ function delParam(paramKey) {
  */
 function checkIsInWhiteList(to, next, link, result) {
     if (whiteList.indexOf(to.path) !== -1) {
-        // 在免登录白名单,直接进入
-        next();
+        next(); // 在免登录白名单,直接进入
     } else if (result instanceof Promise) {
         result.then(result => {
             if (result && result.status === 403 && result.link) {
@@ -153,29 +140,36 @@ function generateRoutes(permissions, next, to) {
 }
 
 function checkLogin(to, next) {
+    console.log(getUserName());
     if (getUserName()) {
-        debugger;
         if (to.path === "/login") {
             next({ path: "/" });
             NProgress.done(); // if current page is dashboard will not trigger	afterEach hook, so manually handle it
         } else {
             let permissionsLength = store.getters.permissions.length;
             if (!store.getters.name && !permissionsLength) {
-                store
-                    .dispatch("GetUserInfo")
-                    .then(res => {
+                try {
+                    // 获取用户信息
+                    // await ;
+                    store.dispatch("GetUserInfo").then(() => {
                         let permissions = store.getters.permissions;
                         generateRoutes(permissions, next, to);
-                    })
-                    .catch(err => {
-                        store.dispatch("FedLogout").then(() => {
-                            if (!err.link) {
-                                next(`/login?redirect=${to.path}`); // 否则全部重定向到登录页
-                            } else {
-                                next({ path: "/" });
-                            }
-                        });
                     });
+                } catch (err) {
+                    store.dispatch("FedLogout").then(() => {
+                        if (!err.link) {
+                            next(`/login?redirect=${to.path}`); // 否则全部重定向到登录页
+                        } else {
+                            next({ path: "/" });
+                        }
+                    });
+                    // await store.dispatch("FedLogout")   // 如果获取用户信息失败,则将本地的用户信息相关的东西清空,并登出
+                    // if (!err.link) {
+                    //     next(`/login?redirect=${to.path}`); // 否则全部重定向到登录页
+                    // } else {
+                    //     next({ path: "/" });
+                    // }
+                }
             } else {
                 // 没有动态改变权限的需求可直接next() 删除下方权限判断 ↓
                 // if (hasPermission(store.getters.roles, to.meta.roles)) {
@@ -192,20 +186,20 @@ function checkLogin(to, next) {
         }
     } else {
         if (getSetting("BASE_API") === "/easy-mock") {
-            //检查是否在白名单中
-            checkIsInWhiteList(to, next);
+            checkIsInWhiteList(to, next); // 检查是否在白名单中
         } else {
-            store
-                .dispatch("GetUserInfo")
-                .then(res => {
+            try {
+                store.dispatch("GetUserInfo").then(() => {
                     window.location.reload();
-                })
-                .catch(result => {
-                    let link;
-                    result && (link = result.link);
-                    //检查是否在白名单中
-                    checkIsInWhiteList(to, next, link, result);
                 });
+                // await store.dispatch("GetUserInfo")
+                // window.location.reload();
+            } catch (result) {
+                let link;
+                result && (link = result.link);
+
+                checkIsInWhiteList(to, next, link, result); // 检查是否在白名单中
+            }
         }
     }
 }

+ 203 - 0
src/router/lxr_permission.js

@@ -0,0 +1,203 @@
+import router from "@/router/index.js";
+import store from "@/store";
+import NProgress from "nprogress"; // progress bar
+import "./progress.css";
+import { getToken, getUserName } from "@/utils/auth"; // getToken from cookie
+import _ from "lodash";
+
+const { initSettings, getSetting, getSettings, getSettingBool } = window.systemParamsUtils;
+
+NProgress.configure({ showSpinner: false }); // NProgress Configuration
+
+// 合并白名单列表
+const WHITE_LIST = getSetting("WHITE_LIST");
+let whiteList = [ "/auth-redirect"]; // no redirect whitelist
+if (WHITE_LIST instanceof Array) {
+    whiteList = whiteList.concat(WHITE_LIST);
+}
+
+router.beforeEach((to, from, next) => {
+    NProgress.start(); // start progress bar
+    let queryObject = getQueryObject();
+    if (_.isEmpty(getSettings())) {
+        initSettings().then(() => location.reload()); // 如果配置信息为空,则先加载配置信息
+    } else if (_.isEmpty(store.state.user.userInfo) && whiteList.indexOf(to.path) == -1) {
+        checkLogin(to, next); // 检查是否登录
+    } else {
+        next();
+    }
+});
+
+/**
+ * 将url的参数转为对象
+ * 不传默认获取当前浏览器地址的参数
+ */
+function getQueryObject(url = window.location.href) {
+    const search = url.substring(url.lastIndexOf("?") + 1);
+    const obj = {};
+    const reg = /([^?&=]+)=([^?&=]*)/g;
+    search.replace(reg, (rs, $1, $2) => {
+        const name = decodeURIComponent($1);
+        let val = decodeURIComponent($2);
+        val = String(val);
+        obj[name] = val;
+        return rs;
+    });
+    return obj;
+}
+
+// permission judge function
+function hasPermission(userPermissions = [], routePermissions = []) {
+    if (routePermissions && routePermissions.length === 0) {
+        return true;
+    }
+    return userPermissions.some(userPermission => {
+        return routePermissions.indexOf(userPermission) >= 0;
+    });
+}
+
+router.afterEach(() => {
+    NProgress.done(); // finish progress bar
+});
+
+/**
+ * 不需要登录则直接加载所有路由
+ * @param to
+ * @param from
+ * @param next
+ */
+function noNeedLogin(to, from, next) {
+    if (store.getters.addRouters.length === 0) {
+        generateRoutes([], next, to);
+    } else {
+        next();
+    }
+}
+
+/**
+ * 如果是Oauth2登录并且地址栏上有code字段,则去请求access_token
+ * @param queryObject   地址栏上的参数
+ */
+async function getAccessToken(queryObject) {
+    let code = queryObject.code.split("#/")[0];
+    try {
+        await store.dispatch("GetOAuthToken", { code });
+        if (getToken()) {
+            window.location.href = "http://" + window.location.host + decodeURIComponent(window.location.pathname);
+        }
+    } catch (reason) {
+        console.error(reason);
+        store.dispatch("FedLogout").then(() => {
+            location.reload();
+        });
+    }
+}
+
+/**
+ * 检查是否在白名单中,进行页面跳转
+ * @param to
+ * @param next
+ * @param link
+ */
+function checkIsInWhiteList(to, next, link, result) {
+    if (whiteList.indexOf(to.path) !== -1) {
+        next(); // 在免登录白名单,直接进入
+    } else if (result instanceof Promise) {
+        result.then(result => {
+            if (result && result.status === 403 && result.link) {
+                console.error("oauth2验证不通过,将跳转到登录页");
+            }
+        });
+    } else {
+        !link && next(`/login?redirect=${to.path}`); // 否则全部重定向到登录页
+        NProgress.done(); // if current page is login will not trigger afterEach hook, so manually handle it
+    }
+}
+
+/**
+ * 生成路由
+ * @param permissions   用户权限
+ * @param next
+ * @param to
+ */
+function generateRoutes(permissions, next, to) {
+    store.dispatch("GenerateRoutes", { permissions }).then(() => {
+        // 根据权限生成可访问的路由表
+        router.addRoutes(store.getters.addRouters); // 动态添加可访问路由表
+
+        if (hasPermission(store.getters.permissions, to.meta.permission)) {
+            next({ ...to, replace: true });
+        } else {
+            next({
+                path: "/",
+                replace: true
+            });
+        }
+        // next({ ...to, replace: true }); // hack方法 确保addRoutes已完成 ,set the replace: true so the navigation will not leave a history record
+    });
+}
+
+function checkLogin(to, next) {
+    console.log(getUserName());
+    if (getUserName()) {
+        if (to.path === "/login") {
+            next({ path: "/" });
+            NProgress.done(); // if current page is dashboard will not trigger	afterEach hook, so manually handle it
+        } else {
+            let permissionsLength = store.getters.permissions.length;
+            if (!store.getters.name && !permissionsLength) {
+                try {
+                    // 获取用户信息
+                    // await ;
+                    store.dispatch("GetUserInfo").then(() => {
+                        let permissions = store.getters.permissions;
+                        generateRoutes(permissions, next, to);
+                    });
+                } catch (err) {
+                    store.dispatch("FedLogout").then(() => {
+                        if (!err.link) {
+                            next(`/login?redirect=${to.path}`); // 否则全部重定向到登录页
+                        } else {
+                            next({ path: "/" });
+                        }
+                    });
+                    // await store.dispatch("FedLogout")   // 如果获取用户信息失败,则将本地的用户信息相关的东西清空,并登出
+                    // if (!err.link) {
+                    //     next(`/login?redirect=${to.path}`); // 否则全部重定向到登录页
+                    // } else {
+                    //     next({ path: "/" });
+                    // }
+                }
+            } else {
+                // 没有动态改变权限的需求可直接next() 删除下方权限判断 ↓
+                // if (hasPermission(store.getters.roles, to.meta.roles)) {
+                next();
+                // } else {
+                //     next({
+                //         path: "/401",
+                //         replace: true,
+                //         query: { noGoBack: true }
+                //     });
+                // }
+                // 可删 ↑
+            }
+        }
+    } else {
+        if (getSetting("BASE_API") === "/easy-mock") {
+            checkIsInWhiteList(to, next); // 检查是否在白名单中
+        } else {
+            try {
+                store.dispatch("GetUserInfo").then(() => {
+                    window.location.reload();
+                });
+                // await store.dispatch("GetUserInfo")
+                // window.location.reload();
+            } catch (result) {
+                let link;
+                result && (link = result.link);
+
+                checkIsInWhiteList(to, next, link, result); // 检查是否在白名单中
+            }
+        }
+    }
+}

+ 1847 - 0
src/store/modules/mockUser.js

@@ -0,0 +1,1847 @@
+const userInfo = {
+    id: "402881cb4era66f4014b0ghd0b875485",
+    code: null,
+    userName: "ADMIN",
+    password: null,
+    idcard: "000000000000000001",
+    name: "ADMIN",
+    policeNo: "100001",
+    securityOrg: "7F08CCC3C4984A2586C9D3F0A6B804E5",
+    securityOrgName: "公安部",
+    securityRoles: [],
+    manType: "10",
+    mobile: "18870427375",
+    email: null,
+    address: "",
+    sex: "",
+    telephone: "32145644",
+    securityRights: [
+        "YHGLPT_JGGL_JGGL",
+        "YHGLPT_YHGL_HMDGL",
+        "YHGLPT_JGGL_JGGL",
+        "YHGLPT_YHGL_HMDGL",
+        "YHGLPT_YHGL_GLYSJ",
+        "YHGLPT_MDGL_RYMD",
+        "YHGLPT_ZHCX_RYCX",
+        "YHGLPT_TJBB_YHJSQK",
+        "YHGLPT_TJBB_YHJSQK",
+        "YHGLPT_YHGL",
+        "YHGLPT_YHGL_GLYGL",
+        "YHGLPT_YHGL_JYGL",
+        "YHGLPT_YYGL_CSGL",
+        "YHGLPT_MDGL_RYMD",
+        "YHGLPT_ZHCX_RYCX",
+        "YHGLPT_GGZY_DMB",
+        "YHGLPT_TJBB_TXYFKSJTJ",
+        "YHGLPT_FKYJ_FKYJ",
+        "YHGLPT_QXGL_QXPZ",
+        "YHGLPT_DTSQGL_DTSQGL",
+        "YHGLPT_YHGL",
+        "YHGLPT_YHGL_GLYGL",
+        "YHGLPT_YHGL_JYGL",
+        "YHGLPT_YYGL_CSGL",
+        "YHGLPT_TJBB_TXYFKSJTJ",
+        "YHGLPT_FKYJ_FKYJ",
+        "YHGLPT_QXGL_QXPZ",
+        "YHGLPT_YHGL_GLYSJ",
+        "YHGLPT_GGZY_DMB",
+        "YHGLPT_DTSQGL_DTSQGL",
+        "YHGLPT_MDGL_RYMD",
+        "YHGLPT_ZHCX_RYCX",
+        "YHGLPT_ZHGL_JG",
+        "YHGLPT_MDGL_SBMD",
+        "YHGLPT_ZHCX_JGCX",
+        "YHGLPT_YHGL_FJGL",
+        "YHGLPT_GLYGL",
+        "YHGLPT_YYGL_YYGL",
+        "YHGLPT_SQGL_GLYTJ",
+        "YHGLPT_MDGL_SBMD",
+        "YHGLPT_ZHCX_JGCX",
+        "YHGLPT_SQGL_JGPEGL",
+        "YHGLPT_YHGL_FJGL",
+        "YHGLPT_GLYGL",
+        "YHGLPT_YYGL_YYGL",
+        "YHGLPT_SQGL_GLYTJ",
+        "YHGLPT_SQGL_JGPEGL",
+        "YHGLPT_MDGL_SBMD",
+        "YHGLPT_ZHCX_JGCX",
+        "YHGLPT_ZHGL_RY",
+        "YHGLPT_YHGL_WBRY",
+        "YHGLPT_JGGL",
+        "YHGLPT_GGZY_SJY",
+        "YHGLPT_SQGL_RYSQGL",
+        "YHGLPT_TJBB_JSSQQK",
+        "YHGLPT_YHGL_WBRY",
+        "YHGLPT_JGGL",
+        "YHGLPT_SQGL_RYSQGL",
+        "YHGLPT_TJBB_JSSQQK",
+        "YHGLPT_GGZY_SJY",
+        "YHGLPT_YHGL_GRXXGL",
+        "YHGLPT_YHGL_GRXXGL",
+        "YHGLPT_RZSJBB_YHSJ",
+        "YHGLPT_RZSJBB",
+        "YHGLPT_RZSJBB_JGSJ",
+        "YHGLPT_RZSJGL",
+        "YHGLPT_RZSJGL_RYQXSQSJ",
+        "YHGLPT_RZSJBB_YHSJ",
+        "YHGLPT_RZSJBB",
+        "YHGLPT_RZSJBB_JGSJ",
+        "YHGLPT_RZSJGL",
+        "YHGLPT_RZSJGL_RYQXSQSJ",
+        "YHGLPT_ZHCX",
+        "YHGLPT_YHGL_ZHGL",
+        "YHGLPT_RZSJBB_YHSJ",
+        "YHGLPT_YHGL_ZHGL",
+        "YHGLPT_RZSJBB_YHSJ",
+        "YHGLPT_MDGL",
+        "YHGLPT_RZSJBB_GLYSJ",
+        "YHGLPT_YHGL_ZFRYGL",
+        "YHGLPT_RZSJBB_GLYSJ",
+        "YHGLPT_YHGL_ZFRYGL",
+        "YHGLPT_YYGL",
+        "YHGLPT_ZHCX",
+        "YHGLPT_DTSQGL",
+        "YHGLPT_DTSQGL",
+        "YHGLPT_ZHCX",
+        "YHGLPT_MDGL",
+        "YHGLPT_MDGL",
+        "YHGLPT_QXGL",
+        "YHGLPT_QXGL",
+        "YHGLPT_ZHGL",
+        "YHGLPT_SQGL",
+        "YHGLPT_SQGL",
+        "YHGLPT_TJBB",
+        "YHGLPT_TJBB",
+        "YHGLPT_TJBB",
+        "YHGLPT_GGZY",
+        "YHGLPT_GGZY",
+        "YHGLPT_FKYJ",
+        "YHGLPT_FKYJ"
+    ],
+    securityOrgs: ["010000000000"],
+    manId: "402881cb4era66f4014b0ghd0b875485",
+    companyCode: "JLXX",
+    extendtions: null,
+    securityRightList: [
+        {
+            id: "6510a37b1de044199db6041bb97fbd9a",
+            pId: "6510a37b1de044199db6041bb97fbd90",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_JGGL_JGGL",
+            url: "organization/orgView.jsp",
+            sortNum: 0,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "机构管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd82",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_HMDGL",
+            url: "usermanagement/policemanagement/redUserManagement.jsp",
+            sortNum: 0,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "红名单管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd9a",
+            pId: "6510a37b1de044199db6041bb97fbd90",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_JGGL_JGGL",
+            url: "organization/orgView.jsp",
+            sortNum: 0,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "机构管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd82",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_HMDGL",
+            url: "usermanagement/policemanagement/redUserManagement.jsp",
+            sortNum: 0,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "红名单管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8e",
+            pId: "6510a37b1de044199db6041bb97fbd9b",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_GLYSJ",
+            url: "audit/manager/list.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "授权范围审计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd61",
+            pId: "6510a37b1de044199db6041bb97fbd60",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_MDGL_RYMD",
+            url: "list/user/list.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "人员名单",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd71",
+            pId: "6510a37b1de044199db6041bb97fbd70",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_ZHCX_RYCX",
+            url: "search/user/list.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "人员查询",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b440007",
+            pId: "2c90e96664252f05016425363b440006",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_TJBB_YHJSQK",
+            url: "statistics/userstatisics/userstatistcs.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "用户建设情况",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b440007",
+            pId: "2c90e96664252f05016425363b440006",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_TJBB_YHJSQK",
+            url: "statistics/userstatisics/userstatistcs.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "用户建设情况",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8c",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL",
+            url: null,
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "用户管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8d",
+            pId: "6510a37b1de044199db6041bb97fbd8a",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_GLYGL",
+            url: "adminManage/adminManage.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "管理员管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8g",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_JYGL",
+            url: "usermanagement/policemanagement/policeManagement.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "警员管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "402881cb4era66f4014b0ghd0b890015",
+            pId: "6510a37b1de180807db6041bb97fbd6d",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YYGL_CSGL",
+            url: "applicationManagement/manufacturerInfo/manufacturerInfo.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "厂商管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd61",
+            pId: "6510a37b1de044199db6041bb97fbd60",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_MDGL_RYMD",
+            url: "list/user/list.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "人员名单",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd71",
+            pId: "6510a37b1de044199db6041bb97fbd70",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_ZHCX_RYCX",
+            url: "search/user/list.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "人员查询",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "89584D0EF2614C3C8AB4C12B98075943",
+            pId: "28A4140CF5D84452ACF3DA2453575F11",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_GGZY_DMB",
+            url: "resourceManagement/codeDic/codeDic.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "代码表",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "AB84304E4EC5404E801BB0BE88966545",
+            pId: "2c90e96664252f05016425363b440006",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_TJBB_TXYFKSJTJ",
+            url: "statistics/feedbackdatastatistics/feedbackDataStatistics.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "提醒与反馈数据统计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "C42FB8A44A3146E29BA8EED756C88424",
+            pId: "EC40755C77CB4F2D8C5A4E304510D250",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_FKYJ_FKYJ",
+            url: "suggestion/suggestion.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "反馈意见",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd6b",
+            pId: "6510a37b1de044199db6041bb97fbd6a",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_QXGL_QXPZ",
+            url: "power/userAuth.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "权限配置",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "93077B7F68E84A9AADDE399EAAFF108E",
+            pId: "6E1E1654B8544F47B405856EC8C4D200",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_DTSQGL_DTSQGL",
+            url: "approval/approval.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "动态授权管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8c",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL",
+            url: null,
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "用户管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8d",
+            pId: "6510a37b1de044199db6041bb97fbd8a",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_GLYGL",
+            url: "adminManage/adminManage.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "管理员管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8g",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_JYGL",
+            url: "usermanagement/policemanagement/policeManagement.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "警员管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "402881cb4era66f4014b0ghd0b890015",
+            pId: "6510a37b1de180807db6041bb97fbd6d",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YYGL_CSGL",
+            url: "applicationManagement/manufacturerInfo/manufacturerInfo.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "厂商管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "AB84304E4EC5404E801BB0BE88966545",
+            pId: "2c90e96664252f05016425363b440006",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_TJBB_TXYFKSJTJ",
+            url: "statistics/feedbackdatastatistics/feedbackDataStatistics.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "提醒与反馈数据统计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "C42FB8A44A3146E29BA8EED756C88424",
+            pId: "EC40755C77CB4F2D8C5A4E304510D250",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_FKYJ_FKYJ",
+            url: "suggestion/suggestion.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "反馈意见",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd6b",
+            pId: "6510a37b1de044199db6041bb97fbd6a",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_QXGL_QXPZ",
+            url: "power/userAuth.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "权限配置",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8e",
+            pId: "6510a37b1de044199db6041bb97fbd9b",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_GLYSJ",
+            url: "audit/manager/list.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "授权范围审计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "89584D0EF2614C3C8AB4C12B98075943",
+            pId: "28A4140CF5D84452ACF3DA2453575F11",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_GGZY_DMB",
+            url: "resourceManagement/codeDic/codeDic.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "代码表",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "93077B7F68E84A9AADDE399EAAFF108E",
+            pId: "6E1E1654B8544F47B405856EC8C4D200",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_DTSQGL_DTSQGL",
+            url: "approval/approval.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "动态授权管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd61",
+            pId: "6510a37b1de044199db6041bb97fbd60",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_MDGL_RYMD",
+            url: "list/user/list.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "人员名单",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd71",
+            pId: "6510a37b1de044199db6041bb97fbd70",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_ZHCX_RYCX",
+            url: "search/user/list.jsp",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "人员查询",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fb679",
+            pId: "6510a37b1de044199db6041bb97fb678",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_ZHGL_JG",
+            url: "tenement/org/page.action",
+            sortNum: 1,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "租户管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd62",
+            pId: "6510a37b1de044199db6041bb97fbd60",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_MDGL_SBMD",
+            url: "list/equipment/list.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "设备名单",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd72",
+            pId: "6510a37b1de044199db6041bb97fbd70",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_ZHCX_JGCX",
+            url: "search/org/list.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "机构查询",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8h",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_FJGL",
+            url: "usermanagement/auxiliarypolice/auxiliaryPolice.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "辅警管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8a",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_GLYGL",
+            url: null,
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "管理员管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de180807db6041bb97fbd7d",
+            pId: "6510a37b1de180807db6041bb97fbd6d",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YYGL_YYGL",
+            url: "applicationManagement/apply/apply.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "应用管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b440008",
+            pId: "2c90e96664252f05016425363b440006",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_SQGL_GLYTJ",
+            url: "statistics/managestatistcs/manageSpreadRpt.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "管理员统计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd62",
+            pId: "6510a37b1de044199db6041bb97fbd60",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_MDGL_SBMD",
+            url: "list/equipment/list.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "设备名单",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd72",
+            pId: "6510a37b1de044199db6041bb97fbd70",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_ZHCX_JGCX",
+            url: "search/org/list.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "机构查询",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b420004",
+            pId: "2c90e96664252f05016425363b3f0002",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_SQGL_JGPEGL",
+            url: "auth/orgQuota/orgQuotaMge.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "机构配额管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8h",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_FJGL",
+            url: "usermanagement/auxiliarypolice/auxiliaryPolice.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "辅警管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8a",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_GLYGL",
+            url: null,
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "管理员管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de180807db6041bb97fbd7d",
+            pId: "6510a37b1de180807db6041bb97fbd6d",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YYGL_YYGL",
+            url: "applicationManagement/apply/apply.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "应用管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b440008",
+            pId: "2c90e96664252f05016425363b440006",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_SQGL_GLYTJ",
+            url: "statistics/managestatistcs/manageSpreadRpt.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "管理员统计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b420004",
+            pId: "2c90e96664252f05016425363b3f0002",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_SQGL_JGPEGL",
+            url: "auth/orgQuota/orgQuotaMge.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "机构配额管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd62",
+            pId: "6510a37b1de044199db6041bb97fbd60",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_MDGL_SBMD",
+            url: "list/equipment/list.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "设备名单",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd72",
+            pId: "6510a37b1de044199db6041bb97fbd70",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_ZHCX_JGCX",
+            url: "search/org/list.jsp",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "机构查询",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fb670",
+            pId: "6510a37b1de044199db6041bb97fb678",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_ZHGL_RY",
+            url: "tenement/user/page.action",
+            sortNum: 2,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "人员管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8i",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_WBRY",
+            url: "usermanagement/externalpersonnel/externalPersonnel.jsp",
+            sortNum: 3,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "施工人员管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd90",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_JGGL",
+            url: null,
+            sortNum: 3,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "机构管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "07DCC3498B664957955B9903DAAC8287",
+            pId: "28A4140CF5D84452ACF3DA2453575F11",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_GGZY_SJY",
+            url: "resourceManagement/datasource/dataSourceList.jsp",
+            sortNum: 3,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "数据源",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b440005",
+            pId: "2c90e96664252f05016425363b3f0002",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_SQGL_RYSQGL",
+            url: "auth/userQuota/authority.jsp",
+            sortNum: 3,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "人员授权管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b440009",
+            pId: "2c90e96664252f05016425363b440006",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_TJBB_JSSQQK",
+            url: "statistics/rolestatisics/rolestatistcs.jsp",
+            sortNum: 3,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "角色授权情况",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8i",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_WBRY",
+            url: "usermanagement/externalpersonnel/externalPersonnel.jsp",
+            sortNum: 3,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "施工人员管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd90",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_JGGL",
+            url: null,
+            sortNum: 3,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "机构管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b440005",
+            pId: "2c90e96664252f05016425363b3f0002",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_SQGL_RYSQGL",
+            url: "auth/userQuota/authority.jsp",
+            sortNum: 3,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "人员授权管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b440009",
+            pId: "2c90e96664252f05016425363b440006",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_TJBB_JSSQQK",
+            url: "statistics/rolestatisics/rolestatistcs.jsp",
+            sortNum: 3,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "角色授权情况",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "07DCC3498B664957955B9903DAAC8287",
+            pId: "28A4140CF5D84452ACF3DA2453575F11",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_GGZY_SJY",
+            url: "resourceManagement/datasource/dataSourceList.jsp",
+            sortNum: 3,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "数据源",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8j",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_GRXXGL",
+            url: "userManagement/personalInformation/toPersonalEdit.action",
+            sortNum: 4,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "个人信息管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8j",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_GRXXGL",
+            url: "userManagement/personalInformation/toPersonalEdit.action",
+            sortNum: 4,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "个人信息管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "E277FA79690849B9AFE1693315959F36",
+            pId: "6510a37b1df04y199db6041bb97hbd9k",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJBB_YHSJ",
+            url: "audit/loginLog/loginLog.jsp",
+            sortNum: 4,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "登录审计报表",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1df04y199db6041bb97hbd9k",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJBB",
+            url: null,
+            sortNum: 4,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "日志审计报表",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1gf04y139db6041bb97hbd9k",
+            pId: "6510a37b1df04y199db6041bb97hbd9k",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJBB_JGSJ",
+            url: "audit/org/listRpt.jsp",
+            sortNum: 4,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "机构审计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd9b",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJGL",
+            url: null,
+            sortNum: 4,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "日志审计管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363bvv0006",
+            pId: "6510a37b1de044199db6041bb97fbd9b",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJGL_RYQXSQSJ",
+            url: "audit/auth/userAuthAudit.jsp",
+            sortNum: 4,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "人员权限授权审计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "E277FA79690849B9AFE1693315959F36",
+            pId: "6510a37b1df04y199db6041bb97hbd9k",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJBB_YHSJ",
+            url: "audit/loginLog/loginLog.jsp",
+            sortNum: 4,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "登录审计报表",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1df04y199db6041bb97hbd9k",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJBB",
+            url: null,
+            sortNum: 4,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "日志审计报表",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1gf04y139db6041bb97hbd9k",
+            pId: "6510a37b1df04y199db6041bb97hbd9k",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJBB_JGSJ",
+            url: "audit/org/listRpt.jsp",
+            sortNum: 4,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "机构审计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd9b",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJGL",
+            url: null,
+            sortNum: 4,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "日志审计管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363bvv0006",
+            pId: "6510a37b1de044199db6041bb97fbd9b",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJGL_RYQXSQSJ",
+            url: "audit/auth/userAuthAudit.jsp",
+            sortNum: 4,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "人员权限授权审计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd70",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_ZHCX",
+            url: null,
+            sortNum: 5,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "综合查询",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8f",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_ZHGL",
+            url: "accountManage/accountManage.jsp",
+            sortNum: 5,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "账号管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1gf04y139db6047bb9hhb89k",
+            pId: "6510a37b1df04y199db6041bb97hbd9k",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJBB_YHSJ",
+            url: "audit/user/listRpt.jsp",
+            sortNum: 5,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "用户审计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8f",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_ZHGL",
+            url: "accountManage/accountManage.jsp",
+            sortNum: 5,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "账号管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1gf04y139db6047bb9hhb89k",
+            pId: "6510a37b1df04y199db6041bb97hbd9k",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJBB_YHSJ",
+            url: "audit/user/listRpt.jsp",
+            sortNum: 5,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "用户审计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd60",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_MDGL",
+            url: null,
+            sortNum: 6,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "名单管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37cvg604y139dt6047bb9hhb89k",
+            pId: "6510a37b1df04y199db6041bb97hbd9k",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJBB_GLYSJ",
+            url: "audit/manager/listRpt.jsp",
+            sortNum: 6,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "管理员审计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8k",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_ZFRYGL",
+            url: "usermanagement/governmentpersonnel/governmentPersonnel.jsp",
+            sortNum: 6,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "政务人员管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37cvg604y139dt6047bb9hhb89k",
+            pId: "6510a37b1df04y199db6041bb97hbd9k",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_RZSJBB_GLYSJ",
+            url: "audit/manager/listRpt.jsp",
+            sortNum: 6,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "管理员审计",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd8k",
+            pId: "6510a37b1de044199db6041bb97fbd8c",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YHGL_ZFRYGL",
+            url: "usermanagement/governmentpersonnel/governmentPersonnel.jsp",
+            sortNum: 6,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "政务人员管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de180807db6041bb97fbd6d",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_YYGL",
+            url: null,
+            sortNum: 7,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "应用管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd70",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_ZHCX",
+            url: null,
+            sortNum: 7,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "综合查询",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6E1E1654B8544F47B405856EC8C4D200",
+            pId: "",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_DTSQGL",
+            url: "",
+            sortNum: 7,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "动态授权管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6E1E1654B8544F47B405856EC8C4D200",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_DTSQGL",
+            url: null,
+            sortNum: 7,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "动态授权管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd70",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_ZHCX",
+            url: null,
+            sortNum: 7,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "综合查询",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd60",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_MDGL",
+            url: null,
+            sortNum: 8,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "名单管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd60",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_MDGL",
+            url: null,
+            sortNum: 8,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "名单管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd6a",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_QXGL",
+            url: null,
+            sortNum: 9,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "权限管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fbd6a",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_QXGL",
+            url: null,
+            sortNum: 9,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "权限管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "6510a37b1de044199db6041bb97fb678",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_ZHGL",
+            url: null,
+            sortNum: 9,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "租户管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b3f0002",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_SQGL",
+            url: null,
+            sortNum: 10,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "授权管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b3f0002",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_SQGL",
+            url: null,
+            sortNum: 10,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "授权管理",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b440006",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_TJBB",
+            url: null,
+            sortNum: 11,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "统计报表",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b440006",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_TJBB",
+            url: null,
+            sortNum: 11,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "统计报表",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "2c90e96664252f05016425363b440006",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_TJBB",
+            url: null,
+            sortNum: 11,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "统计报表",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "28A4140CF5D84452ACF3DA2453575F11",
+            pId: "",
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_GGZY",
+            url: "",
+            sortNum: 12,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "公共资源",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "28A4140CF5D84452ACF3DA2453575F11",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_GGZY",
+            url: null,
+            sortNum: 12,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "公共资源",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "EC40755C77CB4F2D8C5A4E304510D250",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_FKYJ",
+            url: null,
+            sortNum: 13,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "反馈意见",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        },
+        {
+            id: "EC40755C77CB4F2D8C5A4E304510D250",
+            pId: null,
+            applicationId: "00000000000000000000000000000000",
+            code: "YHGLPT_FKYJ",
+            url: null,
+            sortNum: 13,
+            showMode: "1",
+            rightType: null,
+            description: null,
+            openMode: null,
+            openFunction: null,
+            name: "反馈意见",
+            isSystem: "0",
+            isUserHave: true,
+            iconClass: null
+        }
+    ],
+    shortSecurityOrg: "7F08CCC3C4984A2586C9D3F0A6B804E5"
+};
+
+export default userInfo

+ 5 - 1
src/store/modules/user.js

@@ -1,5 +1,6 @@
 import { loginByUsername, logout, getUserInfo, getPermissions, getOAuthTokeByCode } from "@/api/login";
 import { getToken, setToken, removeToken, setUserName, removeUserName } from "@/utils/auth";
+import userInfo from "./mockUser";
 
 const { getSetting, getSettingBool } = window.systemParamsUtils;
 const user = {
@@ -77,7 +78,10 @@ const user = {
                     params["appCode"] = getSetting("APP_CODE");
                 }
                 getUserInfo(params)
-                    .then(({ data }) => {
+                    .then(({ res }) => {
+                        // const data = process.env.NEED_LOGIN ? res : userInfo;
+                        const data = res;
+
                         //TODO 用户信息缓存,等用户信息出来后做
                         if (data.name === undefined) {
                             reject(data);

+ 34 - 28
src/utils/req.js

@@ -1,6 +1,8 @@
 import request from "./request";
 import { Loading } from "element-ui";
 import Qs from "qs";
+import Cookies from "js-cookie";
+
 
 /*
     reponse
@@ -13,11 +15,11 @@ import Qs from "qs";
 
 // 兼容finally
 if (!Promise.finally) {
-    Promise.prototype.finally = function (callback) {
+    Promise.prototype.finally = function(callback) {
         const P = this.constructor;
         return this.then(
-            (value) => P.resolve(callback()).then(() => value),
-            (reason) =>
+            value => P.resolve(callback()).then(() => value),
+            reason =>
                 P.resolve(callback()).then(() => {
                     throw reason;
                 })
@@ -25,7 +27,7 @@ if (!Promise.finally) {
     };
 }
 
-const isSuccess = (val) => val === 200 || val === "200";
+const isSuccess = val => val === 200 || val === "200";
 
 function showLoding(bool = false) {
     if (!bool) {
@@ -44,50 +46,54 @@ function hideLoading(loading) {
     loading.close();
 }
 
+const axiosConfig = {
+    headers: { userToken: Cookies.get('_idp_session') || 'testUserToken' }
+};
+
 const axios = {
     request(option = {}) {
         return new Promise((resolve, reject) => {
             const loading = showLoding(option.loading);
             request
-                .request(option)
+                .request(option, { ...axiosConfig })
                 .then(({ data = {} }) => {
                     if (isSuccess(data.result)) {
                         resolve(data.content);
                     }
                     reject(data.msg);
                 })
-                .catch((error) => reject(error))
+                .catch(error => reject(error))
                 .finally(() => {
                     loading && hideLoading(loading);
                 });
         });
     },
-    getBu(url, params, option = {}){
+    getBu(url, params, option = {}) {
         return new Promise((resolve, reject) => {
             const loading = showLoding(option.loading);
             request
-              .get(url, { params }, option)
-              .then(({ data = {} }) => {
-                  resolve(data);
-              })
-              .catch((error) => reject(error))
-              .finally(() => {
-                  loading && hideLoading(loading);
-              });
+                .get(url, { params }, option, { ...axiosConfig })
+                .then(({ data = {} }) => {
+                    resolve(data);
+                })
+                .catch(error => reject(error))
+                .finally(() => {
+                    loading && hideLoading(loading);
+                });
         });
     },
     get(url, params, option = {}) {
         return new Promise((resolve, reject) => {
             const loading = showLoding(option.loading);
             request
-                .get(url, { params }, option)
+                .get(url, { params }, option, { ...axiosConfig })
                 .then(({ data = {} }) => {
                     if (isSuccess(data.result)) {
                         resolve(data.content);
                     }
                     reject(data.msg);
                 })
-                .catch((error) => reject(error))
+                .catch(error => reject(error))
                 .finally(() => {
                     loading && hideLoading(loading);
                 });
@@ -97,14 +103,14 @@ const axios = {
         return new Promise((resolve, reject) => {
             const loading = showLoding(option.loading);
             request
-                .post(url, params, option)
+                .post(url, params, option, { ...axiosConfig })
                 .then(({ data = {} }) => {
                     if (isSuccess(data.result)) {
                         resolve(data.content);
                     }
                     reject(data.msg);
                 })
-                .catch((error) => reject(error))
+                .catch(error => reject(error))
                 .finally(() => {
                     loading && hideLoading(loading);
                 });
@@ -114,14 +120,14 @@ const axios = {
         return new Promise((resolve, reject) => {
             const loading = showLoding(option.loading);
             request
-                .put(url, params, option)
+                .put(url, params, option, { ...axiosConfig })
                 .then(({ data = {} }) => {
                     if (isSuccess(data.result)) {
                         resolve(data.content);
                     }
                     reject(data.msg);
                 })
-                .catch((error) => reject(error))
+                .catch(error => reject(error))
                 .finally(() => {
                     loading && hideLoading(loading);
                 });
@@ -132,14 +138,14 @@ const axios = {
         return new Promise((resolve, reject) => {
             const loading = showLoding(option.loading);
             request
-                .delete(url, option)
+                .delete(url, option, { ...axiosConfig })
                 .then(({ data = {} }) => {
                     if (isSuccess(data.result)) {
                         resolve(data.content);
                     }
                     reject(data.msg);
                 })
-                .catch((error) => reject(error))
+                .catch(error => reject(error))
                 .finally(() => {
                     loading && hideLoading(loading);
                 });
@@ -165,11 +171,11 @@ const axios = {
 
 export default axios;
 
-export const restApi = (base, option) => ({
+export const restApi = (base, option = {}) => ({
     base,
     table: `${base}s`,
-    detail: (id) => axios.get(`${base}/${id}`, null, option),
-    save: (data) => axios.post(base, data, option),
-    update: (data) => axios.put(`${base}/${data.id}`, data, option),
-    del: (id) => axios.delete(`${base}/${id}`, null, option)
+    detail: id => axios.get(`${base}/${id}`, null, option, { ...axiosConfig }),
+    save: data => axios.post(base, data, option, { ...axiosConfig }),
+    update: data => axios.put(`${base}/${data.id}`, data, option, { ...axiosConfig }),
+    del: id => axios.delete(`${base}/${id}`, null, option, { ...axiosConfig })
 });

+ 2 - 2
src/utils/request-base.js

@@ -1,7 +1,6 @@
 import axios from "axios";
 import { Loading } from "element-ui";
-import { getToken } from "@/utils/auth";
-
+import Cookies from "js-cookie";
 const { getSetting } = window.systemParamsUtils;
 
 console.log("BASE_API:" + getSetting("BASE_API"));
@@ -38,6 +37,7 @@ service.interceptors.request.use(
         // Do something before request is sent
         config = window.loginUtil.beforeRequest(config);
         config.headers["X-Requested-With"] = "XMLHttpRequest";
+        config.headers['userToken'] = Cookies.get('_idp_session') || 'testUserToken',
         loadingShow(config);
 
         return config;

+ 1 - 5
src/utils/request.js

@@ -1,9 +1,5 @@
 let request = {};
-if (!process.env.IS_BASE_PACKAGE) {
-    request = require("./request-base").default;
-} else {
-    request = require("ui-jz-v4-common/src/utils/request-base").default;
-}
+request = require("./request-base").default;
 
 request.interceptors.request.use(
     config => {