dedsudiyu 2 years ago
parent
commit
52aca7d183
1 changed files with 8 additions and 7 deletions
  1. 8 7
      src/views/comprehensive/message/noticeconfig/index.vue

+ 8 - 7
src/views/comprehensive/message/noticeconfig/index.vue

@@ -16,10 +16,10 @@
         <div class="examine-big-box">
         <div class="examine-big-box">
           <div class="examine-div-one">
           <div class="examine-div-one">
             <p>检查任务通知方式:</p>
             <p>检查任务通知方式:</p>
-            <el-checkbox v-model="examineType" style="margin:1px 0 0 10px;" @change="examineAll">全选</el-checkbox>
+            <el-checkbox :disabled="!tableButtonType" v-model="examineType" style="margin:1px 0 0 10px;" @change="examineAll">全选</el-checkbox>
           </div>
           </div>
           <div class="examine-div-two">
           <div class="examine-div-two">
-            <el-checkbox-group v-model="examineForm.data1" @change="examineChange">
+            <el-checkbox-group :disabled="!tableButtonType" v-model="examineForm.data1" @change="examineChange">
               <el-checkbox style="margin-right:48px;"
               <el-checkbox style="margin-right:48px;"
                 v-for="item in examineList" :label="item.key" :key="item.key">{{item.label}}</el-checkbox>
                 v-for="item in examineList" :label="item.key" :key="item.key">{{item.label}}</el-checkbox>
             </el-checkbox-group>
             </el-checkbox-group>
@@ -28,10 +28,10 @@
         <div class="examine-big-box">
         <div class="examine-big-box">
           <div class="examine-div-one">
           <div class="examine-div-one">
             <p>整改通知方式:</p>
             <p>整改通知方式:</p>
-            <el-checkbox v-model="rectificationType" style="margin:1px 0 0 10px;" @change="rectificationAll">全选</el-checkbox>
+            <el-checkbox :disabled="!tableButtonType" v-model="rectificationType" style="margin:1px 0 0 10px;" @change="rectificationAll">全选</el-checkbox>
           </div>
           </div>
           <div class="examine-div-two">
           <div class="examine-div-two">
-            <el-checkbox-group v-model="examineForm.data2" @change="rectificationChange">
+            <el-checkbox-group :disabled="!tableButtonType" v-model="examineForm.data2" @change="rectificationChange">
               <el-checkbox style="margin-right:48px;"
               <el-checkbox style="margin-right:48px;"
                 v-for="item in rectificationList" :label="item.key" :key="item.key">{{item.label}}</el-checkbox>
                 v-for="item in rectificationList" :label="item.key" :key="item.key">{{item.label}}</el-checkbox>
             </el-checkbox-group>
             </el-checkbox-group>
@@ -40,10 +40,10 @@
         <div class="examine-big-box">
         <div class="examine-big-box">
           <div class="examine-div-one">
           <div class="examine-div-one">
             <p>复核结果通知方式:</p>
             <p>复核结果通知方式:</p>
-            <el-checkbox v-model="reviewType" style="margin:1px 0 0 10px;" @change="reviewAll">全选</el-checkbox>
+            <el-checkbox :disabled="!tableButtonType" v-model="reviewType" style="margin:1px 0 0 10px;" @change="reviewAll">全选</el-checkbox>
           </div>
           </div>
           <div class="examine-div-two">
           <div class="examine-div-two">
-            <el-checkbox-group v-model="examineForm.data3" @change="reviewChange">
+            <el-checkbox-group :disabled="!tableButtonType" v-model="examineForm.data3" @change="reviewChange">
               <el-checkbox style="margin-right:48px;"
               <el-checkbox style="margin-right:48px;"
                 v-for="item in reviewList" :label="item.key" :key="item.key">{{item.label}}</el-checkbox>
                 v-for="item in reviewList" :label="item.key" :key="item.key">{{item.label}}</el-checkbox>
             </el-checkbox-group>
             </el-checkbox-group>
@@ -99,7 +99,7 @@
     </div>
     </div>
     <div class="button-box" v-if="buttonType == 1">
     <div class="button-box" v-if="buttonType == 1">
       <p class="null-p"></p>
       <p class="null-p"></p>
-      <p class="inquire-button-one button-p" @click="upExamineForm">
+      <p class="inquire-button-one button-p" @click="upExamineForm" v-hasPermi="['security:notice:add']">
         提交</p>
         提交</p>
       <p class="null-p"></p>
       <p class="null-p"></p>
     </div>
     </div>
@@ -122,6 +122,7 @@ export default {
   name: "Noticeconfig",
   name: "Noticeconfig",
   data() {
   data() {
     return {
     return {
+      tableButtonType:this.hasPermiDom(['security:notice:add']),
       buttonType:1,
       buttonType:1,
       // 遮罩层
       // 遮罩层
       loading: true,
       loading: true,