Commit 386dd086 authored by 耿迪迪's avatar 耿迪迪

车辆信息问题修改 gengdidi

parent 4d7a9fde
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<!--<el-table-column label="车辆检测信息" align="center" prop="vehicleInspect" />--> <!--<el-table-column label="车辆检测信息" align="center" prop="vehicleInspect" />-->
<el-table-column label="所属企业" align="center" prop="beyondEnterpriseId" /> <el-table-column label="所属企业" align="center" prop="beyondEnterpriseId" />
<el-table-column label="责任人" align="center" prop="personLiable" /> <el-table-column label="责任人" align="center" prop="personLiable" />
<el-table-column label="联系电话" align="center" prop="phone" /> <el-table-column label="联系电话" align="center" prop="phone" width="120"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<!-- 查询车辆信息 --> <!-- 查询车辆信息 -->
<el-dialog :title="title" :visible.sync="open" width="900px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
<el-form ref="form" :model="form" label-width="80px"> <el-form ref="form" :model="form" label-width="100px">
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="车牌号" prop="carNum"> <el-form-item label="车牌号" prop="carNum">
...@@ -144,10 +144,19 @@ ...@@ -144,10 +144,19 @@
<!--值班人员轨迹回放--> <!--值班人员轨迹回放-->
<el-dialog <el-dialog
title="值班人员轨迹回放" title="车辆轨迹回放"
:visible.sync="backOpen" :visible.sync="backOpen"
> >
<el-form :model="backForm" ref="backForm" :rules="rules"> <el-form :model="backForm" ref="backForm" :rules="rules" label-width="120px">
<el-row>
<el-col :span="10">
<el-form-item label="车牌号" prop="carNum">
<!--<span>{{ backForm.carNum }}</span>-->
<el-input v-model="backForm.carNum" :disabled="true"/>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col> <el-col>
<el-form-item label="请选择时间段" prop="changeTime"> <el-form-item label="请选择时间段" prop="changeTime">
...@@ -358,10 +367,10 @@ export default { ...@@ -358,10 +367,10 @@ export default {
.format("YYYY-MM-DD HH:mm:ss"); .format("YYYY-MM-DD HH:mm:ss");
this.backForm.endTime = moment().format("YYYY-MM-DD HH:mm:ss"); this.backForm.endTime = moment().format("YYYY-MM-DD HH:mm:ss");
} else if (e == 2) { } else if (e == 2) {
this.backForm.beginTime = moment().format("YYYY-MM-DD HH:mm:ss"); this.backForm.beginTime = moment()
this.backForm.endTime = moment() .subtract(1, "d")
.add(1, "d")
.format("YYYY-MM-DD HH:mm:ss"); .format("YYYY-MM-DD HH:mm:ss");
this.backForm.endTime = moment().format("YYYY-MM-DD HH:mm:ss");
} else { } else {
this.backForm.beginTime = ""; this.backForm.beginTime = "";
this.backForm.endTime = ""; this.backForm.endTime = "";
...@@ -370,8 +379,8 @@ export default { ...@@ -370,8 +379,8 @@ export default {
getCar(carNum){ getCar(carNum){
this.backOpen=true; this.backOpen=true;
this.backForm.carNum =carNum; this.backForm.carNum =carNum;
this.backForm.beginTime = moment().format("YYYY-MM-DD HH:mm:ss"); this.backForm.beginTime = moment().subtract(2, "h").format("YYYY-MM-DD HH:mm:ss");
this.backForm.endTime = moment().add(2, "h").format("YYYY-MM-DD HH:mm:ss"); this.backForm.endTime = moment().format("YYYY-MM-DD HH:mm:ss");
}, },
handleCurrentChangvale(val){ handleCurrentChangvale(val){
this.queryParams.pageNum = val; this.queryParams.pageNum = val;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment