|
@@ -22,7 +22,8 @@
|
|
|
<p class="reset-button-one" @click="resetForm">重置</p>
|
|
|
</el-form-item>
|
|
|
<el-form-item style="float: right;">
|
|
|
- <p class="inquire-button-one" style="width:100px;" @click="controlsButton(1)">+ 新增课程</p>
|
|
|
+ <p class="inquire-button-one" style="width:100px;" @click="controlsButton(1)"
|
|
|
+ v-hasPermi="['exam:security:add']">+ 新增课程</p>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -50,13 +51,16 @@
|
|
|
{{scope.row.isStart == 1?'已开课':'待开课'}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="180">
|
|
|
+ <el-table-column label="操作" width="180" v-if="tableButtonType">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="table-button-box">
|
|
|
<p class="table-button-null"></p>
|
|
|
- <p class="table-button-p" @click="controlsButton(3,scope.row)">详情</p>
|
|
|
- <p class="table-button-p" v-if="scope.row.isStart != 1" @click="controlsButton(2,scope.row)">编辑</p>
|
|
|
- <p class="table-button-p" v-if="scope.row.isStart != 1" @click="controlsButton(4,scope.row)">删除</p>
|
|
|
+ <p class="table-button-p" @click="controlsButton(3,scope.row)"
|
|
|
+ v-hasPermi="['exam:security:query']">详情</p>
|
|
|
+ <p class="table-button-p" v-if="scope.row.isStart != 1" @click="controlsButton(2,scope.row)"
|
|
|
+ v-hasPermiAnd="['exam:security:query','exam:security:edit']">编辑</p>
|
|
|
+ <p class="table-button-p" v-if="scope.row.isStart != 1" @click="controlsButton(4,scope.row)"
|
|
|
+ v-hasPermi="['exam:security:remove']">删除</p>
|
|
|
<p class="table-button-null"></p>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -85,6 +89,7 @@
|
|
|
},
|
|
|
data(){
|
|
|
return{
|
|
|
+ tableButtonType:this.hasPermiDom(['exam:security:query','exam:security:edit','exam:security:remove']),
|
|
|
// 遮罩层
|
|
|
loading: false,
|
|
|
//查询数据
|