|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-09-13 17:52:31
|
|
|
- * @LastEditTime: 2021-12-05 17:03:35
|
|
|
+ * @LastEditTime: 2021-12-06 13:46:38
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
* @Description: 生物安全 - 车辆管理
|
|
|
* @FilePath: \hyyfClient\src\views\BioSafety\CarAdmin.vue
|
|
@@ -32,7 +32,7 @@
|
|
|
:shows="tableShows"
|
|
|
:height="475"
|
|
|
>
|
|
|
- <template v-slot:right>
|
|
|
+ <!-- <template v-slot:right>
|
|
|
<template v-if="btnSelected === 1">
|
|
|
<div>
|
|
|
<el-button size="mini">黑名单</el-button>
|
|
@@ -40,7 +40,7 @@
|
|
|
</template>
|
|
|
<template v-else-if="btnSelected === 2">
|
|
|
<div>
|
|
|
- <!-- <el-button size="mini">黑名单</el-button> -->
|
|
|
+ <el-button size="mini">黑名单</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-else>
|
|
@@ -48,7 +48,7 @@
|
|
|
<el-button size="mini">黑名单</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
<template v-slot:carNum="slotProps">
|
|
|
{{ slotProps.row.carNum ? slotProps.row.carNum : "未识别" }}
|
|
|
</template>
|
|
@@ -120,7 +120,7 @@
|
|
|
<chart-car-drying :tempList="tempChartData"></chart-car-drying>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="videoVisible = false">取 消</el-button>
|
|
|
+ <el-button @click="tempVisible = false">取 消</el-button>
|
|
|
<el-button type="primary" @click="tempVisible = false">
|
|
|
确 定
|
|
|
</el-button>
|
|
@@ -148,6 +148,7 @@ import {
|
|
|
getCarDryingTemp,
|
|
|
} from "../../utils/chenApi";
|
|
|
import { getFaceToken } from "../../utils/api";
|
|
|
+import { timeDate } from "../../utils/index";
|
|
|
|
|
|
export default {
|
|
|
name: "CarAdmin",
|
|
@@ -211,10 +212,13 @@ export default {
|
|
|
this.tableItems = tableItems[id - 1];
|
|
|
this.pageNum = 1;
|
|
|
this.listData = [];
|
|
|
+ this.params = {};
|
|
|
+ console.log("1111");
|
|
|
if (this.btnSelected === 1) {
|
|
|
this.carPassage();
|
|
|
} else if (this.btnSelected === 2) {
|
|
|
this.carWash();
|
|
|
+ this.carWashTotal();
|
|
|
} else {
|
|
|
this.carDrying();
|
|
|
}
|
|
@@ -258,15 +262,6 @@ export default {
|
|
|
this.carDrying();
|
|
|
}
|
|
|
},
|
|
|
- init() {
|
|
|
- let params = {
|
|
|
- pageNum: this.pageNum,
|
|
|
- pageSize: this.size,
|
|
|
- searchStr: this.keyword,
|
|
|
- };
|
|
|
- console.log(params);
|
|
|
- // 获取后端数据
|
|
|
- },
|
|
|
// 车辆通行 查询
|
|
|
carPassage() {
|
|
|
let queryParams = {
|
|
@@ -292,11 +287,17 @@ export default {
|
|
|
},
|
|
|
// 车辆洗消
|
|
|
carWash() {
|
|
|
+ if (!this.params.time) {
|
|
|
+ this.params.time = [
|
|
|
+ timeDate(new Date().getTime() - 1000 * 60 * 60 * 24),
|
|
|
+ timeDate(new Date().getTime()),
|
|
|
+ ];
|
|
|
+ }
|
|
|
let queryParams = {
|
|
|
pageNum: this.pageNum,
|
|
|
pageSize: this.size,
|
|
|
alarmStartDateString: this.params.time[0] + " 00:00:00",
|
|
|
- alarmEndDateString: this.params.time[1] + " 23:59:59",
|
|
|
+ alarmEndDateString: this.params.time[1],
|
|
|
nodeCodeList: ["1002871$1$0$0", "1002872$1$0$0", "1002873$1$0$0"],
|
|
|
deviceCategory: 1,
|
|
|
alarmType: 303,
|
|
@@ -326,12 +327,18 @@ export default {
|
|
|
},
|
|
|
// 车辆洗消 - 总条数
|
|
|
carWashTotal() {
|
|
|
+ if (!this.params.time) {
|
|
|
+ this.params.time = [
|
|
|
+ timeDate(new Date().getTime() - 1000 * 60 * 60 * 24),
|
|
|
+ timeDate(new Date().getTime()),
|
|
|
+ ];
|
|
|
+ }
|
|
|
let queryParams = {
|
|
|
orgCodeList: [],
|
|
|
nodeCodeList: ["1002871$1$0$0", "1002872$1$0$0", "1002873$1$0$0"],
|
|
|
deviceCategory: 1,
|
|
|
- alarmStartDateString: this.params.time[0] + "00:00:00",
|
|
|
- alarmEndDateString: this.params.time[1] + "23:59:59",
|
|
|
+ alarmStartDateString: this.params.time[0] + " 00:00:00",
|
|
|
+ alarmEndDateString: this.params.time[1] + " 23:59:59",
|
|
|
alarmType: 303,
|
|
|
dbType: 0,
|
|
|
};
|
|
@@ -341,9 +348,15 @@ export default {
|
|
|
},
|
|
|
// 车辆烘干
|
|
|
carDrying() {
|
|
|
+ if (!this.params.time) {
|
|
|
+ this.params.time = [
|
|
|
+ timeDate(new Date().getTime() - 1000 * 60 * 60 * 24),
|
|
|
+ timeDate(new Date().getTime()),
|
|
|
+ ];
|
|
|
+ }
|
|
|
getCarDrying({
|
|
|
- startTimeString: this.params.time[0] + "00:00:00",
|
|
|
- endTimeString: this.params.time[1] + "23:59:59",
|
|
|
+ startTimeString: this.params.time[0] + " 00:00:00",
|
|
|
+ endTimeString: this.params.time[1] + " 23:59:59",
|
|
|
current: this.pageNum,
|
|
|
size: this.size,
|
|
|
}).then((res) => {
|