|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <el-button type="primary" icon="el-icon-plus" size="mini" @click="getDetail()">新增换醒音</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-plus" size="mini" @click="getDetail()"
|
|
|
+ v-hasPermi="['operation:waken:add']">新增换醒音</el-button>
|
|
|
<!-- 列表 -->
|
|
|
<el-table :data="tableData" v-loading="loading">
|
|
|
<el-table-column type="index" label="序号" align="center" />
|
|
@@ -14,8 +15,12 @@
|
|
|
<el-table-column label="关联内容数" align="center" prop="num" />
|
|
|
<el-table-column label="操作" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="getDetail(scope.row.id)">编辑</el-button>
|
|
|
- <el-button type="delete" @click="getDelete(scope.row)">删除</el-button>
|
|
|
+ <el-button type="text" @click="getDetail(scope.row.id)" v-hasPermi="['operation:waken:edit']">
|
|
|
+ 编辑
|
|
|
+ </el-button>
|
|
|
+ <el-button type="delete" @click="getDelete(scope.row)" v-hasPermi="['operation:waken:delete']">
|
|
|
+ 删除
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|