Browse Source

Merge remote-tracking branch 'origin/master'

qinhouyu 1 year ago
parent
commit
a2abd50b24

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

@@ -115,6 +115,18 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
+          type="danger"
+          plain
+          icon="el-icon-s-claim"
+          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"
@@ -524,6 +536,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();
+        })
+      }
+    },
     openshShow(data, isBatch) {
       this.formSH = {
         id: undefined,

+ 28 - 1
src/views/gas/patrolTeam/index.vue

@@ -132,6 +132,18 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
+          type="danger"
+          plain
+          icon="el-icon-s-claim"
+          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"
@@ -627,7 +639,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();
+        })
+      }
+    },
 
     /** 提交按钮 */
     submitForm() {

+ 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-s-claim"
+          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 = []

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

@@ -119,6 +119,18 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
+          type="danger"
+          plain
+          icon="el-icon-s-claim"
+          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"
@@ -929,6 +941,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();
+        })
+      }
+    },
     getPostList(){
       listPostAll({remark:'ranks'}).then(response => {
         this.postOptions = response.data;

+ 28 - 1
src/views/gas/roadSectionInspection/index.vue

@@ -112,6 +112,18 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
+          type="danger"
+          plain
+          icon="el-icon-s-claim"
+          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"
@@ -401,7 +413,6 @@ import {listPostAll} from "@/api/system/post";
 import Cookies from "js-cookie";
 import {getWorker} from "@/api/gas/user";
 import {getReviewList} from "@/api/gas/roadSectionInspection.js";
-import {batchReview} from "@/api/gas/patrolTeam";
 
 export default {
   name: "RoadSectionInspection",
@@ -533,6 +544,22 @@ export default {
         this.workerListSelect = response.data;
       });
     },
+    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)
+        batchReviewsRoadSectionInspection(chushiForm).then(response => {
+          if (response.code===200) {
+            this.$modal.msgSuccess("审核成功");
+          }
+          this.getList();
+        })
+      }
+    },
     openshShow() {
       this.formSH = {
         id: undefined,

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

@@ -137,6 +137,18 @@
         >批量审核
         </el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-s-claim"
+          size="mini"
+          :disabled="multiple"
+          @click="chushiBatch"
+          v-if="['deputyDirector','director','admin'].includes(this.$store.state.user.postName)"
+        >一键审核通过
+        </el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
     <el-dialog title="审核记录" :visible.sync="reviewListShow" width="800px" append-to-body>
@@ -622,6 +634,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();
+        })
+      }
+    },
     openshShow(data, isBatch) {
       this.shFrom = {
         id: undefined,