新增文件

master
Yangwl 2 years ago
parent 3053fbe7d8
commit 52b80b988e

@ -24,7 +24,7 @@ public class BaseCar extends BaseEntity
/** 主键 */ /** 主键 */
private String id; private String id;
private String tyreid;
/** 企业编号 */ /** 企业编号 */
@Excel(name = "企业编号") @Excel(name = "企业编号")
@ -135,14 +135,17 @@ public class BaseCar extends BaseEntity
//车队id //车队id
private String queueId; private String queueId;
private String carQueue;
private List<BaseTyre> TyreList; private List<BaseTyre> TyreList;
public String getTyreid() {
return tyreid; public String getCarQueue() {
return carQueue;
} }
public void setTyreid(String tyreid) { public void setCarQueue(String carQueue) {
this.tyreid = tyreid; this.carQueue = carQueue;
} }
public String getCartype() { public String getCartype() {

@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="id" column="id" /> <result property="id" column="id" />
<result property="companyCode" column="company_code" /> <result property="companyCode" column="company_code" />
<result property="carQueueId" column="car_queue_id" /> <result property="carQueueId" column="car_queue_id" />
<result property="carQueue" column="car_queue" />
<result property="carTypeId" column="car_type_id" /> <result property="carTypeId" column="car_type_id" />
<result property="cartype" column="cartype" /> <result property="cartype" column="cartype" />
<result property="carLicense" column="car_license" /> <result property="carLicense" column="car_license" />
@ -76,9 +77,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN base_car_queue bcq ON bc.car_queue_id = bcq.id LEFT JOIN base_car_queue bcq ON bc.car_queue_id = bcq.id
LEFT JOIN base_car_type bct ON bct.id = bc.car_type_id LEFT JOIN base_car_type bct ON bct.id = bc.car_type_id
<where> <where>
bc.is_delete != '1'
<if test="id != null and id != ''"> and bc.id = #{id} </if> <if test="id != null and id != ''"> and bc.id = #{id} </if>
<if test="carLicense != null and carLicense != ''"> and bc.car_license like concat('%', #{carLicense}, '%') </if> <if test="carLicense != null and carLicense != ''"> and bc.car_license like concat('%', #{carLicense}, '%') </if>
</where> </where>
</select> </select>
@ -129,13 +130,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
bt.current_texture_depth, bt.current_texture_depth,
bt.state, bt.state,
bt.tyre_position, bt.tyre_position,
bct.title as cartype bct.title as cartype,
bcq.title as car_queue
FROM FROM
base_car bc base_car bc
LEFT JOIN base_device bd ON bc.device_id = bd.internet_things_no LEFT JOIN base_device bd ON bc.device_id = bd.internet_things_no
LEFT JOIN base_car_type bct ON bc.car_type_id=bct.id LEFT JOIN base_car_type bct ON bc.car_type_id=bct.id
LEFT JOIN base_tyre bt on bt.car_id=bc.id LEFT JOIN base_tyre bt on bt.car_id=bc.id
LEFT JOIN base_car_queue bcq ON bc.car_queue_id = bcq.id
<where> <where>
bc.is_delete != '1' bc.is_delete != '1'
<if test="id != null "> and bc.id = #{id}</if> <if test="id != null "> and bc.id = #{id}</if>
@ -256,7 +258,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!-- </foreach>--> <!-- </foreach>-->
<!-- </delete>--> <!-- </delete>-->
<update id="deleteBaseCarByIds" parameterType="String"> <update id="deleteBaseCarByIds" parameterType="String">
update base_car set is_delete = '1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update> </update>
<update id="updateCarGPS" parameterType="BaseCar"> <update id="updateCarGPS" parameterType="BaseCar">
update base_car update base_car

@ -26,7 +26,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="BaseCar" id="baseCarResult"> <resultMap type="BaseCar" id="baseCarResult">
<result property="id" column="car_id" /> <result property="id" column="car_id" />
<result property="carLicense" column="car_license" /> <result property="carLicense" column="car_license" />
<result property="isDelete" column="is_delete" />
</resultMap> </resultMap>
<sql id="selectBaseCarQueueVo"> <sql id="selectBaseCarQueueVo">
@ -65,11 +64,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
bcq.create_by, bcq.create_by,
bcq.create_name, bcq.create_name,
bc.id as car_id, bc.id as car_id,
bc.car_license, bc.car_license
bc.is_delete
FROM FROM
base_car_queue bcq base_car_queue bcq
LEFT JOIN base_car bc on bcq.id = bc.car_queue_id LEFT JOIN base_car bc on bcq.id = bc.car_queue_id
<where>
bcq.is_delete = '0' and bc.is_delete = '0'
<if test="title != null and title != ''"> and bcq.title = #{title}</if>
</where>
</select> </select>
<insert id="insertBaseCarQueue" parameterType="BaseCarQueue"> <insert id="insertBaseCarQueue" parameterType="BaseCarQueue">
@ -139,7 +141,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete> </delete>
<delete id="deleteBaseCarQueueByIds" parameterType="String"> <delete id="deleteBaseCarQueueByIds" parameterType="String">
delete from base_car_queue where id in update base_car_queue set is_delete = '1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>

@ -128,7 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete> </delete>
<delete id="deleteBaseCarTypeByIds" parameterType="String"> <delete id="deleteBaseCarTypeByIds" parameterType="String">
delete from base_car_type where id in update base_car_type set is_delete = '1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>

@ -128,7 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete> </delete>
<delete id="deleteBaseDeviceByIds" parameterType="String"> <delete id="deleteBaseDeviceByIds" parameterType="String">
delete from base_device where id in update base_device set is_delete = '1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>

@ -270,7 +270,7 @@
</template> </template>
<script setup> <script setup>
import {listBaseCar, getCarGpsList, getTyreList} from '@/api/realTimeMonitoring/carMonitoring' import {listBaseCar, getCarGpsList,getTyreList} from '@/api/realTimeMonitoring/carMonitoring'
import AMapLoader from '@amap/amap-jsapi-loader'; import AMapLoader from '@amap/amap-jsapi-loader';
import {useI18n} from "vue-i18n"; import {useI18n} from "vue-i18n";
import {ref} from 'vue' import {ref} from 'vue'
@ -365,14 +365,14 @@ const tableChange = async (e) => {
title.push(parseInt(res.split('-')[1])) title.push(parseInt(res.split('-')[1]))
}) })
TireRow.value = title TireRow.value = title
let tyreListData = info[0].tyreList.map(e => { let tyreListData = info[0].tyreList.map(e=>{
return { return {
...e, ...e,
tyrePositionS: e.tyrePosition?.split('-')[0] + '-' + e.tyrePosition?.split('-')[1] + '-' + e.tyrePosition?.split('-')[2] tyrePositionS : e.tyrePosition?.split('-')[0] + '-' + e.tyrePosition?.split('-')[1] + '-' + e.tyrePosition?.split('-')[2]
} }
}) })
tyreList.value = tyreListData tyreList.value = tyreListData
tyreDataList.value = tyreListData.map(e => e.tyrePositionS) tyreDataList.value = tyreListData.map(e=>e.tyrePositionS)
console.log(tyreList.value) console.log(tyreList.value)
let timeOut = () => { let timeOut = () => {
setTimeout(() => { setTimeout(() => {

@ -12,7 +12,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="创建时间" style="width: 308px;"> <el-form-item label="时间" style="width: 308px;">
<el-date-picker <el-date-picker
v-model="dateRange" v-model="dateRange"
value-format="YYYY-MM-DD" value-format="YYYY-MM-DD"
@ -40,7 +40,7 @@
<temp /> <temp />
</el-row> </el-row>
<el-row :gutter="32"> <el-row :gutter="32">
<el-col :xs="24" :sm="24" :lg="8"> <el-col :xs="24" :sm="24" :lg="8" @click="handleTyreMileage">
<div class="chart-wrapper"> <div class="chart-wrapper">
<raddar-chart /> <raddar-chart />
</div> </div>
@ -104,6 +104,11 @@
}); });
//getList(); //getList();
} }
/** 搜索按钮操作 */
function handleTyreMileage() {
// this.$tab.openPage("", "/system/user");
}
/** 重置按钮操作 */ /** 重置按钮操作 */
const resetQuery = () => { const resetQuery = () => {
proxy.resetForm("queryRef"); proxy.resetForm("queryRef");

@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
name: "index"
}
</script>
<style scoped>
</style>

@ -242,10 +242,12 @@
<script setup name="basetyre"> <script setup name="basetyre">
import {addBasetyre, delBasetyre, getBasetyre, listBasetyre, updateBasetyre} from "@/api/tireManagement/info"; import {addBasetyre, delBasetyre, getBasetyre, listBasetyre, updateBasetyre} from "@/api/tireManagement/info";
import {useI18n} from 'vue-i18n'; import {useI18n} from 'vue-i18n';
import Cookies from "js-cookie"; import Cookies from "js-cookie";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
const {t} = useI18n(); const {t} = useI18n();
const locale = (Cookies.get('language') || 'zhCn') === 'zhCn' const locale = (Cookies.get('language') || 'zhCn') === 'zhCn'

Loading…
Cancel
Save