From 9437243186a2e0c796f009979db8eaa14e6cabab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Wed, 8 Nov 2023 15:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8E=A5=E5=8F=A3=E7=9C=8B=E6=9D=BF+j?= =?UTF-8?q?ob+store=E3=80=91=E6=8C=89=E9=92=AE=E6=9D=83=E9=99=90=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/tablePagination/index.vue | 2 +- PC/InterFace.Dash/src/utils/defaultButtons.js | 4 +- .../views/menuList/AsnMstr_child_add_demo.vue | 113 ++++++++++++++++++ .../src/components/tablePagination/index.vue | 2 +- .../src/utils/defaultButtons.js | 4 +- .../src/components/tablePagination/index.vue | 2 +- .../src/utils/defaultButtons.js | 4 +- 7 files changed, 125 insertions(+), 6 deletions(-) create mode 100644 PC/InterFace.Dash/src/views/menuList/AsnMstr_child_add_demo.vue diff --git a/PC/InterFace.Dash/src/components/tablePagination/index.vue b/PC/InterFace.Dash/src/components/tablePagination/index.vue index a081346..455d233 100644 --- a/PC/InterFace.Dash/src/components/tablePagination/index.vue +++ b/PC/InterFace.Dash/src/components/tablePagination/index.vue @@ -308,7 +308,7 @@ export default { }else{ if(this.noUsePermissionBtn.indexOf(item.name) < 0){ let _scope = item.clientScope || localStorage.getItem('appClientScope') - item.permission = [_scope + '.' +this.$route.name+'.'+item.name] + item.permission = [_scope + '.' +this.$route.name+'.'+(item.permissionName || item.name)] }else{ item.permission = [] } diff --git a/PC/InterFace.Dash/src/utils/defaultButtons.js b/PC/InterFace.Dash/src/utils/defaultButtons.js index 8dcf1c8..85e47d7 100644 --- a/PC/InterFace.Dash/src/utils/defaultButtons.js +++ b/PC/InterFace.Dash/src/utils/defaultButtons.js @@ -15,7 +15,8 @@ export function defaultAddBtn(option) { label: i18n.t('btns.add'), name: "Create", size: "mini", - background:"#31bb99" + background:"#31bb99", + permissionName:"Create", }) } @@ -124,5 +125,6 @@ function __defaultBtnOption(option,specific){ isRedundance:option && option.isRedundance ? option.isRedundance : false, permission:option && option.permission ? option.permission : null, clientScope:option && option.clientScope ? option.clientScope : null, + permissionName:option && option.permissionName ? option.permissionName : specific.permissionName, } } \ No newline at end of file diff --git a/PC/InterFace.Dash/src/views/menuList/AsnMstr_child_add_demo.vue b/PC/InterFace.Dash/src/views/menuList/AsnMstr_child_add_demo.vue new file mode 100644 index 0000000..1032eae --- /dev/null +++ b/PC/InterFace.Dash/src/views/menuList/AsnMstr_child_add_demo.vue @@ -0,0 +1,113 @@ + + + \ No newline at end of file diff --git a/PC/UI.WinIn.FasterZ.Job/src/components/tablePagination/index.vue b/PC/UI.WinIn.FasterZ.Job/src/components/tablePagination/index.vue index a081346..455d233 100644 --- a/PC/UI.WinIn.FasterZ.Job/src/components/tablePagination/index.vue +++ b/PC/UI.WinIn.FasterZ.Job/src/components/tablePagination/index.vue @@ -308,7 +308,7 @@ export default { }else{ if(this.noUsePermissionBtn.indexOf(item.name) < 0){ let _scope = item.clientScope || localStorage.getItem('appClientScope') - item.permission = [_scope + '.' +this.$route.name+'.'+item.name] + item.permission = [_scope + '.' +this.$route.name+'.'+(item.permissionName || item.name)] }else{ item.permission = [] } diff --git a/PC/UI.WinIn.FasterZ.Job/src/utils/defaultButtons.js b/PC/UI.WinIn.FasterZ.Job/src/utils/defaultButtons.js index 8dcf1c8..85e47d7 100644 --- a/PC/UI.WinIn.FasterZ.Job/src/utils/defaultButtons.js +++ b/PC/UI.WinIn.FasterZ.Job/src/utils/defaultButtons.js @@ -15,7 +15,8 @@ export function defaultAddBtn(option) { label: i18n.t('btns.add'), name: "Create", size: "mini", - background:"#31bb99" + background:"#31bb99", + permissionName:"Create", }) } @@ -124,5 +125,6 @@ function __defaultBtnOption(option,specific){ isRedundance:option && option.isRedundance ? option.isRedundance : false, permission:option && option.permission ? option.permission : null, clientScope:option && option.clientScope ? option.clientScope : null, + permissionName:option && option.permissionName ? option.permissionName : specific.permissionName, } } \ No newline at end of file diff --git a/PC/UI.WinIn.FasterZ.Store/src/components/tablePagination/index.vue b/PC/UI.WinIn.FasterZ.Store/src/components/tablePagination/index.vue index a081346..455d233 100644 --- a/PC/UI.WinIn.FasterZ.Store/src/components/tablePagination/index.vue +++ b/PC/UI.WinIn.FasterZ.Store/src/components/tablePagination/index.vue @@ -308,7 +308,7 @@ export default { }else{ if(this.noUsePermissionBtn.indexOf(item.name) < 0){ let _scope = item.clientScope || localStorage.getItem('appClientScope') - item.permission = [_scope + '.' +this.$route.name+'.'+item.name] + item.permission = [_scope + '.' +this.$route.name+'.'+(item.permissionName || item.name)] }else{ item.permission = [] } diff --git a/PC/UI.WinIn.FasterZ.Store/src/utils/defaultButtons.js b/PC/UI.WinIn.FasterZ.Store/src/utils/defaultButtons.js index 8dcf1c8..85e47d7 100644 --- a/PC/UI.WinIn.FasterZ.Store/src/utils/defaultButtons.js +++ b/PC/UI.WinIn.FasterZ.Store/src/utils/defaultButtons.js @@ -15,7 +15,8 @@ export function defaultAddBtn(option) { label: i18n.t('btns.add'), name: "Create", size: "mini", - background:"#31bb99" + background:"#31bb99", + permissionName:"Create", }) } @@ -124,5 +125,6 @@ function __defaultBtnOption(option,specific){ isRedundance:option && option.isRedundance ? option.isRedundance : false, permission:option && option.permission ? option.permission : null, clientScope:option && option.clientScope ? option.clientScope : null, + permissionName:option && option.permissionName ? option.permissionName : specific.permissionName, } } \ No newline at end of file