|
@@ -1,9 +1,9 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-09-13 17:52:31
|
|
|
- * @LastEditTime: 2021-12-01 18:04:42
|
|
|
+ * @LastEditTime: 2021-12-05 14:56:15
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
- * @Description: In User Settings Edit
|
|
|
+ * @Description: 生物安全 - 车辆管理
|
|
|
* @FilePath: \hyyfClient\src\views\BioSafety\CarAdmin.vue
|
|
|
-->
|
|
|
<template>
|
|
@@ -17,11 +17,13 @@
|
|
|
|
|
|
<!-- 筛选条件 -->
|
|
|
<query-conditions
|
|
|
+ v-if="btnSelected !== 3"
|
|
|
:formItems="formItems"
|
|
|
:propFormData="propFormData"
|
|
|
:defaultEmit="true"
|
|
|
@getQueryParams="handleQuery"
|
|
|
- ></query-conditions>
|
|
|
+ >
|
|
|
+ </query-conditions>
|
|
|
|
|
|
<!-- 表格 -->
|
|
|
<new-table
|
|
@@ -68,9 +70,9 @@
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-slot:handler="slotProps">
|
|
|
- <el-button size="mini" @click="clickEvent(slotProps.row)"
|
|
|
- >查看回放</el-button
|
|
|
- >
|
|
|
+ <el-button size="mini" @click="clickEvent(slotProps.row)">
|
|
|
+ 查看回放
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</new-table>
|
|
|
<table-footer
|
|
@@ -84,9 +86,9 @@
|
|
|
<img :src="imgUrl" alt="车辆通行" width="100%" />
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="dialogVisible = false"
|
|
|
- >确 定</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" @click="dialogVisible = false">
|
|
|
+ 确 定
|
|
|
+ </el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="回放视频" :visible.sync="videoVisible" width="50%">
|
|
@@ -123,6 +125,7 @@ import {
|
|
|
getCarWash,
|
|
|
getCarWashTotal,
|
|
|
getCarWashVideo,
|
|
|
+ getCarDrying,
|
|
|
} from "../../utils/chenApi";
|
|
|
import { getFaceToken } from "../../utils/api";
|
|
|
|
|
@@ -142,7 +145,7 @@ export default {
|
|
|
{ id: 2, name: "车辆洗消" },
|
|
|
{ id: 3, name: "车辆烘干" },
|
|
|
],
|
|
|
- btnSelected: 2, // 选中的按钮
|
|
|
+ btnSelected: 3, // 选中的按钮
|
|
|
formItems: [], // 传给 QueryCondition 组件的 formItems
|
|
|
propFormData: {}, // 传给 QueryCondition 组件的 propFormData
|
|
|
title: "", // 传给 BioTable 组件的 title
|
|
@@ -172,6 +175,8 @@ export default {
|
|
|
this.carPassage();
|
|
|
} else if (this.btnSelected === 2) {
|
|
|
this.carWash();
|
|
|
+ } else {
|
|
|
+ this.carDrying();
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -181,30 +186,42 @@ export default {
|
|
|
this.propFormData = propFormData[id - 1];
|
|
|
this.title = titles[id - 1];
|
|
|
this.tableItems = tableItems[id - 1];
|
|
|
+ this.pageNum = 1;
|
|
|
+ this.listData = [];
|
|
|
if (this.btnSelected === 1) {
|
|
|
this.carPassage();
|
|
|
} else if (this.btnSelected === 2) {
|
|
|
this.carWash();
|
|
|
+ } else {
|
|
|
+ this.carDrying();
|
|
|
}
|
|
|
},
|
|
|
// 获取查询条件
|
|
|
handleQuery(params) {
|
|
|
- console.log(params);
|
|
|
+ this.pageNum = 1;
|
|
|
this.params = params;
|
|
|
+
|
|
|
+ this.listData = [];
|
|
|
if (this.btnSelected === 1) {
|
|
|
this.carPassage();
|
|
|
} else if (this.btnSelected === 2) {
|
|
|
this.carWash();
|
|
|
this.carWashTotal();
|
|
|
+ } else {
|
|
|
+ this.carDrying();
|
|
|
}
|
|
|
},
|
|
|
// 修改size
|
|
|
sizeChange(val) {
|
|
|
this.size = val;
|
|
|
+ this.pageNum = 1;
|
|
|
+ this.listData = [];
|
|
|
if (this.btnSelected === 1) {
|
|
|
this.carPassage();
|
|
|
} else if (this.btnSelected === 2) {
|
|
|
this.carWash();
|
|
|
+ } else {
|
|
|
+ this.carDrying();
|
|
|
}
|
|
|
},
|
|
|
// 修改页数
|
|
@@ -214,6 +231,8 @@ export default {
|
|
|
this.carPassage();
|
|
|
} else if (this.btnSelected === 2) {
|
|
|
this.carWash();
|
|
|
+ } else {
|
|
|
+ this.carDrying();
|
|
|
}
|
|
|
},
|
|
|
init() {
|
|
@@ -276,7 +295,7 @@ export default {
|
|
|
happendTime: row.alarmDate,
|
|
|
channelId: row.nodeCode,
|
|
|
}).then((res) => {
|
|
|
- if (res.code === 0) {
|
|
|
+ if (res.code === 10000) {
|
|
|
this.rtsp = res.URL;
|
|
|
this.videoVisible = true;
|
|
|
}
|
|
@@ -297,6 +316,18 @@ export default {
|
|
|
this.total = JSON.parse(res.result).data.value;
|
|
|
});
|
|
|
},
|
|
|
+ // 车辆烘干
|
|
|
+ carDrying() {
|
|
|
+ getCarDrying({
|
|
|
+ current: this.pageNum,
|
|
|
+ size: this.size,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 10000) {
|
|
|
+ this.listData = res.data.records;
|
|
|
+ this.total = this.listData.length;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|