添加搜索条件

master
夜笙歌 2 years ago
parent 68f87fa44e
commit 9d893553d7

@ -63,41 +63,41 @@
<el-table-column label="车牌号" align="center" prop="carLicense" <el-table-column label="车牌号" align="center" prop="carLicense"
width="150"/> width="150"/>
<el-table-column label="纬度" align="center" prop="latitude" <el-table-column label="纬度" align="center" prop="latitude"
width="150"/> />
<el-table-column label="经度" align="center" prop="longitude" <el-table-column label="经度" align="center" prop="longitude"
width="150"/> />
<el-table-column label="GPS里程" align="center" prop="gpsMileage" <!-- <el-table-column label="GPS里程" align="center" prop="gpsMileage"-->
width="150"/> <!-- />-->
<el-table-column label="海拔" align="center" prop="altitude" <el-table-column label="海拔" align="center" prop="altitude"
width="150"/> />
<el-table-column label="速度" align="center" prop="speed" <el-table-column label="速度" align="center" prop="speed"
width="150"/> />
<el-table-column label="方向" align="center" prop="course" <!-- <el-table-column label="方向" align="center" prop="course"-->
width="150"/> <!-- width="150"/>-->
<el-table-column label="是否外接电源" align="center" prop="isOutPower" <!-- <el-table-column label="是否外接电源" align="center" prop="isOutPower"-->
width="150"/> <!-- width="150"/>-->
<el-table-column label="设备上传电池电压" align="center" prop="carPower" <!-- <el-table-column label="设备上传电池电压" align="center" prop="carPower"-->
width="150"/> <!-- width="150"/>-->
<el-table-column label="胎压设备是否正常工作" align="center" prop="isSensorRun" <!-- <el-table-column label="胎压设备是否正常工作" align="center" prop="isSensorRun"-->
width="170"/> <!-- width="170"/>-->
<el-table-column label="紧急报警" align="center" prop="emergencyAlarm" <!-- <el-table-column label="紧急报警" align="center" prop="emergencyAlarm"-->
width="150"/> <!-- width="150"/>-->
<el-table-column label="超速预警" align="center" prop="speedAlarm" <!-- <el-table-column label="超速预警" align="center" prop="speedAlarm"-->
width="150"/> <!-- width="150"/>-->
<el-table-column label="疲劳驾驶" align="center" prop="fatigueDrivingAlarm" <!-- <el-table-column label="疲劳驾驶" align="center" prop="fatigueDrivingAlarm"-->
width="150"/> <!-- width="150"/>-->
<el-table-column label="危险预警" align="center" prop="riskEarlyAlarm" <!-- <el-table-column label="危险预警" align="center" prop="riskEarlyAlarm"-->
width="150"/> <!-- width="150"/>-->
<el-table-column label="gnss模块" align="center" prop="gnssModule" <!-- <el-table-column label="gnss模块" align="center" prop="gnssModule"-->
width="150"/> <!-- width="150"/>-->
<el-table-column label="天线缺失" align="center" prop="gnssLossAntenna" <!-- <el-table-column label="天线缺失" align="center" prop="gnssLossAntenna"-->
width="150"/> <!-- width="150"/>-->
<el-table-column label="天线短路" align="center" prop="gnssAntennaShortcircuit" <!-- <el-table-column label="天线短路" align="center" prop="gnssAntennaShortcircuit"-->
width="150"/> <!-- width="150"/>-->
<el-table-column label="终端主电源欠压" align="center" prop="mainPowerLake" <!-- <el-table-column label="终端主电源欠压" align="center" prop="mainPowerLake"-->
width="150"/> <!-- width="150"/>-->
<el-table-column label="终端主电源掉电" align="center" prop="mainpowerloss" <!-- <el-table-column label="终端主电源掉电" align="center" prop="mainpowerloss"-->
width="150"/> <!-- width="150"/>-->
</el-table> </el-table>
<!-- 分页--> <!-- 分页-->

@ -34,31 +34,31 @@
<div <div
style="width: 80%;border: 1px solid #ccc;padding: 14px ;text-align: center;margin-left: 10%;color:#fff;margin-top: 100px"> style="width: 80%;border: 1px solid #ccc;padding: 14px ;text-align: center;margin-left: 10%;color:#fff;margin-top: 100px">
<div style="font-size: 24px">车辆总里程</div> <div style="font-size: 24px">车辆总里程</div>
<div style="font-size: 20px;color: greenyellow">156325公里</div> <div style="font-size: 20px;color: greenyellow">xxxxx公里</div>
</div> </div>
<div style="width: 100%;color: #fff;margin-top: 40px;font-size: 12px"> <div style="width: 100%;color: #fff;margin-top: 40px;font-size: 12px">
<div style="width: 33%;float: left;text-align: center"> <div style="width: 33%;float: left;text-align: center">
<div> <div>
参数1 里程1
</div> </div>
<div style="font-size: 22px"> <div style="font-size: 22px">
1234 km xxxx km
</div> </div>
</div> </div>
<div style="width: 33%;float: left;text-align: center"> <div style="width: 33%;float: left;text-align: center">
<div> <div>
参数2 里程2
</div> </div>
<div style="font-size: 22px"> <div style="font-size: 22px">
1234 km xxxx km
</div> </div>
</div> </div>
<div style="width: 33%;float: left;text-align: center"> <div style="width: 33%;float: left;text-align: center">
<div> <div>
参数3 里程3
</div> </div>
<div style="font-size: 22px"> <div style="font-size: 22px">
1234 km xxxx km
</div> </div>
</div> </div>
</div> </div>

@ -12,7 +12,7 @@
:options="options" :options="options"
:props="cascaderProps" :props="cascaderProps"
clearable clearable
@change="cascaderChange" /> @change="cascaderChange"/>
</el-form-item> </el-form-item>
<el-form-item label="第一轴高气压阀值" prop="z1PressureHigh;"> <el-form-item label="第一轴高气压阀值" prop="z1PressureHigh;">
<el-input-number v-model="form.z1PressureHigh" :min="0" :step="5"/> <el-input-number v-model="form.z1PressureHigh" :min="0" :step="5"/>
@ -61,7 +61,7 @@ const ids = ref([])
const axleTotals = ref([]) const axleTotals = ref([])
const deviceIds = ref([]) const deviceIds = ref([])
const cascaderProps = { multiple: true, value:'id',label:'title',children:'baseCarList' } const cascaderProps = {multiple: true, value: 'id', label: 'title', children: 'baseCarList'}
const options = ref([]) const options = ref([])
const carIds = ref([]) const carIds = ref([])
@ -90,7 +90,7 @@ listBaseCar().then(e => {
const cascaderChange = (e) => { const cascaderChange = (e) => {
console.log(e) console.log(e)
let params = [] let params = []
e.forEach(val =>{ e.forEach(val => {
params.push(val.at(-1)) params.push(val.at(-1))
}) })
ids.value = params ids.value = params
@ -146,10 +146,10 @@ const resetQuery = () => {
zPressureHigh: 0, zPressureHigh: 0,
zPressureLow: 0, zPressureLow: 0,
temperatureHigh: 0, temperatureHigh: 0,
carId:null, carId: null,
time: parseTime(new Date()), time: parseTime(new Date()),
} }
ids.value=[] ids.value = []
carIds.value = [] carIds.value = []
} }
</script> </script>

@ -12,6 +12,15 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="品牌" prop="brand">
<el-input
v-model="queryParams.brand"
placeholder="请输入品牌"
style="width: 200px"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="外胎号" prop="outerTireNumber"> <el-form-item label="外胎号" prop="outerTireNumber">
<el-input <el-input
v-model="queryParams.outerTireNumber" v-model="queryParams.outerTireNumber"

Loading…
Cancel
Save