diff --git a/src/main.js b/src/main.js index c72f050..7ba0370 100644 --- a/src/main.js +++ b/src/main.js @@ -21,6 +21,7 @@ import './permission' // permission control import { getDicts } from "@/api/system/dict/data"; import { getConfigKey } from "@/api/system/config"; import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi"; +import { checkPermi } from './utils/permission'; // 分页组件 import Pagination from "@/components/Pagination"; // 自定义表格工具组件 @@ -52,6 +53,7 @@ Vue.prototype.selectDictLabel = selectDictLabel Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.download = download Vue.prototype.handleTree = handleTree +Vue.prototype.checkPermission = checkPermi // 全局组件挂载 Vue.component('DictTag', DictTag) diff --git a/src/views/mes/wm/barcode/config.vue b/src/views/mes/wm/barcode/config.vue index 1e0c847..eaf764f 100644 --- a/src/views/mes/wm/barcode/config.vue +++ b/src/views/mes/wm/barcode/config.vue @@ -48,9 +48,9 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> - + diff --git a/src/views/mes/wm/barcode/index.vue b/src/views/mes/wm/barcode/index.vue index 231e141..8c5c06c 100644 --- a/src/views/mes/wm/barcode/index.vue +++ b/src/views/mes/wm/barcode/index.vue @@ -63,7 +63,7 @@ icon="el-icon-s-tools" size="mini" @click="handleConfig" - v-hasPermi="['mes:wm:barcode:edit']" + v-hasPermi="['mes:wm:barcodeconfig:list']" >条码设置 @@ -75,7 +75,7 @@ v-hasPermi="['mes:wm:barcode:view']" >批量打印 - + @@ -335,6 +335,7 @@ import StockSelect from "@/components/stockSelect/single.vue" import Barcodeconfig from "./config.vue" import BarcodeBatchPrint from "./batchprint.vue" import {getTreeList} from "@/api/mes/wm/warehouse" +import { checkPermi } from "@/utils/permission.js"; export default { name: "Barcode", dicts: ['mes_barcode_type','mes_barcode_formart','sys_yes_no'],