|
@@ -168,6 +168,16 @@
|
|
>送审
|
|
>送审
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="info"
|
|
|
|
+ plain
|
|
|
|
+ icon="el-icon-position"
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="handleApproveAll(1)"
|
|
|
|
+ >全部送审
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
type="info"
|
|
type="info"
|
|
@@ -179,6 +189,16 @@
|
|
>审核
|
|
>审核
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="info"
|
|
|
|
+ plain
|
|
|
|
+ icon="el-icon-s-check"
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="handleApproveAll(2)"
|
|
|
|
+ >全部审核
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
type="success"
|
|
type="success"
|
|
@@ -609,13 +629,14 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import {listPoint, getPoint, delPoint, addPoint, updatePoint, handleApprove, handleUpload} from "@/api/base/point";
|
|
|
|
|
|
+import {listPoint, getPoint, delPoint, addPoint, updatePoint, handleApprove,handleApproveAll, handleUpload} from "@/api/base/point";
|
|
import {getAllPlantName} from "@/api/base/plant";
|
|
import {getAllPlantName} from "@/api/base/plant";
|
|
import {getAllRegion} from "@/api/base/region";
|
|
import {getAllRegion} from "@/api/base/region";
|
|
import {getAllDeviceByRegionId} from "@/api/base/device";
|
|
import {getAllDeviceByRegionId} from "@/api/base/device";
|
|
import {MessageBox} from "element-ui";
|
|
import {MessageBox} from "element-ui";
|
|
import {getToken} from "@/utils/auth";
|
|
import {getToken} from "@/utils/auth";
|
|
import PointDetail from "@/views/base/point/pointDetail";
|
|
import PointDetail from "@/views/base/point/pointDetail";
|
|
|
|
+import {deepClone} from "@/utils";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Point",
|
|
name: "Point",
|
|
@@ -1125,7 +1146,7 @@ export default {
|
|
this.getList();
|
|
this.getList();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- handleApprove() {
|
|
|
|
|
|
+ handleApprove(status) {
|
|
let data = {}
|
|
let data = {}
|
|
data.pointIds = this.ids;
|
|
data.pointIds = this.ids;
|
|
data.approveStatus = 2;
|
|
data.approveStatus = 2;
|
|
@@ -1133,6 +1154,13 @@ export default {
|
|
this.getList();
|
|
this.getList();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ handleApproveAll(status) {
|
|
|
|
+ let data = deepClone(this.queryParams);
|
|
|
|
+ data.approveStatus = status
|
|
|
|
+ handleApproveAll(data).then(() => {
|
|
|
|
+ this.getList();
|
|
|
|
+ });
|
|
|
|
+ },
|
|
habdleUpdload(title, flag) {
|
|
habdleUpdload(title, flag) {
|
|
this.doc.open = true;
|
|
this.doc.open = true;
|
|
this.doc.title = title;
|
|
this.doc.title = title;
|