|
@@ -4,7 +4,7 @@
|
|
|
<div class="page-top-title-box">
|
|
|
<p class="page-top-title-name-p"></p>
|
|
|
<p class="page-top-title-out-p" @click="backPage">返回</p>
|
|
|
- <p class="page-top-title-submit-p" v-hasPermiRouter="['exam:elCategory:add']" @click="tableButton(1,'')">新增</p>
|
|
|
+ <p class="page-top-title-submit-p" @click="tableButton(1,'')">新增</p>
|
|
|
</div>
|
|
|
<div class="page-content-box">
|
|
|
<el-table class="table-box" border
|
|
@@ -13,24 +13,21 @@
|
|
|
row-key="id"
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}">
|
|
|
<el-table-column prop="title" label="分类名称"/>
|
|
|
- <el-table-column label="操作" width="320" v-if="tableButtonType">
|
|
|
+ <el-table-column label="操作" width="320">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="table-button-box">
|
|
|
<p class="table-button-null"></p>
|
|
|
<p v-show="scope.row.level<3"
|
|
|
class="table-button-p"
|
|
|
@click="tableButton(1,scope.row)"
|
|
|
- v-hasPermiRouter="['exam:elCategory:add']"
|
|
|
>新增
|
|
|
</p>
|
|
|
<p class="table-button-p"
|
|
|
@click="tableButton(3,scope.row)"
|
|
|
- v-hasPermiRouter="['exam:elCategory:edit']"
|
|
|
>编辑
|
|
|
</p>
|
|
|
<p class="table-button-p"
|
|
|
@click="tableButton(4,scope.row)"
|
|
|
- v-hasPermiRouter="['exam:elCategory:del']"
|
|
|
>删除
|
|
|
</p>
|
|
|
<p class="table-button-null"></p>
|
|
@@ -73,7 +70,6 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- tableButtonType:this.hasPermiDom(['exam:elCategory:add','exam:elCategory:edit','exam:elCategory:del']),
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
// 选中数组
|