|
@@ -112,6 +112,18 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<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"
|
|
type="warning"
|
|
plain
|
|
plain
|
|
icon="el-icon-download"
|
|
icon="el-icon-download"
|
|
@@ -401,7 +413,6 @@ import {listPostAll} from "@/api/system/post";
|
|
import Cookies from "js-cookie";
|
|
import Cookies from "js-cookie";
|
|
import {getWorker} from "@/api/gas/user";
|
|
import {getWorker} from "@/api/gas/user";
|
|
import {getReviewList} from "@/api/gas/roadSectionInspection.js";
|
|
import {getReviewList} from "@/api/gas/roadSectionInspection.js";
|
|
-import {batchReview} from "@/api/gas/patrolTeam";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "RoadSectionInspection",
|
|
name: "RoadSectionInspection",
|
|
@@ -533,6 +544,22 @@ export default {
|
|
this.workerListSelect = response.data;
|
|
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() {
|
|
openshShow() {
|
|
this.formSH = {
|
|
this.formSH = {
|
|
id: undefined,
|
|
id: undefined,
|