|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-09-13 17:52:31
|
|
|
- * @LastEditTime: 2021-12-05 14:56:15
|
|
|
+ * @LastEditTime: 2021-12-05 17:03:35
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
* @Description: 生物安全 - 车辆管理
|
|
|
* @FilePath: \hyyfClient\src\views\BioSafety\CarAdmin.vue
|
|
@@ -17,7 +17,6 @@
|
|
|
|
|
|
<!-- 筛选条件 -->
|
|
|
<query-conditions
|
|
|
- v-if="btnSelected !== 3"
|
|
|
:formItems="formItems"
|
|
|
:propFormData="propFormData"
|
|
|
:defaultEmit="true"
|
|
@@ -74,6 +73,13 @@
|
|
|
查看回放
|
|
|
</el-button>
|
|
|
</template>
|
|
|
+
|
|
|
+ <!-- 车辆烘干的回放 -->
|
|
|
+ <template #handlerDrying="slotProps">
|
|
|
+ <el-button size="mini" @click="clickDryingEvent(slotProps.row)">
|
|
|
+ 查看本次烘干温度详情
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
</new-table>
|
|
|
<table-footer
|
|
|
:totals="total"
|
|
@@ -108,6 +114,18 @@
|
|
|
</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog title="温度详情" :visible.sync="tempVisible" width="80%">
|
|
|
+ <div style="width: 100%; height: 500px">
|
|
|
+ <chart-car-drying :tempList="tempChartData"></chart-car-drying>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="videoVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="tempVisible = false">
|
|
|
+ 确 定
|
|
|
+ </el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -116,6 +134,7 @@ import HeadBtns from "components/bioSafety/Btns";
|
|
|
import QueryConditions from "components/bioSafety/QueryConditions";
|
|
|
import NewTable from "components/newTable/NewTable";
|
|
|
import TableFooter from "../../components/TableFooter";
|
|
|
+import ChartCarDrying from "./chart/ChartCarDrying.vue";
|
|
|
|
|
|
import { formItems, propFormData } from "./carAdmin/queryCondition.config";
|
|
|
import { titles, tableItems, tableShows } from "./carAdmin/table.config";
|
|
@@ -126,6 +145,7 @@ import {
|
|
|
getCarWashTotal,
|
|
|
getCarWashVideo,
|
|
|
getCarDrying,
|
|
|
+ getCarDryingTemp,
|
|
|
} from "../../utils/chenApi";
|
|
|
import { getFaceToken } from "../../utils/api";
|
|
|
|
|
@@ -136,6 +156,7 @@ export default {
|
|
|
QueryConditions,
|
|
|
NewTable,
|
|
|
TableFooter,
|
|
|
+ ChartCarDrying,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -145,7 +166,7 @@ export default {
|
|
|
{ id: 2, name: "车辆洗消" },
|
|
|
{ id: 3, name: "车辆烘干" },
|
|
|
],
|
|
|
- btnSelected: 3, // 选中的按钮
|
|
|
+ btnSelected: 1, // 选中的按钮
|
|
|
formItems: [], // 传给 QueryCondition 组件的 formItems
|
|
|
propFormData: {}, // 传给 QueryCondition 组件的 propFormData
|
|
|
title: "", // 传给 BioTable 组件的 title
|
|
@@ -162,6 +183,8 @@ export default {
|
|
|
imgUrl: "", // 点击图片后放大的图片路径
|
|
|
videoVisible: false, // 车辆回放
|
|
|
rtsp: "", // 车辆回放的地址
|
|
|
+ tempVisible: false, // 车辆烘干 - 查看温度详情
|
|
|
+ tempChartData: {},
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -307,8 +330,8 @@ export default {
|
|
|
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,
|
|
|
};
|
|
@@ -319,12 +342,26 @@ export default {
|
|
|
// 车辆烘干
|
|
|
carDrying() {
|
|
|
getCarDrying({
|
|
|
+ startTimeString: this.params.time[0] + "00:00:00",
|
|
|
+ endTimeString: this.params.time[1] + "23:59:59",
|
|
|
current: this.pageNum,
|
|
|
size: this.size,
|
|
|
}).then((res) => {
|
|
|
if (res.code === 10000) {
|
|
|
this.listData = res.data.records;
|
|
|
- this.total = this.listData.length;
|
|
|
+ this.total = res.data.total;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 车辆烘干的回放事件
|
|
|
+ clickDryingEvent(row) {
|
|
|
+ getCarDryingTemp({
|
|
|
+ deviceId: row.deviceId,
|
|
|
+ eventTimeString: row.eventTime,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 10000) {
|
|
|
+ this.tempChartData = res.data;
|
|
|
+ this.tempVisible = true;
|
|
|
}
|
|
|
});
|
|
|
},
|