diff --git a/src/views/eam/basic/basciYearEquipment/index.vue b/src/views/eam/basic/basciYearEquipment/index.vue index 3d5009b..e11e831 100644 --- a/src/views/eam/basic/basciYearEquipment/index.vue +++ b/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'}) // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/basic/basicMonthEquipment/index.vue b/src/views/eam/basic/basicMonthEquipment/index.vue index c7deb1d..20ca336 100644 --- a/src/views/eam/basic/basicMonthEquipment/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/basic/deviceMaintenance/index.vue b/src/views/eam/basic/deviceMaintenance/index.vue index 4582ff7..2fd8896 100644 --- a/src/views/eam/basic/deviceMaintenance/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/basic/inspection/index.vue b/src/views/eam/basic/inspection/index.vue index 5a9a669..d01c72e 100644 --- a/src/views/eam/basic/inspection/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/basic/item/index.vue b/src/views/eam/basic/item/index.vue index 2ffaf68..c43a779 100644 --- a/src/views/eam/basic/item/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/basic/location/index.vue b/src/views/eam/basic/location/index.vue index 74180a6..df9c4b3 100644 --- a/src/views/eam/basic/location/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/basic/locationArea/index.vue b/src/views/eam/basic/locationArea/index.vue index 5dc03e0..9a2c763 100644 --- a/src/views/eam/basic/locationArea/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/basic/moldInspection/index.vue b/src/views/eam/basic/moldInspection/index.vue index c56563b..2caca7a 100644 --- a/src/views/eam/basic/moldInspection/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/basic/moldMaintenance/index.vue b/src/views/eam/basic/moldMaintenance/index.vue index 39ac48a..aa1da49 100644 --- a/src/views/eam/basic/moldMaintenance/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/basic/supplier/index.vue b/src/views/eam/basic/supplier/index.vue index d8940c4..84e0e8c 100644 --- a/src/views/eam/basic/supplier/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/item/applicationRecord/index.vue b/src/views/eam/item/applicationRecord/index.vue index ff045e2..7e81e1a 100644 --- a/src/views/eam/item/applicationRecord/index.vue +++ b/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), // 删除 ] diff --git a/src/views/eam/item/countRecord/index.vue b/src/views/eam/item/countRecord/index.vue index 0f2a13e..ace2e98 100644 --- a/src/views/eam/item/countRecord/index.vue +++ b/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' }),// 盘点调整 ] } diff --git a/src/views/eam/item/countadjustPlan/index.vue b/src/views/eam/item/countadjustPlan/index.vue index ab4f794..9d1237d 100644 --- a/src/views/eam/item/countadjustPlan/index.vue +++ b/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), // 刷新 diff --git a/src/views/eam/item/countadjustWork/index.vue b/src/views/eam/item/countadjustWork/index.vue index 3e8b981..4604c88 100644 --- a/src/views/eam/item/countadjustWork/index.vue +++ b/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'}),// 导入 ] } diff --git a/src/views/eam/item/itemAccounts/index.vue b/src/views/eam/item/itemAccounts/index.vue index 08196d2..617a2a6 100644 --- a/src/views/eam/item/itemAccounts/index.vue +++ b/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' }), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/item/itemApplyMain/index.vue b/src/views/eam/item/itemApplyMain/index.vue index 7b8aed1..e28ae16 100644 --- a/src/views/eam/item/itemApplyMain/index.vue +++ b/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), // 删除 ] diff --git a/src/views/eam/item/itemInLocation/index.vue b/src/views/eam/item/itemInLocation/index.vue index 82f1e88..5b1b7ca 100644 --- a/src/views/eam/item/itemInLocation/index.vue +++ b/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() }) - \ No newline at end of file + diff --git a/src/views/eam/item/itemMaintenance/index.vue b/src/views/eam/item/itemMaintenance/index.vue index 2fde18f..9118985 100644 --- a/src/views/eam/item/itemMaintenance/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/item/itemOrderMain/index.vue b/src/views/eam/item/itemOrderMain/index.vue index f49e7b6..6702bb0 100644 --- a/src/views/eam/item/itemOrderMain/index.vue +++ b/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), // 删除 ] diff --git a/src/views/eam/item/itemOutLocation/index.vue b/src/views/eam/item/itemOutLocation/index.vue index 3a1f30a..2d56d2d 100644 --- a/src/views/eam/item/itemOutLocation/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/item/replaceItemDes/index.vue b/src/views/eam/item/replaceItemDes/index.vue index 480867f..90d2203 100644 --- a/src/views/eam/item/replaceItemDes/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件 diff --git a/src/views/eam/item/transaction/index.vue b/src/views/eam/item/transaction/index.vue index 875dc25..d87e485 100644 --- a/src/views/eam/item/transaction/index.vue +++ b/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'}), // 删除 ] // 列表-操作按钮事件