|
@@ -13,7 +13,8 @@
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" icon="el-icon-search" @click="getSearch">搜索</el-button>
|
|
<el-button type="primary" icon="el-icon-search" @click="getSearch">搜索</el-button>
|
|
<el-button icon="el-icon-refresh" @click="getRefresh">重置</el-button>
|
|
<el-button icon="el-icon-refresh" @click="getRefresh">重置</el-button>
|
|
- <el-button type="primary" icon="el-icon-plus" plain @click="getDialog('新增')">新增</el-button>
|
|
|
|
|
|
+ <el-button type="primary" icon="el-icon-plus" plain @click="getDialog('新增')"
|
|
|
|
+ v-hasPermi="['operation:dialog:add']">新增</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
@@ -31,11 +32,15 @@
|
|
<el-table-column label="操作" align="center">
|
|
<el-table-column label="操作" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button type="text" @click="getDialog('查看', scope.row.id)">查看</el-button>
|
|
<el-button type="text" @click="getDialog('查看', scope.row.id)">查看</el-button>
|
|
- <el-button v-if="scope.row.status === 0" type="text" @click="getChange(scope.row, 1, '禁用')">禁用</el-button>
|
|
|
|
|
|
+ <el-button v-if="scope.row.status === 0" type="text" @click="getChange(scope.row, 1, '禁用')"
|
|
|
|
+ v-hasPermi="['operation:dialog:down']">禁用</el-button>
|
|
<span v-else style="margin-left: 10px">
|
|
<span v-else style="margin-left: 10px">
|
|
- <el-button type="text" @click="getDialog('编辑', scope.row.id)">编辑</el-button>
|
|
|
|
- <el-button type="text" @click="getChange(scope.row, 0, '启用')">启用</el-button>
|
|
|
|
- <el-button type="delete" @click="getChange(scope.row, 2, '删除')">删除</el-button>
|
|
|
|
|
|
+ <el-button type="text" @click="getDialog('编辑', scope.row.id)"
|
|
|
|
+ v-hasPermi="['operation:dialog:edit']">编辑</el-button>
|
|
|
|
+ <el-button type="text" @click="getChange(scope.row, 0, '启用')"
|
|
|
|
+ v-hasPermi="['operation:dialog:up']">启用</el-button>
|
|
|
|
+ <el-button type="delete" @click="getChange(scope.row, 2, '删除')"
|
|
|
|
+ v-hasPermi="['operation:dialog:delete']">删除</el-button>
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|