dedsudiyu 1 gadu atpakaļ
vecāks
revīzija
c9271e67eb

+ 2 - 6
src/views/safetyEducationExam/safeLearning/el_category/index.vue

@@ -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,
       // 选中数组

+ 3 - 3
src/views/safetyEducationExam/safeLearning/el_course/index.vue

@@ -3,7 +3,7 @@
   <div class="app-container el-course hardware">
     <div class="list-max-big-box" v-if="pageType === 1">
       <div class="top-max-box">
-        <div class="left-max-box scrollbar-box" v-hasPermi="['exam:elCategory:list']">
+        <div class="left-max-box scrollbar-box" v-hasPermiRouter="['exam:elCategory:list']">
           <div class="classify_btn" @click="goPageEdit(5,'')">管理分类 >></div>
           <el-tree
             :data="treeData"
@@ -17,7 +17,7 @@
             @node-click="handleNodeClick"
           />
         </div>
-        <div class="center-max-box" v-hasPermi="['exam:el_category:list']"></div>
+        <div class="center-max-box" v-hasPermiRouter="['exam:el_category:list']"></div>
         <div class="right-max-box">
           <el-form style="height:60px;" :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch">
             <el-form-item label="" prop="title" label-width="90px">
@@ -69,7 +69,7 @@
               <el-table-column label="状态" align="left" prop="status" width="90">
                 <template slot-scope="scope">
                   <el-switch
-                    v-hasPermi="['exam:el_course:edit']"
+                    v-hasPermiRouter="['exam:el_course:edit']"
                     class="switch"
                     @change="switchChange(scope.row)"
                     v-model="scope.row.status+''"

+ 1 - 1
src/views/safetyEducationExam/safeLearning/el_resources/index.vue

@@ -3,7 +3,7 @@
   <div class="app-container el-resources">
     <div v-if="pageType == 1" class="list-max-big-box">
       <div class="top-max-box">
-        <div class="left-max-box scrollbar-box" v-hasPermi="['exam:elCategory:list']">
+        <div class="left-max-box scrollbar-box">
           <div class="classify_btn" @click="clickPage(5,'')">管理分类 >></div>
           <el-tree
             :data="treeData"

+ 3 - 3
src/views/safetyEducationExam/safeLearning/hazard_book/index.vue

@@ -18,7 +18,7 @@
           icon="el-icon-plus"
           size="mini"
           @click="handleAdd"
-          v-hasPermi="['laboratory:hazard_book:add']"
+          v-hasPermiRouter="['laboratory:hazard_book:add']"
         >新增</el-button>
       </el-form-item>
       <el-form-item>
@@ -45,11 +45,11 @@
             <p class="table-button-null"></p>
             <p class="table-button-p"
                @click="handleUpdate(scope.row)"
-               v-hasPermiAnd="['laboratory:hazard_book:query','laboratory:hazard_book:edit']"
+               v-hasPermiRouter="['laboratory:hazard_book:query','laboratory:hazard_book:edit']"
             >编辑</p>
             <p class="table-button-p"
                @click="handleDelete(scope.row)"
-               v-hasPermi="['laboratory:hazard_book:remove']"
+               v-hasPermiRouter="['laboratory:hazard_book:remove']"
             >删除</p>
             <p class="table-button-null"></p>
           </div>