优化菜单的按钮权限的判断逻辑
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,6 +201,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'DBCK',
|
||||
urlPath: '/bill/allocation_out',
|
||||
labelCol: {
|
||||
span: 5
|
||||
},
|
||||
|
||||
@@ -201,6 +201,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'ZZD',
|
||||
urlPath: '/bill/assemble',
|
||||
labelCol: {
|
||||
span: 5
|
||||
},
|
||||
|
||||
@@ -201,6 +201,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'CXD',
|
||||
urlPath: '/bill/disassemble',
|
||||
labelCol: {
|
||||
span: 5
|
||||
},
|
||||
|
||||
@@ -221,6 +221,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'QTRK',
|
||||
urlPath: '/bill/other_in',
|
||||
//出入库管理开关,适合独立仓管场景
|
||||
inOutManageFlag: false,
|
||||
labelCol: {
|
||||
|
||||
@@ -221,6 +221,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'QTCK',
|
||||
urlPath: '/bill/other_out',
|
||||
//出入库管理开关,适合独立仓管场景
|
||||
inOutManageFlag: false,
|
||||
labelCol: {
|
||||
|
||||
@@ -203,6 +203,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'QGD',
|
||||
urlPath: '/bill/purchase_apply',
|
||||
labelCol: {
|
||||
span: 5
|
||||
},
|
||||
|
||||
@@ -234,6 +234,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'CGTH',
|
||||
urlPath: '/bill/purchase_back',
|
||||
//出入库管理开关,适合独立仓管场景
|
||||
inOutManageFlag: false,
|
||||
labelCol: {
|
||||
|
||||
@@ -258,6 +258,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'CGRK',
|
||||
urlPath: '/bill/purchase_in',
|
||||
//出入库管理开关,适合独立仓管场景
|
||||
inOutManageFlag: false,
|
||||
labelCol: {
|
||||
|
||||
@@ -231,6 +231,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'CGDD',
|
||||
urlPath: '/bill/purchase_order',
|
||||
labelCol: {
|
||||
span: 5
|
||||
},
|
||||
|
||||
@@ -227,6 +227,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'LSTH',
|
||||
urlPath: '/bill/retail_back',
|
||||
labelCol: {
|
||||
span: 5
|
||||
},
|
||||
|
||||
@@ -225,6 +225,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'LSCK',
|
||||
urlPath: '/bill/retail_out',
|
||||
labelCol: {
|
||||
span: 5
|
||||
},
|
||||
|
||||
@@ -244,6 +244,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'XSTH',
|
||||
urlPath: '/bill/sale_back',
|
||||
//出入库管理开关,适合独立仓管场景
|
||||
inOutManageFlag: false,
|
||||
labelCol: {
|
||||
|
||||
@@ -237,6 +237,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'XSDD',
|
||||
urlPath: '/bill/sale_order',
|
||||
//以销定购开关
|
||||
purchaseBySaleFlag: false,
|
||||
labelCol: {
|
||||
|
||||
@@ -268,6 +268,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'XSCK',
|
||||
urlPath: '/bill/sale_out',
|
||||
//出入库管理开关,适合独立仓管场景
|
||||
inOutManageFlag: false,
|
||||
labelCol: {
|
||||
|
||||
@@ -172,6 +172,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'SYF',
|
||||
urlPath: '/financial/advance_in',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -172,6 +172,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'ZZ',
|
||||
urlPath: '/financial/giro',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -192,6 +192,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'SR',
|
||||
urlPath: '/financial/item_in',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -192,6 +192,7 @@
|
||||
remark: ""
|
||||
},
|
||||
prefixNo: 'ZC',
|
||||
urlPath: '/financial/item_out',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -192,6 +192,7 @@
|
||||
number: ""
|
||||
},
|
||||
prefixNo: 'SK',
|
||||
urlPath: '/financial/money_in',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -191,6 +191,7 @@
|
||||
number: ""
|
||||
},
|
||||
prefixNo: 'FK',
|
||||
urlPath: '/financial/money_out',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -89,6 +89,7 @@
|
||||
attributeName:'',
|
||||
attributeValue:''
|
||||
},
|
||||
urlPath: '/material/material_attribute',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -279,6 +279,7 @@
|
||||
remark:'',
|
||||
mpList: getMpListShort(Vue.ls.get('materialPropertyList')) //扩展属性
|
||||
},
|
||||
urlPath: '/material/material',
|
||||
ipagination:{
|
||||
pageSizeOptions: ['10', '20', '30', '50', '100', '200']
|
||||
},
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
},
|
||||
// 查询条件
|
||||
queryParam: {name:'',type:''},
|
||||
urlPath: '/material/material_property',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -106,6 +106,7 @@
|
||||
},
|
||||
// 查询条件
|
||||
queryParam: {name:'',serialNo:'',remark:''},
|
||||
urlPath: '/system/account',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -128,6 +128,7 @@
|
||||
telephone:'',
|
||||
phonenum:''
|
||||
},
|
||||
urlPath: '/system/customer',
|
||||
customerFlag: '0',
|
||||
ipagination:{
|
||||
pageSizeOptions: ['10', '20', '30', '100', '200']
|
||||
|
||||
@@ -108,6 +108,7 @@
|
||||
},
|
||||
// 查询条件
|
||||
queryParam: {name:'',remark:''},
|
||||
urlPath: '/system/depot',
|
||||
depotFlag: '0',
|
||||
quickBtn: {
|
||||
user: ''
|
||||
|
||||
@@ -100,6 +100,7 @@
|
||||
},
|
||||
// 查询条件
|
||||
queryParam: {name:'',type:'',remark:''},
|
||||
urlPath: '/system/in_out_item',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -122,6 +122,7 @@
|
||||
telephone:'',
|
||||
phonenum:''
|
||||
},
|
||||
urlPath: '/system/member',
|
||||
ipagination:{
|
||||
pageSizeOptions: ['10', '20', '30', '100', '200']
|
||||
},
|
||||
|
||||
@@ -132,6 +132,7 @@ export default {
|
||||
allTreeKeys:[],
|
||||
checkStrictly: true,
|
||||
form: this.$form.createForm(this),
|
||||
urlPath: '/system/organization',
|
||||
labelCol: {
|
||||
xs: {span: 24},
|
||||
sm: {span: 5}
|
||||
|
||||
@@ -95,6 +95,7 @@
|
||||
},
|
||||
// 查询条件
|
||||
queryParam: {name:'',type:''},
|
||||
urlPath: '/system/person',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -127,6 +127,7 @@
|
||||
name: '',
|
||||
description: '',
|
||||
},
|
||||
urlPath: '/system/role',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -86,6 +86,7 @@
|
||||
},
|
||||
// 查询条件
|
||||
queryParam: {name:'',type:''},
|
||||
urlPath: '/system/unit',
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
|
||||
@@ -104,6 +104,7 @@
|
||||
offset: 1
|
||||
},
|
||||
queryParam: {},
|
||||
urlPath: '/system/user',
|
||||
depotFlag: '0',
|
||||
customerFlag: '0',
|
||||
columns: [
|
||||
|
||||
@@ -121,6 +121,7 @@
|
||||
telephone:'',
|
||||
phonenum:''
|
||||
},
|
||||
urlPath: '/system/vendor',
|
||||
ipagination:{
|
||||
pageSizeOptions: ['10', '20', '30', '100', '200']
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user