前台提交

master
Wang Hao 2024-04-08 15:37:40 +08:00
parent 37c9e656b8
commit 75b5f782ce
6 changed files with 563 additions and 7 deletions

View File

@ -5,7 +5,7 @@
"author": "若依",
"license": "MIT",
"scripts": {
"dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
"dev": "vue-cli-service serve",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",

View File

@ -3,7 +3,7 @@ import request from '@/utils/request'
export function faultList(data) {
return request({
url: 'fault/sysFault/FaultList',
url: '/corpor/sysFault/FaultList',
method: 'post',
data
})

View File

@ -4,7 +4,7 @@ import request from '@/utils/request'
export function FaultLogList(data) {
return request({
url: '/fault/faultLog/FaultLogList',
url: '/corpor/faultLog/FaultLogList',
method: 'post',
data
})
@ -12,7 +12,7 @@ export function FaultLogList(data) {
export function insertFaultLog(data) {
return request({
url: '/fault/faultLog/insertFaultLog',
url: '/corpor/faultLog/insertFaultLog',
method: 'post',
data
})
@ -20,7 +20,7 @@ export function insertFaultLog(data) {
export function updateFaultLog(data) {
return request({
url: '/fault/faultLog/updateFaultLog',
url: '/corpor/faultLog/updateFaultLog',
method: 'post',
data
})
@ -28,7 +28,7 @@ export function updateFaultLog(data) {
export function deleteFaultLog(carFaultCodeId) {
return request({
url: '/fault/faultLog/deleteFaultLog/' + carFaultCodeId,
url: '/corpor/faultLog/deleteFaultLog/' + carFaultCodeId,
method: 'post',
})
}

View File

@ -0,0 +1,13 @@
import request from '@/utils/request'
// 查询部门列表
export function monitoringList(data) {
return request({
url: '/corpor/monitoringList',
method: 'post',
data: data
})
}

View File

@ -27,6 +27,15 @@
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
v-hasPermi="['system:dept:add']"
icon="el-icon-plus"
plain
size="mini"
type="primary"
@click="handleAdds"
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -357,7 +366,7 @@ export default {
if (row != undefined) {
this.form.parentId = row.deptId;
}
this.opens = true;
this.open = true;
this.title = "添加部门";
listDept().then(response => {
this.deptOptions = this.handleTree(response.data, "deptId");

View File

@ -0,0 +1,534 @@
<template>
<div>
<el-table
:data="tableData"
style="width: 100%">
<el-table-column
label="主键id"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.id }}</span>
</template>
</el-table-column>
<el-table-column
label="车辆编码"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.vin }}</span>
</template>
</el-table-column>
<el-table-column
label="报文创建时间"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.createTime }}</span>
</template>
</el-table-column>
<el-table-column
label="经度"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.longitude }}</span>
</template>
</el-table-column>
<el-table-column
label="维度"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.latitude }}</span>
</template>
</el-table-column>
<el-table-column
label="速度"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.speed }}</span>
</template>
</el-table-column>
<el-table-column
label="里程"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.mileage }}</span>
</template>
</el-table-column>
<el-table-column
label="总电压"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.voltage }}</span>
</template>
</el-table-column>
<el-table-column
label="总电流"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.current }}</span>
</template>
</el-table-column>
<el-table-column
label="绝缘电阻"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.resistance }}</span>
</template>
</el-table-column>
<el-table-column
label="档位"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.gear }}</span>
</template>
</el-table-column>
<el-table-column
label="加速踏板行驶值"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.accelerationPedal }}</span>
</template>
</el-table-column>
<el-table-column
label="制动踏板行驶值"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.brakePedal }}</span>
</template>
</el-table-column>
<el-table-column
label="燃料消耗率"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.fuelConsumptionRate }}</span>
</template>
</el-table-column>
<el-table-column
label="电机控制器温度"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.motorControllerTemperature }}</span>
</template>
</el-table-column>
<el-table-column
label="电机转速"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.motorSpeed }}</span>
</template>
</el-table-column>
<el-table-column
label="电机转矩"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.motorTorque }}</span>
</template>
</el-table-column>
<el-table-column
label="电机温度"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.motorTemperature }}</span>
</template>
</el-table-column>
<el-table-column
label="电机电压"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.motorVoltage }}</span>
</template>
</el-table-column>
<el-table-column
label="电机电流"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.motorCurrent }}</span>
</template>
</el-table-column>
<el-table-column
label="动力电池剩余电量SOC"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.remainingBattery }}</span>
</template>
</el-table-column>
<el-table-column
label="当前状态允许的最大反馈功率"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.maximumFeedbackPower }}</span>
</template>
</el-table-column>
<el-table-column
label="当前状态允许的最大放电功率"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.maximumDischargePower }}</span>
</template>
</el-table-column>
<el-table-column
label="BMS自检计数器"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.selfCheckCounter }}</span>
</template>
</el-table-column>
<el-table-column
label="动力电池充放电电流"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.totalBatteryCurrent }}</span>
</template>
</el-table-column>
<el-table-column
label="动力电池负载端电压V3"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.totalBatteryVoltage }}</span>
</template>
</el-table-column>
<el-table-column
label="单次最大电压"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.singleBatteryMaxVoltage }}</span>
</template>
</el-table-column>
<el-table-column
label="单体电池最低电压"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.singleBatteryMinVoltage }}</span>
</template>
</el-table-column>
<el-table-column
label="单体电池最高温度"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.singleBatteryMaxTemperature }}</span>
</template>
</el-table-column>
<el-table-column
label="单体电池最低温度"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.singleBatteryMinTemperature }}</span>
</template>
</el-table-column>
<el-table-column
label="动力电池可用容量"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.availableBatteryCapacity }}</span>
</template>
</el-table-column>
<el-table-column
label="车辆状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.vehicleStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.vehicleStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="运行状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.operatingStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.operatingStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="SOC 状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.socStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.socStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="可充电储能装置工作状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.chargingEnergyStorageStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.chargingEnergyStorageStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="驱动电机状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.driveMotorStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.driveMotorStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="定位是否有效"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.positionStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.positionStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="EAS(汽车防盗系统)状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.easStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.easStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="PTC(电动加热器)状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.ptcStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.ptcStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="EPS(电动助力系统)状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.epsStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.epsStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="ABS(防抱死)状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.absStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.absStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="MCU(电机/逆变器)状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.mcuStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.mcuStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="动力电池加热状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.heatingStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.heatingStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="动力电池当前状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.batteryStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.batteryStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="动力电池保温状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.batteryInsulationStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.batteryInsulationStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="DCDC(电力交换系统) 状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.dcdcStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.dcdcStatus==0"></span>
</template>
</el-table-column>
<el-table-column
label="CHG(充电机)状态"
width="180">
<template slot-scope="scope">
<span style="margin-left: 10px" v-if="scope.row.chgStatus==1"></span>
<span style="margin-left: 10px" v-if="scope.row.chgStatus==0"></span>
</template>
</el-table-column>
</el-table>
<h1>分页</h1>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="monitoring.pageNum"
:page-sizes="[5, 10, 20, 100]"
:page-size="monitoring.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="total">
</el-pagination>
</div>
</template>
<script>
//jsjsjson,
//import from ',
import {monitoringList} from "@/api/system/monitoring";
export default {
//import使"
components: {},
props: {},
data() {
//"
return {
tableData:[],
monitoring:{
pageNum: 1,
pageSize: 20,
},
total:0,
};
},
// data",
computed: {},
//data",
watch: {},
//",
methods: {
list(){
monitoringList(this.monitoring).then(
res=>{
this.tableData=res.list;
this.total=res.total;
console.log(res)
console.log(this.monitoring)
}
)
},
handleSizeChange(val) {
this.monitoring.pageSize = val;
this.list();
},
handleCurrentChange(val) {
this.monitoring.pageNum = val;
this.list();
},
},
// - 访this",
created() {
this.list();
},
// - 访DOM",
mounted() {
},
beforeCreate() {
}, // - ",
beforeMount() {
}, // - ",
beforeUpdate() {
}, // - ",
updated() {
}, // - ",
beforeDestroy() {
}, // - ",
destroyed() {
}, // - ",
activated() {
} //keep-alive",
};
</script>
<style scoped>
</style>