Bladeren bron

一键处事、管理员审核按钮

qinhouyu 1 jaar geleden
bovenliggende
commit
ea2d65b34a
1 gewijzigde bestanden met toevoegingen van 28 en 0 verwijderingen
  1. 28 0
      src/views/gas/regulatingBoxMaintenance/index.vue

+ 28 - 0
src/views/gas/regulatingBoxMaintenance/index.vue

@@ -134,6 +134,18 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="chushiBatch"
+          v-if="['deputyDirector','director','admin'].includes(this.$store.state.user.postName)"
+        >一键审核通过
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
           type="warning"
           plain
           icon="el-icon-download"
@@ -547,6 +559,22 @@ export default {
       }
 
     },
+    chushiBatch(){
+      if (this.ids.length > 0) {
+        let chushiForm = {uids:[],processStatus:null,processComments:null,postNameArias:null}
+        chushiForm.processStatus = '0';
+        chushiForm.processComments = '一键审核通过';
+        chushiForm.uids = this.ids;
+        chushiForm.postNameArias = this.$store.state.user.postName;
+        console.log(chushiForm)
+        batchReview(chushiForm).then(response => {
+          if (response.code===200) {
+            this.$modal.msgSuccess("审核成功");
+          }
+          this.getList();
+        })
+      }
+    },
     process(data, isBatch) {
       this.shFrom.id = undefined
       this.shFrom.uids = []