权限相关的修改
This commit is contained in:
parent
2578ca9be7
commit
ca8bcc00b9
@ -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)
|
||||
|
@ -48,9 +48,9 @@
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
<ReportSelect ref="reportRef" @onSelected="onReportSelected"></ReportSelect>
|
||||
<ReportSelect v-if="checkPermission(['mes:wm:barcodeconfig:edit'])" ref="reportRef" @onSelected="onReportSelected"></ReportSelect>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="showFlag=false">确 定</el-button>
|
||||
<el-button type="primary" v-hasPermi="['mes:wm:barcodeconfig:edit']" @click="showFlag=false">确 定</el-button>
|
||||
<el-button @click="showFlag=false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
@ -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']"
|
||||
>条码设置</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
@ -75,7 +75,7 @@
|
||||
v-hasPermi="['mes:wm:barcode:view']"
|
||||
>批量打印</el-button>
|
||||
</el-col>
|
||||
<Barcodeconfig ref="barcodeconfig"></Barcodeconfig>
|
||||
<Barcodeconfig v-if="checkPermission(['mes:wm:barcodeconfig:list'])" ref="barcodeconfig"></Barcodeconfig>
|
||||
<BarcodeBatchPrint ref="barcodebatchprint"></BarcodeBatchPrint>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user