优化菜单的按钮权限的判断逻辑

This commit is contained in:
jishenghua
2025-09-18 14:57:38 +08:00
parent 27843d128c
commit d3643c2a99
36 changed files with 38 additions and 7 deletions

View File

@@ -427,15 +427,11 @@ export const JeecgListMixin = {
initActiveBtnStr() {
let btnStrList = Vue.ls.get('winBtnStrList'); //按钮功能列表 JSON字符串
this.btnEnableList = ""; //按钮列表
let pathName = location.pathname
if(pathName.indexOf('/plugins')>-1) {
pathName = '/system' + pathName
}
if (pathName && btnStrList) {
if (this.urlPath && btnStrList) {
for (let i = 0; i < btnStrList.length; i++) {
if (btnStrList[i].url === pathName) {
if (btnStrList[i].url === this.urlPath) {
if (btnStrList[i].btnStr) {
this.btnEnableList = btnStrList[i].btnStr;
this.btnEnableList = btnStrList[i].btnStr
}
}
}

View File

@@ -201,6 +201,7 @@
remark: ""
},
prefixNo: 'DBCK',
urlPath: '/bill/allocation_out',
labelCol: {
span: 5
},

View File

@@ -201,6 +201,7 @@
remark: ""
},
prefixNo: 'ZZD',
urlPath: '/bill/assemble',
labelCol: {
span: 5
},

View File

@@ -201,6 +201,7 @@
remark: ""
},
prefixNo: 'CXD',
urlPath: '/bill/disassemble',
labelCol: {
span: 5
},

View File

@@ -221,6 +221,7 @@
remark: ""
},
prefixNo: 'QTRK',
urlPath: '/bill/other_in',
//出入库管理开关,适合独立仓管场景
inOutManageFlag: false,
labelCol: {

View File

@@ -221,6 +221,7 @@
remark: ""
},
prefixNo: 'QTCK',
urlPath: '/bill/other_out',
//出入库管理开关,适合独立仓管场景
inOutManageFlag: false,
labelCol: {

View File

@@ -203,6 +203,7 @@
remark: ""
},
prefixNo: 'QGD',
urlPath: '/bill/purchase_apply',
labelCol: {
span: 5
},

View File

@@ -234,6 +234,7 @@
remark: ""
},
prefixNo: 'CGTH',
urlPath: '/bill/purchase_back',
//出入库管理开关,适合独立仓管场景
inOutManageFlag: false,
labelCol: {

View File

@@ -258,6 +258,7 @@
remark: ""
},
prefixNo: 'CGRK',
urlPath: '/bill/purchase_in',
//出入库管理开关,适合独立仓管场景
inOutManageFlag: false,
labelCol: {

View File

@@ -231,6 +231,7 @@
remark: ""
},
prefixNo: 'CGDD',
urlPath: '/bill/purchase_order',
labelCol: {
span: 5
},

View File

@@ -227,6 +227,7 @@
remark: ""
},
prefixNo: 'LSTH',
urlPath: '/bill/retail_back',
labelCol: {
span: 5
},

View File

@@ -225,6 +225,7 @@
remark: ""
},
prefixNo: 'LSCK',
urlPath: '/bill/retail_out',
labelCol: {
span: 5
},

View File

@@ -244,6 +244,7 @@
remark: ""
},
prefixNo: 'XSTH',
urlPath: '/bill/sale_back',
//出入库管理开关,适合独立仓管场景
inOutManageFlag: false,
labelCol: {

View File

@@ -237,6 +237,7 @@
remark: ""
},
prefixNo: 'XSDD',
urlPath: '/bill/sale_order',
//以销定购开关
purchaseBySaleFlag: false,
labelCol: {

View File

@@ -268,6 +268,7 @@
remark: ""
},
prefixNo: 'XSCK',
urlPath: '/bill/sale_out',
//出入库管理开关,适合独立仓管场景
inOutManageFlag: false,
labelCol: {

View File

@@ -172,6 +172,7 @@
remark: ""
},
prefixNo: 'SYF',
urlPath: '/financial/advance_in',
// 表头
columns: [
{

View File

@@ -172,6 +172,7 @@
remark: ""
},
prefixNo: 'ZZ',
urlPath: '/financial/giro',
// 表头
columns: [
{

View File

@@ -192,6 +192,7 @@
remark: ""
},
prefixNo: 'SR',
urlPath: '/financial/item_in',
// 表头
columns: [
{

View File

@@ -192,6 +192,7 @@
remark: ""
},
prefixNo: 'ZC',
urlPath: '/financial/item_out',
// 表头
columns: [
{

View File

@@ -192,6 +192,7 @@
number: ""
},
prefixNo: 'SK',
urlPath: '/financial/money_in',
// 表头
columns: [
{

View File

@@ -191,6 +191,7 @@
number: ""
},
prefixNo: 'FK',
urlPath: '/financial/money_out',
// 表头
columns: [
{

View File

@@ -89,6 +89,7 @@
attributeName:'',
attributeValue:''
},
urlPath: '/material/material_attribute',
// 表头
columns: [
{

View File

@@ -130,6 +130,7 @@ export default {
allTreeKeys:[],
checkStrictly: true,
form: this.$form.createForm(this),
urlPath: '/material/material_category',
labelCol: {
xs: {span: 24},
sm: {span: 5}

View File

@@ -279,6 +279,7 @@
remark:'',
mpList: getMpListShort(Vue.ls.get('materialPropertyList')) //扩展属性
},
urlPath: '/material/material',
ipagination:{
pageSizeOptions: ['10', '20', '30', '50', '100', '200']
},

View File

@@ -51,6 +51,7 @@
},
// 查询条件
queryParam: {name:'',type:''},
urlPath: '/material/material_property',
// 表头
columns: [
{

View File

@@ -106,6 +106,7 @@
},
// 查询条件
queryParam: {name:'',serialNo:'',remark:''},
urlPath: '/system/account',
// 表头
columns: [
{

View File

@@ -128,6 +128,7 @@
telephone:'',
phonenum:''
},
urlPath: '/system/customer',
customerFlag: '0',
ipagination:{
pageSizeOptions: ['10', '20', '30', '100', '200']

View File

@@ -108,6 +108,7 @@
},
// 查询条件
queryParam: {name:'',remark:''},
urlPath: '/system/depot',
depotFlag: '0',
quickBtn: {
user: ''

View File

@@ -100,6 +100,7 @@
},
// 查询条件
queryParam: {name:'',type:'',remark:''},
urlPath: '/system/in_out_item',
// 表头
columns: [
{

View File

@@ -122,6 +122,7 @@
telephone:'',
phonenum:''
},
urlPath: '/system/member',
ipagination:{
pageSizeOptions: ['10', '20', '30', '100', '200']
},

View File

@@ -132,6 +132,7 @@ export default {
allTreeKeys:[],
checkStrictly: true,
form: this.$form.createForm(this),
urlPath: '/system/organization',
labelCol: {
xs: {span: 24},
sm: {span: 5}

View File

@@ -95,6 +95,7 @@
},
// 查询条件
queryParam: {name:'',type:''},
urlPath: '/system/person',
// 表头
columns: [
{

View File

@@ -127,6 +127,7 @@
name: '',
description: '',
},
urlPath: '/system/role',
// 表头
columns: [
{

View File

@@ -86,6 +86,7 @@
},
// 查询条件
queryParam: {name:'',type:''},
urlPath: '/system/unit',
// 表头
columns: [
{

View File

@@ -104,6 +104,7 @@
offset: 1
},
queryParam: {},
urlPath: '/system/user',
depotFlag: '0',
customerFlag: '0',
columns: [

View File

@@ -121,6 +121,7 @@
telephone:'',
phonenum:''
},
urlPath: '/system/vendor',
ipagination:{
pageSizeOptions: ['10', '20', '30', '100', '200']
},