Commit f57af83f authored by cat's avatar cat

权限控制

parent c6d2ba77
......@@ -101,7 +101,7 @@
<div class="controlPlatform-footer">
<el-row :gutter="10">
<!-- 库类型饼图 -->
<el-col :span="12">
<el-col :span="12" v-hasPermi="['views:controlPlatform:pieChart1']">
<el-card style="height: 393px">
<div style="display: flex;justify-content: space-between">
<div class="controlSpan_middle">
......@@ -115,7 +115,7 @@
</el-card>
</el-col>
<!-- 入库时间饼图 -->
<el-col :span="12">
<el-col :span="12" v-hasPermi="['views:controlPlatform:pieChart1']">
<el-card style="height: 393px">
<div style="display: flex;justify-content: space-between">
<div class="controlSpan_middle">
......@@ -134,7 +134,7 @@
<div class="controlPlatform-body">
<el-row :gutter="10" style="margin-bottom: 10px">
<!-- 折线图-->
<el-col :span="16">
<el-col :span="16" v-hasPermi="['views:controlPlatform:lineChart']">
<el-card>
<el-row>
<el-col :span="12">
......@@ -150,7 +150,7 @@
</el-card>
</el-col>
<!-- 柱状图-->
<el-col :span="8">
<el-col :span="8" v-hasPermi="['views:controlPlatform:barChart']">
<el-card>
<el-row>
<el-col :span="12">
......
......@@ -82,7 +82,8 @@
<el-table-column label="操作" class-name="small-padding fixed-width" width="200px">
<template slot-scope="scope">
<el-button
v-if="scope.row.appstatus === '0' && username === 'admin'"
v-if="scope.row.appstatus === '0'"
v-hasPermi="['equipment:printingCheck:edit']"
size="mini"
type="text"
style="color: #49cec9"
......@@ -90,7 +91,7 @@
>处理
</el-button>
<el-button
v-if="username === 'admin'"
v-hasPermi="['system:menu:remove']"
size="mini"
type="text"
icon="el-icon-delete"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment