Browse Source

前端按钮权限控制

master
parent
commit
d84f95b128
  1. 6
      src/views/eam/basic/basciYearEquipment/index.vue
  2. 4
      src/views/eam/basic/basicMonthEquipment/index.vue
  3. 8
      src/views/eam/basic/deviceMaintenance/index.vue
  4. 8
      src/views/eam/basic/inspection/index.vue
  5. 10
      src/views/eam/basic/item/index.vue
  6. 8
      src/views/eam/basic/location/index.vue
  7. 8
      src/views/eam/basic/locationArea/index.vue
  8. 8
      src/views/eam/basic/moldInspection/index.vue
  9. 8
      src/views/eam/basic/moldMaintenance/index.vue
  10. 8
      src/views/eam/basic/supplier/index.vue
  11. 2
      src/views/eam/item/applicationRecord/index.vue
  12. 2
      src/views/eam/item/countRecord/index.vue
  13. 2
      src/views/eam/item/countadjustPlan/index.vue
  14. 4
      src/views/eam/item/countadjustWork/index.vue
  15. 12
      src/views/eam/item/itemAccounts/index.vue
  16. 4
      src/views/eam/item/itemApplyMain/index.vue
  17. 11
      src/views/eam/item/itemInLocation/index.vue
  18. 9
      src/views/eam/item/itemMaintenance/index.vue
  19. 4
      src/views/eam/item/itemOrderMain/index.vue
  20. 9
      src/views/eam/item/itemOutLocation/index.vue
  21. 6
      src/views/eam/item/replaceItemDes/index.vue
  22. 8
      src/views/eam/item/transaction/index.vue

6
src/views/eam/basic/basciYearEquipment/index.vue

@ -112,7 +112,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:BasciYearEquipment:create'}), //
// defaultButtons.defaultImportBtn(null), //
//defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
@ -152,8 +152,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null) //
defaultButtons.mainListEditBtn({hasPermi:'basic:BasciYearEquipment:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:BasciYearEquipment:delete'}) //
]
// -

4
src/views/eam/basic/basicMonthEquipment/index.vue

@ -98,7 +98,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
//defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultImportBtn({hasPermi:'basic:BasciYearEquipment:export'}), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
// defaultButtons.defaultFilterBtn(null), //
@ -132,7 +132,7 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
//defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:BasciYearEquipment:delete'}), //
]
// -

8
src/views/eam/basic/deviceMaintenance/index.vue

@ -160,8 +160,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:deviceMaintenance:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:deviceMaintenance:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -191,8 +191,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:deviceMaintenance:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:deviceMaintenance:delete'}), //
]
// -

8
src/views/eam/basic/inspection/index.vue

@ -133,8 +133,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:inspection:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:inspection:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -164,8 +164,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:inspection:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:inspection:delete'}), //
]
// -

10
src/views/eam/basic/item/index.vue

@ -83,8 +83,8 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:locationArea:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:locationArea:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -106,9 +106,9 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.chooseDeviceBtn(null),//
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:locationArea:update'}), //
defaultButtons.chooseDeviceBtn({hasPermi:'basic:locationArea:choose'}),//
defaultButtons.mainListDeleteBtn({hasPermi:'basic:locationArea:delete'}), //
]
// -

8
src/views/eam/basic/location/index.vue

@ -88,8 +88,8 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:location:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:location:update'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -119,8 +119,8 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:location:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:location:delete'}), //
]
// -

8
src/views/eam/basic/locationArea/index.vue

@ -79,8 +79,8 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:locationArea:query'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:locationArea:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -110,8 +110,8 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:locationArea:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:locationArea:delete'}), //
]
// -

8
src/views/eam/basic/moldInspection/index.vue

@ -96,8 +96,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:MoldInspection:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:MoldInspection:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -127,8 +127,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:MoldInspection:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:MoldInspection:delete'}), //
]
// -

8
src/views/eam/basic/moldMaintenance/index.vue

@ -156,8 +156,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:moldMaintenance:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:moldMaintenance:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -187,8 +187,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:moldMaintenance:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:moldMaintenance:delete'}), //
]
// -

8
src/views/eam/basic/supplier/index.vue

@ -80,8 +80,8 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:supplier:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:supplier:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -111,8 +111,8 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:supplier:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:supplier:delete'}), //
]
// -

2
src/views/eam/item/applicationRecord/index.vue

@ -173,7 +173,7 @@
// -
const butttondata = (row) => {
return [
defaultButtons.approveBtn({ hide: isShowMainButton(row, ['0']) }), //
defaultButtons.approveBtn({ hide: isShowMainButton(row, ['0']) ,hasPermi:'item:itemApplyMain:approve'}), //
// defaultButtons.mainListEditBtn(null), //
// defaultButtons.mainListDeleteBtn(null), //
]

2
src/views/eam/item/countRecord/index.vue

@ -162,7 +162,7 @@
// -
const butttondata = (row) => {
return [
defaultButtons.mainAdjust({ hide: isShowMainButton(row, ['CANGENERATE']) }),//
defaultButtons.mainAdjust({ hide: isShowMainButton(row, ['CANGENERATE']),hasPermi:'item:countRecord:adjust' }),//
]
}

2
src/views/eam/item/countadjustPlan/index.vue

@ -99,7 +99,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'item:countadjustPlan:create'}), //
// defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //

4
src/views/eam/item/countadjustWork/index.vue

@ -156,8 +156,8 @@
// -
const butttondata = (row) => {
return [
defaultButtons.mainExport(null),//
defaultButtons.mainAdjustImport(null),//
defaultButtons.mainExport({hasPermi:'item:countadjustWork:export'}),//
defaultButtons.mainAdjustImport({hasPermi:'item:countadjustWork:import'}),//
]
}

12
src/views/eam/item/itemAccounts/index.vue

@ -85,9 +85,9 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi: 'eam:itemAccounts:create' }), //
defaultButtons.defaultImportBtn({ hasPermi: 'eam:itemAccounts:import' }), //
defaultButtons.defaultExportBtn({ hasPermi: 'eam:itemAccounts:export' }), //
defaultButtons.defaultAddBtn({ hasPermi: 'item:itemAccounts:create' }), //
defaultButtons.defaultImportBtn({ hasPermi: 'item:itemAccounts:import' }), //
defaultButtons.defaultExportBtn({ hasPermi: 'item:itemAccounts:export' }), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -119,9 +119,9 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn({ hasPermi: 'eam:itemAccounts:update' }), //
defaultButtons.replaceLocation(null), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:itemAccounts:delete' }), //
defaultButtons.mainListEditBtn({ hasPermi: 'item:itemAccounts:update' }), //
defaultButtons.replaceLocation({ hasPermi: 'item:itemAccounts:replaceLocation' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'item:itemAccounts:delete' }), //
]
// -

4
src/views/eam/item/itemApplyMain/index.vue

@ -143,7 +143,7 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'item:itemApplyMain:create'}), //
// defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
@ -185,7 +185,7 @@
// -
const butttondata = (row) => {
return [
defaultButtons.backoutBtn({ hide: isShowMainButton(row, ['0']) }), //
defaultButtons.backoutBtn({ hide: isShowMainButton(row, ['0']) ,hasPermi:'item:itemApplyMain:backout'}), //
// defaultButtons.mainListEditBtn(null), //
// defaultButtons.mainListDeleteBtn(null), //
]

11
src/views/eam/item/itemInLocation/index.vue

@ -81,9 +81,8 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi: 'eam:itemInLocation:create' }), //
defaultButtons.defaultImportBtn({ hasPermi: 'eam:itemInLocation:import' }), //
defaultButtons.defaultExportBtn({ hasPermi: 'eam:itemInLocation:export' }), //
defaultButtons.defaultAddBtn({ hasPermi: 'item:itemInLocation:create' }), //
defaultButtons.defaultExportBtn({ hasPermi: 'item:itemInLocation:export' }), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -115,8 +114,8 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn({ hasPermi: 'eam:itemInLocation:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:itemInLocation:delete' }), //
defaultButtons.mainListEditBtn({ hasPermi: 'item:itemInLocation:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'item:itemInLocation:delete' }), //
]
// -
@ -222,4 +221,4 @@
getList()
importTemplateData.templateUrl = await ItemInLocationApi.importTemplate()
})
</script>
</script>

9
src/views/eam/item/itemMaintenance/index.vue

@ -99,9 +99,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:itemMaintenance:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:itemMaintenance:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:itemMaintenance:export'}), //
defaultButtons.defaultAddBtn({hasPermi:'item:itemMaintenance:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'item:itemMaintenance:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -133,8 +132,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:itemMaintenance:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:itemMaintenance:delete'}), //
defaultButtons.mainListEditBtn({hasPermi:'item:itemMaintenance:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'item:itemMaintenance:delete'}), //
]
// -

4
src/views/eam/item/itemOrderMain/index.vue

@ -116,7 +116,7 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'item:itemApplyMain:create'}), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
@ -159,7 +159,7 @@
// -
const butttondata = (row) => {
return [
defaultButtons.mainListOrderCOMPLETEBtn({ hide: isShowMainButton(row, ['INCOMPLETE']) }), //
defaultButtons.mainListOrderCOMPLETEBtn({ hide: isShowMainButton(row, ['INCOMPLETE']),hasPermi:'item:itemApplyMain:create' }), //
// defaultButtons.mainListEditBtn(null), //
// defaultButtons.mainListDeleteBtn(null), //
]

9
src/views/eam/item/itemOutLocation/index.vue

@ -99,9 +99,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:itemOutLocation:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:itemOutLocation:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:itemOutLocation:export'}), //
defaultButtons.defaultAddBtn({hasPermi:'item:itemOutLocation:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'item:itemOutLocation:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -133,8 +132,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:itemOutLocation:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:itemOutLocation:delete'}), //
defaultButtons.mainListEditBtn({hasPermi:'item:itemOutLocation:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'item:itemOutLocation:delete'}), //
]
// -

6
src/views/eam/item/replaceItemDes/index.vue

@ -79,7 +79,7 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'item:replaceItemDes:create'}), //
// {
// label: '',
// name: 'zdy',
@ -108,8 +108,8 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'item:replaceItemDes:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'item:replaceItemDes:delete'}), //
]
// -

8
src/views/eam/item/transaction/index.vue

@ -97,9 +97,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam::create'}), //
defaultButtons.defaultAddBtn({hasPermi:'item:transaction:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam::import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam::export'}), //
defaultButtons.defaultExportBtn({hasPermi:'item:transaction:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -131,8 +131,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam::update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam::delete'}), //
defaultButtons.mainListEditBtn({hasPermi:'item:transaction:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'item:transaction:delete'}), //
]
// -

Loading…
Cancel
Save