|
@@ -156,10 +156,17 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
label="操作"
|
|
label="操作"
|
|
align="center"
|
|
align="center"
|
|
- width="200"
|
|
|
|
|
|
+ width="250"
|
|
class-name="small-padding fixed-width"
|
|
class-name="small-padding fixed-width"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ icon="el-icon-view"
|
|
|
|
+ @click="handleAlarmHist(scope.row)"
|
|
|
|
+ >监控历史</el-button
|
|
|
|
+ >
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
@@ -197,6 +204,10 @@
|
|
:visible.sync="recordDialogVisible"
|
|
:visible.sync="recordDialogVisible"
|
|
:vehicle-info="currentVehicle"
|
|
:vehicle-info="currentVehicle"
|
|
/>
|
|
/>
|
|
|
|
+ <alarm-hist
|
|
|
|
+ :visible.sync="alarmHistDialogVisible"
|
|
|
|
+ :vehicle-info="currentVehicle"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -209,11 +220,12 @@ import {
|
|
} from "@/api/powerdistribution/vehicle-monitoring";
|
|
} from "@/api/powerdistribution/vehicle-monitoring";
|
|
import WorkTrack from "./components/WorkTrack.vue";
|
|
import WorkTrack from "./components/WorkTrack.vue";
|
|
import DrivingRecord from "./components/DrivingRecord.vue";
|
|
import DrivingRecord from "./components/DrivingRecord.vue";
|
|
-
|
|
|
|
|
|
+import AlarmHist from "./components/AlarmHist.vue";
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
WorkTrack,
|
|
WorkTrack,
|
|
DrivingRecord,
|
|
DrivingRecord,
|
|
|
|
+ AlarmHist
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -276,6 +288,8 @@ export default {
|
|
trackDialogVisible: false,
|
|
trackDialogVisible: false,
|
|
// 行驶记录相关
|
|
// 行驶记录相关
|
|
recordDialogVisible: false,
|
|
recordDialogVisible: false,
|
|
|
|
+
|
|
|
|
+ alarmHistDialogVisible :false,
|
|
// 当前选中的车辆信息
|
|
// 当前选中的车辆信息
|
|
currentVehicle: {},
|
|
currentVehicle: {},
|
|
};
|
|
};
|
|
@@ -318,7 +332,7 @@ export default {
|
|
file.type === "application/vnd.ms-excel" ||
|
|
file.type === "application/vnd.ms-excel" ||
|
|
file.type === "text/csv";
|
|
file.type === "text/csv";
|
|
if (!isExcel) {
|
|
if (!isExcel) {
|
|
- this.$message.error("只能上传Excel或CSV文件!");
|
|
|
|
|
|
+ this.$message.error("只能上传CSV文件!");
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
const isLt5M = file.size / 1024 / 1024 < 5;
|
|
const isLt5M = file.size / 1024 / 1024 < 5;
|
|
@@ -352,6 +366,11 @@ export default {
|
|
this.currentVehicle = row;
|
|
this.currentVehicle = row;
|
|
this.recordDialogVisible = true;
|
|
this.recordDialogVisible = true;
|
|
},
|
|
},
|
|
|
|
+ /** 查看监控记录 */
|
|
|
|
+ handleAlarmHist(row) {
|
|
|
|
+ this.currentVehicle = row;
|
|
|
|
+ this.alarmHistDialogVisible = true;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|