Commit 0903d3d1 authored by 刘洪铨's avatar 刘洪铨

权限标识符修改

parent 0b10b72b
......@@ -99,7 +99,7 @@
<!-- </template>-->
<template slot-scope="scope">
<el-button
v-hasPermi="['system:dept:update']"
v-hasPermi="['sys:dept:update']"
size="mini"
type="text"
style="color: #49cec9"
......@@ -113,14 +113,14 @@
<!-- @change="handleStatusChange(scope.row)"-->
<!-- />-->
<el-button
v-hasPermi="['system:dept:add']"
v-hasPermi="['sys:dept:add']"
size="mini"
type="text"
@click="handleAdd(scope.row)"
>新增</el-button>
<el-button
v-if="scope.row.parentId !== 0"
v-hasPermi="['system:dept:delete']"
v-hasPermi="['sys:dept:delete']"
size="mini"
type="text"
@click="handleDelete(scope.row)"
......
......@@ -53,28 +53,28 @@
<template slot-scope="scope">
<el-button
v-if="scope.row.$nodeLevel > 1"
v-hasPermi="['system:dept:edit']"
v-hasPermi="['sys:dept:edit']"
size="mini success"
type="text"
@click="editDeptNode(scope.row)"
>修改</el-button>
<el-button
v-if="scope.row.$nodeLevel < 3"
v-hasPermi="['system:dept:add']"
v-hasPermi="['sys:dept:add']"
size="mini"
type="text"
@click="addNewDeptNode(scope.row)"
>新增</el-button>
<el-button
v-if="scope.row.$nodeLevel > 1"
v-hasPermi="['system:dept:remove']"
v-hasPermi="['sys:dept:remove']"
size="mini"
type="text"
@click="delDeptNode(scope.row)"
>删除</el-button>
<el-button
v-if="scope.row.$nodeLevel === 1"
v-hasPermi="['system:otree:list']"
v-hasPermi="['sys:otree:list']"
type="text primary"
size="mini"
@click="toTransformOtree"
......
......@@ -39,7 +39,7 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
v-hasPermi="['system:dict:add']"
v-hasPermi="['sys:dict:add']"
type="primary"
icon="el-icon-plus"
size="mini"
......@@ -49,7 +49,7 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['system:dict:update']"
v-hasPermi="['sys:dict:update']"
type="success"
icon="el-icon-edit"
size="mini"
......@@ -60,7 +60,7 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['system:dict:delete']"
v-hasPermi="['sys:dict:delete']"
type="danger"
icon="el-icon-delete"
size="mini"
......@@ -71,7 +71,7 @@
</el-col>
<el-col :span="1.5">
<el-button
v-has-permi="['system:dict:export']"
v-has-permi="['sys:dict:export']"
type="warning"
icon="el-icon-download"
size="mini"
......@@ -132,21 +132,21 @@
<el-table-column label="操作" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-hasPermi="['system:dictConfig:edit']"
v-hasPermi="['sys:dictConfig:edit']"
size="mini"
type="text"
style="color: #49cec9"
@click="handleUpdate(scope.row)"
>修改</el-button>
<el-button
v-hasPermi="['system:dictConfig:remove']"
v-hasPermi="['sys:dictConfig:remove']"
size="mini"
type="text"
@click="handleDelete(scope.row)"
>删除</el-button>
<el-switch
v-model="scope.row.status"
v-hasPermi="['system:dictConfig:toggle']"
v-hasPermi="['sys:dictConfig:toggle']"
disabled
class="switchDisabledStyle"
active-value="0"
......
......@@ -58,7 +58,7 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
v-hasPermi="['system:dict:add']"
v-hasPermi="['sys:dict:add']"
type="primary"
icon="el-icon-plus"
size="small"
......@@ -67,7 +67,7 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['system:dict:update']"
v-hasPermi="['sys:dict:update']"
type="success"
icon="el-icon-edit"
size="mini"
......@@ -78,7 +78,7 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['system:dict:delete']"
v-hasPermi="['sys:dict:delete']"
type="danger"
icon="el-icon-delete"
size="mini"
......@@ -89,7 +89,7 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['system:dict:export']"
v-hasPermi="['sys:dict:export']"
type="success"
icon="el-icon-download"
size="small"
......@@ -115,11 +115,11 @@
<!-- v-hasPermi="['system:dictConfig:list']"-->
<router-link
v-if="scope.row.businessId"
:style="{ pointerEvents: $haveAuth('system:dictConfig:list') ? '' : 'none' }"
:style="{ pointerEvents: $haveAuth('sys:dictConfig:list') ? '' : 'none' }"
:to="'/dict/type/data/' + scope.row.businessId"
class="link-type"
>
<span :style="{color: $haveAuth('system:dictConfig:list') ? '#20a0ff' : '#333333' }">{{ scope.row.dictType }}</span>
<span :style="{color: $haveAuth('sys:dictConfig:list') ? '#20a0ff' : '#333333' }">{{ scope.row.dictType }}</span>
</router-link>
<div v-else>-</div>
</template>
......@@ -148,14 +148,14 @@
<el-table-column label="操作" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-hasPermi="['system:dict:edit']"
v-hasPermi="['sys:dict:edit']"
size="mini"
type="text"
style="color: #49cec9"
@click="handleUpdate(scope.row)"
>修改</el-button>
<el-button
v-hasPermi="['system:dict:remove']"
v-hasPermi="['sys:dict:remove']"
size="mini"
type="text"
@click="handleDelete(scope.row)"
......
......@@ -12,11 +12,11 @@
/>
</el-form-item>
<el-form-item>
<el-button v-hasPermi="['system:menu:query']" type="primary" size="small" @click="handleQuery">查询</el-button>
<el-button v-hasPermi="['sys:menu:query']" type="primary" size="small" @click="handleQuery">查询</el-button>
</el-form-item>
<div style="float: right">
<el-form-item>
<el-button v-hasPermi="['system:menu:add']" type="primary" size="small" @click="handleAdd">新增</el-button>
<el-button v-hasPermi="['sys:menu:add']" type="primary" size="small" @click="handleAdd">新增</el-button>
<!-- <el-button size="small" @click="resetQuery">重置</el-button>-->
</el-form-item>
</div>
......@@ -84,7 +84,7 @@
</template>-->
<template slot-scope="scope">
<el-button
v-hasPermi="['system:menu:update']"
v-hasPermi="['sys:menu:update']"
size="mini"
type="text"
style="color: #49cec9"
......@@ -92,7 +92,7 @@
>修改</el-button>
<el-switch
v-model="scope.row.flag"
v-hasPermi="['system:menu:toggle']"
v-hasPermi="['sys:menu:toggle']"
active-value="1"
inactive-value="0"
@change="handleStatusChange(scope.row)"
......@@ -104,7 +104,7 @@
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>
<el-button
v-hasPermi="['system:menu:delete']"
v-hasPermi="['sys:menu:delete']"
size="mini"
type="text"
@click="handleDelete(scope.row)"
......@@ -112,7 +112,7 @@
</el-dropdown-item>
<el-dropdown-item>
<el-button
v-hasPermi="['system:menu:add']"
v-hasPermi="['sys:menu:add']"
size="mini"
type="text"
@click="handleAdd(scope.row)"
......
......@@ -38,7 +38,7 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
v-hasPermi="['system:post:add']"
v-hasPermi="['sys:post:add']"
type="primary"
icon="el-icon-plus"
size="small"
......@@ -47,7 +47,7 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['system:post:update']"
v-hasPermi="['sys:post:update']"
type="success"
icon="el-icon-edit"
size="mini"
......@@ -58,7 +58,7 @@
</el-col>
<el-col :span="1.5">
<el-button
v-hasPermi="['system:post:delete']"
v-hasPermi="['sys:post:delete']"
type="danger"
icon="el-icon-delete"
size="mini"
......@@ -69,7 +69,7 @@
</el-col>
<el-col :span="1.5">
<el-button
v-has-permi="['system:post:export']"
v-has-permi="['sys:post:export']"
type="warning"
icon="el-icon-download"
size="mini"
......@@ -128,7 +128,7 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-hasPermi="['system:post:edit']"
v-hasPermi="['sys:post:edit']"
size="mini"
type="text"
style="color: #49cec9"
......@@ -136,7 +136,7 @@
@click="handleUpdate(scope.row)"
>修改</el-button>
<el-button
v-hasPermi="['system:post:remove']"
v-hasPermi="['sys:post: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