https://doc.rg1008.com/docs/rg_pass_log/rg_pass_log-1e3p29r1m7hp0

http://localhost:5775/auth/popedom-dep/1
http://localhost:5775/auth/popedom-user/1
http://localhost:5775/auth/popedom-area/1
http://localhost:5775/auth/popedom-job/1
http://localhost:5775/auth/popedom-role/1

功能文件

\RG3.Web.Host.PaaS\Config\Bridge\basis\bridge_global-actions.json

actions: [{funcId: "pos-nav-ht-left", menuId: "3996935570847698944", mfId: "3996935570847698944-pos-nav-ht-left"}]

前端逻辑代码

\rg3-cli\src\components\basis\main-content-nav\method.js

  that.$emitter.emit('on-menu-data', menuT.filter(temp => temp.leftEnabled === true));

  let thisT = this;
        let menuT = ((res || {}).data || {}).data || [];
        menuT.forEach((element) => {
            if (element.parentId !== "0" && !element.group) {
                element.name = element.name || element.menuName;
                if (element.isEnabled === 1) {
                    element.enabled = true;
                }
            }
            if (!element.meta) element.meta = {};
            element.meta.menuId = element.menuId;
            // #region 左侧禁用
            let lefActions = (element.actions || []).filter(temp => temp.funcId === 'pos-nav-ht-left');
            let lefPopedoms = (element.popedoms || []).filter(temp => temp.funcId === 'pos-nav-ht-left' && temp.isEnabled === 1);
            //默认左侧启用,
            element.leftEnabled = (lefActions.length > 0 && lefPopedoms.length === 0) ? false : true;
            // #endregion 左侧禁用
        });
文档更新时间: 2022-09-18 14:56   作者:admin