dedsudiyu 11 hodín pred
rodič
commit
c99c1d22cd

+ 4 - 0
src/views/safetyEducationExaminationNew/trainingManagement/trainingManagement/index.vue

@@ -78,6 +78,7 @@
           <p class="page-reset-common-style-button" @click="resetQuery">重置</p>
           <p class="page-submit-common-style-button"
              style="float: right;"
+             v-hasPermiRouter="['exam:trainingTask:add']"
              @click="tableButton(1)"
           >新增</p>
         </el-form>
@@ -130,6 +131,7 @@
           <el-table-column label="发布" prop="publishStatus" width="100" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-switch
+                v-hasPermiRouter="['exam:trainingTask:edit']"
                 v-if="scope.row.status==1"
                 @click.native="tableButton(3,scope.row)"
                 class="switch captcha-img"
@@ -161,10 +163,12 @@
                    @click="tableButton(6,scope.row)"
                 >进度</p>
                 <p class="table-button-p"
+                   v-hasPermiRouter="['exam:trainingTask:edit']"
                    v-if="scope.row.status==1"
                    @click="tableButton(7,scope.row)"
                 >编辑</p>
                 <p class="table-button-p"
+                   v-hasPermiRouter="['exam:trainingTask:del']"
                    v-if="scope.row.status==1"
                    @click="tableButton(8,scope.row)"
                 >删除</p>