diff --git a/src/utils/limits.js b/src/utils/limits.js index ab82fc4..773d8d5 100644 --- a/src/utils/limits.js +++ b/src/utils/limits.js @@ -102,7 +102,7 @@ export async function hasPermission (params) { } params = returnFormatParams(params) if (!params) { - return infoBox.showToast('未找到相关权限,请检查代码或在权限配置文件commons/utils/hasPermission.js文件进行修改或增加') + return Notification.error('未找到相关权限,请检查代码或在权限配置文件commons/utils/hasPermission.js文件进行修改或增加') } const option = Object.assign({ tips: true, diff --git a/src/views/table/table_list.vue b/src/views/table/table_list.vue index ce99737..bbba7d4 100644 --- a/src/views/table/table_list.vue +++ b/src/views/table/table_list.vue @@ -229,6 +229,7 @@ import tableDiancan from "./components/table-diancan.vue"; import $status from "./status.js"; import chooseDinersNumber from "./components/table-diancan-components/choose-diners-number.vue"; import { tbShopInfo } from "@/api/user"; +import { hasPermission } from "@/utils/limits.js"; import { tbShopTableGet, @@ -369,7 +370,12 @@ export default { onDiancanClose() { this.tbShopTableGet(); }, - diancanShow(item, key) { + async diancanShow(item, key) { + const canXiadan=await hasPermission('允许下单') + if(!canXiadan){ + return + } + //key isAddGoods 加菜 //key isPayOrder结账 this.selTable = item; diff --git a/src/views/tool/Instead/index.vue b/src/views/tool/Instead/index.vue index c31e333..4cd3fa7 100644 --- a/src/views/tool/Instead/index.vue +++ b/src/views/tool/Instead/index.vue @@ -1,7 +1,13 @@ - -