dedsudiyu 1 年之前
父節點
當前提交
1e6c2f3697

+ 6 - 5
src/views/integratedManagement/laboratoryManagement/safetyInfoCategory/safetyInfoCategory.vue

@@ -40,12 +40,12 @@
         <p class="page-submit-common-style-button"
            style="float: right;"
            @click="handleClick('','','add')"
-           v-hasPermi="['laboratory:classify:add']"
+           v-hasPermiRouter="['lab:infoBrand:add']"
         >新增</p>
         <p class="page-add-common-style-button"
            style="float: right;margin-right:20px;width:110px;"
            @click="handleClick('','','deploy')"
-           v-hasPermi="['laboratory:classify:edit']"
+           v-hasPermiRouter="['lab:infoBrand:edit']"
         >信息牌配置</p>
       </el-form>
       <el-table class="table-box" border v-loading="loading" :data="tableData">
@@ -72,16 +72,16 @@
             <span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}") }}</span>
           </template>
         </el-table-column>
-        <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120">
+        <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120" v-if="tableButtonType">
           <template slot-scope="scope">
             <div class="table-button-box">
               <p class="table-button-null"></p>
               <p class="table-button-p"
-                 v-hasPermi="['laboratory:classify:edit']"
+                 v-hasPermiRouter="['lab:infoBrand:edit']"
                  @click="handleClick('',scope.row,'edit')"
               >编辑</p>
               <p class="table-button-p"
-                 v-hasPermi="['laboratory:classify:remove']"
+                 v-hasPermiRouter="['lab:infoBrand:del']"
                  @click="handleClick('',scope.row,'delete')"
               >删除</p>
               <p class="table-button-null"></p>
@@ -141,6 +141,7 @@ export default {
   },
   data() {
     return {
+      tableButtonType:this.hasPermiDom(['lab:infoBrand:edit','lab:infoBrand:del',]),
       // 弹出层标题
       title: "",
       // 是否显示弹出层

+ 5 - 4
src/views/integratedManagement/laboratoryManagement/safetyInfoCategory/safetyInfoConfig.vue

@@ -28,7 +28,7 @@
           <p class="page-submit-common-style-button"
              style="float: right;margin-bottom:20px;"
              @click="handleClick('','','add')"
-             v-hasPermi="['laboratory:classify:add']"
+             v-hasPermiRouter="['lab:infoBrand:add']"
           >新增</p>
         </div>
         <el-table class="table-box" border v-loading="loading" :data="tableData">
@@ -67,16 +67,16 @@
               <span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}") }}</span>
             </template>
           </el-table-column>
-          <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120">
+          <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="120" v-if="tableButtonType">
             <template slot-scope="scope">
               <div class="table-button-box">
                 <p class="table-button-null"></p>
                 <p class="table-button-p"
-                   v-hasPermi="['laboratory:classify:edit']"
+                   v-hasPermiRouter="['lab:infoBrand:edit']"
                    @click="handleClick('',scope.row,'edit')"
                 >编辑</p>
                 <p class="table-button-p"
-                   v-hasPermi="['laboratory:classify:remove']"
+                   v-hasPermiRouter="['lab:infoBrand:del']"
                    @click="handleClick('',scope.row,'delete')"
                 >删除</p>
                 <p class="table-button-null"></p>
@@ -150,6 +150,7 @@ export default {
   name: "Approval",
   data() {
     return {
+      tableButtonType:this.hasPermiDom(['lab:infoBrand:edit','lab:infoBrand:del',]),
       uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
       activeName: '',
       // 弹出层标题