Parcourir la source

添加权限按钮

DESKTOP-SVI9JE1\muzen il y a 1 an
Parent
commit
23ac82c2e5

+ 4 - 2
src/views/operation/feedbacklist/index.vue

@@ -20,7 +20,8 @@
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" @click="getSearch">搜索</el-button>
         <el-button icon="el-icon-refresh" @click="getRefresh">重置</el-button>
-        <el-button type="primary" icon="el-icon-download" @click="getDownload">导出</el-button>
+        <el-button type="primary" icon="el-icon-download" @click="getDownload"
+          v-hasPermi="['operation:feedbacklist:download']">导出</el-button>
       </el-form-item>
     </el-form>
     <!-- 列表 -->
@@ -42,7 +43,8 @@
       <el-table-column label="操作" align="center">
         <template slot-scope="scope">
           <el-button type="text" @click="getDetail(scope.row.id, true)">查看</el-button>
-          <el-button type="text" @click="getDetail(scope.row.id)">回复</el-button>
+          <el-button type="text" @click="getDetail(scope.row.id)"
+            v-hasPermi="['operation: feedbacklist: reply']">回复</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 6 - 3
src/views/operation/feedbacktype/index.vue

@@ -1,6 +1,7 @@
 <template>
   <div class='app-container'>
-    <el-button type="primary" icon="el-icon-plus" size="mini" @click="getDialog('新增')">新增</el-button>
+    <el-button type="primary" icon="el-icon-plus" size="mini" @click="getDialog('新增')"
+      v-hasPermi="['operation:feedbacktype:add']">新增</el-button>
     <!-- 列表 -->
     <el-table :data="tableData" v-loading="loading">
       <el-table-column label="序号" type="index" align="center"></el-table-column>
@@ -9,8 +10,10 @@
       <el-table-column label="创建时间" prop="createTime" align="center"></el-table-column>
       <el-table-column label="操作" align="center">
         <template slot-scope="scope">
-          <el-button type="text" @click="getDialog('编辑', scope.row.id)">编辑</el-button>
-          <el-button type="delete" @click="getDelete(scope.row)">删除</el-button>
+          <el-button type="text" @click="getDialog('编辑', scope.row.id)"
+            v-hasPermi="['operation:feedbacktype:edit']">编辑</el-button>
+          <el-button type="delete" @click="getDelete(scope.row)"
+            v-hasPermi="['operation:feedbacktype:delete']">删除</el-button>
         </template>
       </el-table-column>
     </el-table>