国际化

master
夜笙歌 2 years ago
parent 33b6ad54e1
commit ba8e98b4b9

@ -154,57 +154,125 @@ export default {
rowLeftInnerTube: 'row the left inner tube',
rowRightInnerTube: 'row the right inner tube',
rowRightOuterTire: 'row the right outer tire',
currentTirePosition:'当前轮胎位置',
tyreNumber:'轮胎编号',
tireBrand:'轮胎品牌',
specificationAndModel:'规格型号',
SensorID:'传感器ID',
mileage:'里程',
ModifiedPatternDepth:'修改花纹深度',
InstallationReplacement:'安装/更换',
UnloadingTire:'卸载轮胎',
serviceTime:'使用时间',
AllTimeHighTirePressure:'历史最高胎压',
EstimatedRemainingMileage:'预计剩余里程',
TheHighestFetalTemperatureEverRecorded:'历史最高胎温',
NumberOfAlarms:'报警次数',
run:'已行驶',
ThatsXOfTheEntireLifeCycle:'约占整个生命周期的%{key}%',
TireMounting:'安装轮胎',
ChangeTire:'更换轮胎',
EndPoint:'终点',
left:'左侧',
right:'右侧',
outer:'外',
inner:'内',
row:'排',
tire:'胎',
MaterialCode: '物料编码',
MaterialName: '物料名称',
QualityControlStatus: '质控状态',
unit: '单位',
specification: '规格',
hierarchy: '层级',
SpeedClass: '速度级别',
LoadIndex: '负荷指数',
RimSize: '轮辋尺寸',
StandardWeight: '标准重量',
SectionWidth: '断面宽',
OuterDiameter: '外直径',
FlatteningRate: '扁平率',
EnhancedType: '加强型',
InnerTubeOrNot: '有无内胎',
PackingQuantity: '装箱量',
TyreType: '轮胎类型',
AuthenticationInformation: '认证信息',
CustomsDeclarationSpecification: '报关规格',
EmbryoCoding: '胎胚编码',
EmbryoDescription: '胎胚描述',
ProductionPlant: '生产工厂',
currentTirePosition:'Current tire position',
tyreNumber:'Tyre number',
tireBrand:'Tire brand',
specificationAndModel:'Specification and model',
SensorID:'Sensor ID',
mileage:'mileage',
ModifiedPatternDepth:'Modified pattern depth',
InstallationReplacement:'Installation/replacement',
UnloadingTire:'Unloading tire',
serviceTime:'Service time',
AllTimeHighTirePressure:'All-time high tire pressure',
EstimatedRemainingMileage:'Estimated remaining mileage',
TheHighestFetalTemperatureEverRecorded:'The highest fetal temperature ever recorded',
NumberOfAlarms:'Number of alarms',
run:'run',
ThatsXOfTheEntireLifeCycle:"That's about %{key}% of the entire life cycle",
TireMounting:'Tire mounting',
ChangeTire:'Change a tire',
EndPoint:'End point',
left:'left',
right:'right',
outer:'outer',
inner:'inner',
row:'row',
tire:'tire',
MaterialCode: 'Material code',
MaterialName: 'Material name',
QualityControlStatus: 'Quality control status',
unit: 'unit',
specification: 'specification',
hierarchy: 'hierarchy',
SpeedClass: 'Speed class',
LoadIndex: 'Load index',
RimSize: 'Rim size',
StandardWeight: 'Standard weight',
SectionWidth: 'Section width',
OuterDiameter: 'Outer diameter',
FlatteningRate: 'Flattening rate',
EnhancedType: 'Enhanced type',
InnerTubeOrNot: 'Inner tube or not',
PackingQuantity: 'Packing quantity',
TyreType: 'Tyre type',
AuthenticationInformation: 'Authentication information',
CustomsDeclarationSpecification: 'Customs declaration specification',
EmbryoCoding: 'Embryo coding',
EmbryoDescription: 'Embryo description',
ProductionPlant: 'Production plant',
trailer:'trailer',
locomotive:'locomotive',
SetUpTrailer:'Set up trailer',
BindingReceiver:'Binding receiver',
FirstTrailer:'First Trailer',
SecondTrailer:'Second Trailer',
ThirdTrailer:'Third Trailer',
InternetOfThingsCardNumber:'Internet of Things card number',
GPSReceiver:'GPS receiver',
TirePressureSensor:'Tire pressure sensor',
SaveSuccessfully:'Save successfully',
DeletedSuccessfully:'Deleted successfully',
deactivate:'deactivate',
enable:'enable',
TireRow:'Tire row',
EnableOrNot:'Enable or not',
TyreLayout:'Tyre layout',
oneRow:'oneRow',
SecondRow:'Second Row',
ThreeRow:'Three Row',
FourRow:'Four Row',
FiveRow:'Five Row',
SixRow:'Six Row',
SingleTyre:'Single Tyre',
DoubleTyre:'Single Tyre',
MobilePhoneCardNumber: 'Mobile phone card number',
AvailabilityOrNot: 'Availability or not',
SIMCardNumber: 'SIM card number',
VehicleInformation: 'Vehicle information',
FleetName: 'Fleet name',
RealTimePosition: 'Real-time position',
VehiclesWithOnBoardEquipment: 'Vehicles with on-board equipment',
WheelPositionDescription: 'Wheel position description',
TotalMileage: 'Total mileage',
BatteryVoltage: 'Battery voltage',
temperature: 'temperature',
pressure: 'pressure',
InstallationTime: 'Installation time',
time: 'time',
AlarmProcessing: 'Alarm processing',
AlarmInformation: 'Alarm information',
HighPressure: 'High pressure',
LowPressure: 'Low pressure',
HighTemperature: 'High temperature',
SelectAVehicle: 'Select a vehicle',
FirstShaftHighPressureThreshold: 'First shaft high pressure threshold',
FirstShaftLowPressureThreshold: 'First shaft low pressure threshold',
HighPressureThresholdForOtherShafts: 'High pressure threshold for other shafts',
LowPressureThresholdsForOtherShafts: 'Low pressure thresholds for other shafts',
HighTemperatureThreshold: 'High temperature threshold',
SetEffectiveTime: 'Set effective time',
CreateImmediately: 'Create immediately',
SelectDate: 'Select date',
NewFence: 'New fence',
empty: 'empty',
transceiver: 'transceiver',
GPSTime: 'GPS time',
SerialNumber: 'Serial number',
TransceiverID: 'Transceiver ID',
altitude: 'altitude',
speed: 'speed',
MeanPressure: 'Mean pressure',
MeanTemperature: 'Mean temperature',
AverageVelocity: 'Average velocity',
},
other:{
tireInformationImport:'Tire information import',
theTireNumberCannotBeEmpty:'The tire number cannot be empty'
theTireNumberCannotBeEmpty:'The tire number cannot be empty',
TheLicensePlateNumberCannotBeEmpty:'车牌号不能为空',
PleaseEnterTheCorrectFormat:'请輸入正确的格式',
TheCarTypeCannotBeEmpty:'所属车型不能为空',
TheNameCannotBeEmpty:'名称不能为空'
},
tireManagement: {
info: {

@ -201,10 +201,78 @@ export default {
EmbryoCoding: '胎胚编码',
EmbryoDescription: '胎胚描述',
ProductionPlant: '生产工厂',
trailer: '挂车',
locomotive: '车头',
SetUpTrailer: '设置挂车',
BindingReceiver: '绑定接收器',
FirstTrailer: '挂1',
SecondTrailer: '挂2',
ThirdTrailer: '挂3',
InternetOfThingsCardNumber: '物联网卡号',
GPSReceiver: 'GPS接收机',
TirePressureSensor: '胎压传感器',
SaveSuccessfully: '保存成功',
DeletedSuccessfully: '删除成功',
deactivate: '停用',
enable: '启用',
TireRow: '轮胎排数',
EnableOrNot: '是否启用',
TyreLayout: '轮胎布局图',
oneRow: '一排',
SecondRow: '二排',
ThreeRow: '三排',
FourRow: '四排',
FiveRow: '五排',
SixRow: '六排',
SingleTyre: '单胎',
DoubleTyre: '双胎',
MobilePhoneCardNumber: '手机卡号',
AvailabilityOrNot: '是否可用',
SIMCardNumber: 'SIM卡号',
VehicleInformation: '车辆信息',
FleetName: '车队名称',
RealTimePosition: '实时位置',
VehiclesWithOnBoardEquipment: '有车载设备车辆',
WheelPositionDescription: '轮位描述',
TotalMileage: '总里程',
BatteryVoltage: '电池电压',
temperature: '温度',
pressure: '压力',
InstallationTime: '安装时间',
time: '时间',
AlarmProcessing: '报警处理',
AlarmInformation: '报警信息',
HighPressure: '高压',
LowPressure: '低压',
HighTemperature: '高温',
SelectAVehicle: '选择车辆',
FirstShaftHighPressureThreshold: '第一轴高气压阀值',
FirstShaftLowPressureThreshold: '第一轴低气压阀值',
HighPressureThresholdForOtherShafts: '其他轴高气压阀值',
LowPressureThresholdsForOtherShafts: '其他轴低气压阀值',
HighTemperatureThreshold: '高温阀值',
SetEffectiveTime: '设置生效时间',
CreateImmediately: '立即创建',
SelectDate: '选择日期',
NewFence: '新建围栏',
empty: '清空',
transceiver: '收发器',
GPSTime: 'GPS时间',
SerialNumber: '序号',
TransceiverID: '收发器ID',
altitude: '海拔',
speed: '速度',
MeanPressure: '平均压力',
MeanTemperature: '平均温度',
AverageVelocity: '平均速度',
},
other: {
tireInformationImport: '轮胎信息导入',
theTireNumberCannotBeEmpty: '胎号不能为空'
theTireNumberCannotBeEmpty: '胎号不能为空',
TheLicensePlateNumberCannotBeEmpty: '车牌号不能为空',
PleaseEnterTheCorrectFormat: '请輸入正确的格式',
TheCarTypeCannotBeEmpty: '所属车型不能为空',
TheNameCannotBeEmpty: '名称不能为空'
},
tireManagement: {
info: {
@ -215,6 +283,7 @@ export default {
tireSpecificationModel: '轮胎规格型号',
sensorNumber: '传感器编号',
numberPlate: '车牌号',
creationTime: '创建时间'
}
},
tireManagement1: {

@ -3,32 +3,32 @@
<!-- 搜索栏-->
<el-form v-show="showSearch" ref="queryRef" :inline="true" :label-width=" locale ? '90px':'140px'"
:model="queryParams">
<el-form-item label="车牌号" prop="carLicense">
<el-form-item :label="t('web.licensePlateNumber')" prop="carLicense">
<el-input
v-model="queryParams.carLicense"
:placeholder=" t('common.pleaseEnter') + '车牌号'"
:placeholder=" t('common.pleaseEnter') "
clearable
style="width: 200px"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="收发器" prop="machineId">
<el-form-item :label="t('web.transceiver')" prop="machineId">
<el-input
v-model="queryParams.machineId"
:placeholder="t('common.pleaseEnter') + '收发器'"
:placeholder="t('common.pleaseEnter') "
clearable
style="width: 200px"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="GPS时间" prop="internationalization3">
<el-form-item :label="t('web.GPSTime')" prop="internationalization3">
<el-date-picker
v-model="dateRange"
value-format="YYYY-MM-DD"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:start-placeholder="t('common.startDate')"
:end-placeholder="t('common.endDate')"
/>
</el-form-item>
<el-form-item label=" ">
@ -55,22 +55,22 @@
<!-- 表格主体-->
<el-table v-loading="loading" :data="postList" @selection-change="handleSelectionChange">
<el-table-column align="center" fixed type="selection" width="55"/>
<el-table-column label="序号" align="center" type="index" width="50" />
<el-table-column :label="t('web.SerialNumber')" align="center" type="index" width="120" />
<!-- <el-table-column label="GPS时间" align="center" prop="internationalization2"-->
<!-- width="150"/>-->
<el-table-column label="收发器ID" align="center" prop="machineId"
<el-table-column :label="t('web.TransceiverID')" align="center" prop="machineId"
width="150"/>
<el-table-column label="车牌号" align="center" prop="carLicense"
<el-table-column :label="t('web.licensePlateNumber')" align="center" prop="carLicense"
width="150"/>
<el-table-column label="纬度" align="center" prop="latitude"
<el-table-column :label="t('baseCar.car.latitude')" align="center" prop="latitude"
/>
<el-table-column label="经度" align="center" prop="longitude"
<el-table-column :label="t('baseCar.car.longitude')" align="center" prop="longitude"
/>
<!-- <el-table-column label="GPS里程" align="center" prop="gpsMileage"-->
<!-- />-->
<el-table-column label="海拔" align="center" prop="altitude"
<el-table-column :label="t('web.altitude')" align="center" prop="altitude"
/>
<el-table-column label="速度" align="center" prop="speed"
<el-table-column :label="t('web.speed')" align="center" prop="speed"
/>
<!-- <el-table-column label="方向" align="center" prop="course"-->
<!-- width="150"/>-->

@ -3,21 +3,21 @@
<!-- 搜索栏-->
<el-form v-show="showSearch" ref="queryRef" :rules="rules" :inline="true" :label-width=" locale ? '90px':'140px'"
:model="queryParams">
<el-form-item label="外胎号" prop="outerTireNumber">
<el-form-item :label="t('web.tireNumber')" prop="outerTireNumber">
<el-input
v-model="queryParams.outerTireNumber"
:placeholder="t('common.pleaseEnter') + '外胎号'"
:placeholder="t('common.pleaseEnter') "
clearable
style="width: 200px"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="GPS时间" prop="time">
<el-form-item :label="t('web.GPSTime')" prop="time">
<el-date-picker
v-model="dateRange"
end-placeholder="结束日期"
:end-placeholder="t('common.endDate')"
range-separator="-"
start-placeholder="开始日期"
:start-placeholder="t('common.startDate')"
type="datetimerange"
value-format="YYYY-MM-DD HH:mm:ss"
/>
@ -46,17 +46,17 @@
<!-- 表格主体-->
<el-table v-loading="loading" :data="postList" @row-click="rowClick">
<el-table-column align="center" fixed type="selection" width="55"/>
<el-table-column align="center" label="序号" prop="internationalization1"
type='index' width="55"/>
<el-table-column align="center" label="外胎号" prop="outerTireNumber"
<el-table-column align="center" :label="t('web.SerialNumber')" prop="internationalization1"
type='index' width="120"/>
<el-table-column align="center" :label="t('web.tireNumber')" prop="outerTireNumber"
/>
<el-table-column align="center" label="传感器ID" prop="sensorid"
<el-table-column align="center" :label="t('web.SensorID')" prop="sensorid"
/>
<el-table-column align="center" label="平均压力" prop="avgpressvalue"
<el-table-column align="center" :label="t('web.MeanPressure')" prop="avgpressvalue"
/>
<el-table-column align="center" label="平均温度" prop="avgtemperaturevalue"
<el-table-column align="center" :label="t('web.MeanTemperature')" prop="avgtemperaturevalue"
/>
<el-table-column align="center" label="平均速度" prop="avgspeed"
<el-table-column align="center" :label="t('web.AverageVelocity')" prop="avgspeed"
/>
</el-table>

@ -72,12 +72,12 @@
<div>
<el-table :data="props.row.baseCarList">
<el-table-column v-if="false" align="center" label="id" prop="id"/>
<el-table-column align="center" label="车牌号" prop="carLicense"/>
<el-table-column align="center" label="状态" prop="state">
<el-table-column align="center" :label="t('web.licensePlateNumber')" prop="carLicense"/>
<el-table-column align="center" :label="t('common.state')" prop="state">
<template #default="scope">
<el-tag :type="scope.row.state === 1 ? 'danger':'success'" class="ml-2">{{
scope.row.state === 1 ? '停用' : '启用'
scope.row.state === 1 ? t('web.deactivate') : t('web.enable')
}}
</el-tag>
</template>
@ -91,7 +91,7 @@
<el-table-column :label="t('baseCar.carQueue.state')" align="center" prop="state">
<template #default="scope">
<el-tag :type="scope.row.state === 1 ? 'danger':'success'" class="ml-2">{{
scope.row.state === 1 ? '停用' : '启用'
scope.row.state === 1 ? t('web.deactivate') : t('web.enable')
}}
</el-tag>
</template>
@ -180,7 +180,7 @@ const queryParams = ref({
//
const rules = {
title: [{required: true, message: "名称不能为空", trigger: "blur"}],
title: [{required: true, message: t('other.TheNameCannotBeEmpty'), trigger: "blur"}],
}
//

@ -70,14 +70,14 @@
<el-table-column align="center" fixed type="selection" width="55"/>
<el-table-column :label="t('baseCar.car.carLicense')" align="center" prop="carLicense" width="150"/>
<el-table-column :label="t('baseCar.car.team')" align="center" prop="carQueue"/>
<el-table-column align="center" label="挂车" prop="carQueue">
<el-table-column align="center" :label="t('web.trailer')" prop="carQueue">
<template #default="scope">
{{ scope.row.trailerNum === 0 ? '车头' : '挂' + scope.row.trailerNum }}
{{ scope.row.trailerNum === 0 ? t('web.locomotive') : '挂' + scope.row.trailerNum }}
</template>
</el-table-column>
<el-table-column :label="t('baseCar.car.model')" align="center" prop="carTypeId"/>
<el-table-column :label="t('baseCar.car.deviceId')" align="center" prop="deviceId" width="150"/>
<el-table-column :label="t('baseCar.car.deviceBindTime')" align="center" prop="deviceBindTime" width="150"/>
<el-table-column :label="t('baseCar.car.deviceBindTime')" align="center" prop="deviceBindTime" width="160"/>
<el-table-column :label="t('common.createTime')" align="center" prop="createTime" width="160"/>
<el-table-column :label="t('common.createBy')" align="center" prop="createName" width="150"/>
<el-table-column :label="t('option.option')" align="center" class-name="small-padding fixed-width" fixed="right"
@ -88,14 +88,14 @@
type="text"
@click="SetTrailer(scope.row)"
>
设置挂车
{{ t('web.SetUpTrailer') }}
</el-button>
<el-button
icon="Finished"
type="text"
@click="handleBang(scope.row.id)"
>
绑定接收器
{{ t('web.BindingReceiver') }}
</el-button>
</template>
</el-table-column>
@ -110,9 +110,9 @@
@pagination="getList"
/>
<el-dialog v-model="bangOpen" append-to-body title="绑定接收器" width="1000px" @close="()=>{bindValue='';bindInput=''}">
<el-dialog v-model="bangOpen" append-to-body :title="t('web.BindingReceiver')" width="1000px" @close="()=>{bindValue='';bindInput=''}">
<el-input v-model="bindInput" style="width:200px"/>
<el-button type="primary" @click="bindSearch"></el-button>
<el-button type="primary" @click="bindSearch">{{ t('option.search') }}</el-button>
<el-table ref="bindRef" v-loading="loading" :data="bindList">
<el-table-column align="center" width="25">
<template #default="scope">
@ -122,11 +122,11 @@
</el-radio-group>
</template>
</el-table-column>
<el-table-column align="center" label="物联网卡号" prop="internetThingsNo" width="150"/>
<el-table-column align="center" label="设备类型" prop="deviceType">
<el-table-column align="center" :label="t('web.InternetOfThingsCardNumber')" prop="internetThingsNo" width="150"/>
<el-table-column align="center" :label="t('baseDevice.baseDevice.deviceType')" prop="deviceType">
<template #default="scope">
{{ scope.row.deviceType === 0 ? 'GPS接收机' : '' }}
{{ scope.row.deviceType === 1 ? '胎压传感器' : '' }}
{{ scope.row.deviceType === 0 ? t('web.GPSReceiver') : '' }}
{{ scope.row.deviceType === 1 ? t('web.TirePressureSensor') : '' }}
</template>
</el-table-column>
</el-table>
@ -194,10 +194,10 @@
</el-dialog>
<!--设置挂车-->
<el-dialog v-model="dialogOpen1" append-to-body title="设置挂车" width="1000px">
<el-dialog v-model="dialogOpen1" append-to-body :title="t('web.SetUpTrailer')" width="1000px">
<el-form :inline="true" :label-width=" locale ? '110px':'170px'">
<el-form-item label="所属车型">
<el-form-item :label="t('baseCar.car.model')">
<el-select
v-model="SetTrailerForm.carTypeId"
:placeholder="t('common.PleaseSelect') "
@ -212,7 +212,7 @@
/>
</el-select>
</el-form-item>
<el-form-item label="布局挂数">
<el-form-item :label="t('baseCar.car.trailerNum')">
<el-select
v-model="SetTrailerForm.trailerNum"
:placeholder="t('common.PleaseSelect') "
@ -227,7 +227,7 @@
/>
</el-select>
</el-form-item>
<el-form-item label="车牌号">
<el-form-item :label="t('web.numberPlate')">
<el-input
v-model="SetTrailerForm.carLicense"
:placeholder="t('common.pleaseEnter') + t('baseCar.car.carLicense')"
@ -243,15 +243,15 @@
<el-table :data="postList1">
<el-table-column align="center" fixed type="selection" width="55"/>
<el-table-column label="布局挂数" align="center" prop="carLicense" width="150">
<el-table-column :label="t('baseCar.car.trailerNum')" align="center" prop="carLicense" width="150">
<template #default="scope">
{{ scope.row.trailerNum === 0 ? '车头' : '挂' + scope.row.trailerNum }}
{{ scope.row.trailerNum === 0 ? t('web.locomotive') : '挂' + scope.row.trailerNum }}
</template>
</el-table-column>
<el-table-column label="所属车型" align="center" prop="carTypeId"/>
<el-table-column label="车牌号" align="center" prop="carLicense"/>
<el-table-column label="车头牌号" align="center" prop="carLicenseParent" width="150"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right"
<el-table-column :label="t('baseCar.car.model')" align="center" prop="carTypeId"/>
<el-table-column :label="t('web.numberPlate')" align="center" prop="carLicense"/>
<el-table-column :label="t('baseCar.car.carLicenseParent')" align="center" prop="carLicenseParent" width="150"/>
<el-table-column :label="t('option.option')" align="center" class-name="small-padding fixed-width" fixed="right"
width="200">
<template #default="scope">
<el-button
@ -259,14 +259,14 @@
@click="delTrailer(scope.row.id)"
v-if="scope.row.trailerNum !== 0"
>
删除
{{ t('option.remove') }}
</el-button>
</template>
</el-table-column>
</el-table>
<template #footer>
<div class="dialog-footer">
<el-button @click="()=>{thisCarId ={};SetTrailerForm = {};dialogOpen1=false}">关闭</el-button>
<el-button @click="()=>{thisCarId ={};SetTrailerForm = {};dialogOpen1=false}">{{ t('option.close') }}</el-button>
</div>
</template>
</el-dialog>
@ -340,15 +340,15 @@ const SetTrailerForm = ref({
const option1 = [
{
value: 1,
label: '挂1'
label: t('web.FirstTrailer')
},
{
value: 2,
label: '挂2'
label: t('web.SecondTrailer')
},
{
value: 3,
label: '挂3'
label: t('web.ThirdTrailer')
},
]
//
@ -365,13 +365,13 @@ const queryParams1 = ref({
//
const rules = {
carLicense: [{required: true, message: "车牌号不能为空", trigger: "blur"},
carLicense: [{required: true, message: t('other.TheLicensePlateNumberCannotBeEmpty'), trigger: "blur"},
{
pattern: /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z][A-Z][A-Z0-9]{4}[A-Z0-9挂学警港澳]$/,
message: '请輸入正确的格式',
message: t('other.PleaseEnterTheCorrectFormat'),
trigger: 'blur'
}],
carTypeId: [{required: true, message: "所属车型不能为空", trigger: "blur"}],
carTypeId: [{required: true, message: t('other.TheCarTypeCannotBeEmpty'), trigger: "blur"}],
}
//
@ -450,7 +450,7 @@ const saveTrailer = () => {
carLicenseParent: thisCarId.value.carLicense,
carQueueId: thisCarId.value.carQueueId, ...SetTrailerForm.value,
}).then(val => {
proxy.$modal.msgSuccess('保存成功');
proxy.$modal.msgSuccess(t('web.SaveSuccessfully'));
getList();
listBaseCar({carLicenseParent:thisCarId.value.carLicense}).then(val => {
postList1.value = val.rows
@ -464,7 +464,7 @@ const delTrailer = (e) => {
return delBaseCar(e);
}).then(() => {
getList();
proxy.$modal.msgSuccess('删除成功');
proxy.$modal.msgSuccess(t('web.DeletedSuccessfully'));
listBaseCar({carLicenseParent:thisCarId.value.carLicense}).then(val => {
postList1.value = val.rows
})

@ -63,7 +63,7 @@
<template #default="scope">
<el-tag :type="scope.row.state === 1 ? 'danger':'success'" class="ml-2">{{
scope.row.state === 1 ? '停用' : '启用'
scope.row.state === 1 ? t('web.deactivate') : t('web.enable')
}}
</el-tag>
</template>
@ -106,7 +106,7 @@
<el-dialog v-model="open" :title="title" append-to-body width="80vw">
<el-form ref="postRef" :inline="true" :label-width=" locale ? '100px':'140px'" :model="form"
:rules="rules">
<el-form-item label="轮胎排数" prop="axleTotal">
<el-form-item :label="t('web.TireRow')" prop="axleTotal">
<el-select v-model="form.axleTotal" placeholder="Select" size="large" @change="TireRowChange">
<el-option
v-for="item in TireRow"
@ -116,11 +116,11 @@
/>
</el-select>
</el-form-item>
<el-form-item label="是否启用" prop="state">
<el-form-item :label="t('web.EnableOrNot')" prop="state">
<el-switch v-model="form.state" :active-value="0" :inactive-value="1"/>
</el-form-item>
</el-form>
<div style="width: 100%;text-align: center;height: 50px;line-height: 50px">轮胎布局图</div>
<div style="width: 100%;text-align: center;height: 50px;line-height: 50px">{{ t('web.TyreLayout') }}</div>
<div style="width: 100%;height: 80px;background-color: #eee">
<el-select v-for="(item,index) in TireRowInfo"
v-model="TireRowInfo[index]"
@ -211,27 +211,27 @@ const title = ref("");
const TireRow = [
{
value: 1,
label: '一排'
label: t('web.oneRow')
},
{
value: 2,
label: '二排'
label: t('web.SecondRow')
},
{
value: 3,
label: '三排'
label: t('web.ThreeRow')
},
{
value: 4,
label: '四排'
label: t('web.FourRow')
},
{
value: 5,
label: '五排'
label: t('web.FiveRow')
},
{
value: 6,
label: '六排'
label: t('web.SixRow')
},
]
//
@ -241,11 +241,11 @@ const TireRowInfo = ref([
const TireRowOptions = [
{
label: '单胎',
label: t('web.SingleTyre'),
value: 1
},
{
label: '双胎',
label: t('web.DoubleTyre'),
value: 2
}
]
@ -284,8 +284,6 @@ const queryParams = ref({
const rules = {
axleTotal: [{required: true, message: "请选择轮胎排数", trigger: "blur"}],
type: [{required: true, message: "轮胎型号不能为空", trigger: "blur"}],
serialNumber: [{required: true, message: "轮胎编号不能为空", trigger: "blur"}],
depth: [{required: true, message: "花纹深度不能为空", trigger: "blur"}],
}
//

@ -99,19 +99,19 @@
<el-table-column align="center" fixed type="selection" width="55"/>
<el-table-column :label="t('baseDevice.baseDevice.internetThingsNo')" align="center" prop="internetThingsNo"
width="150"/>
<el-table-column align="center" label="SIM卡号" prop="simCode"
<el-table-column align="center" :label="t('web.SIMCardNumber')" prop="simCode"
width="150"/>
<el-table-column :label="t('baseDevice.baseDevice.deviceType')" align="center" prop="deviceType"
>
<template #default="scope">
{{ scope.row.deviceType === 0 ? 'GPS接收机' : '胎压传感器' }}
{{ scope.row.deviceType === 0 ? t('web.GPSReceiver') :t('web.TirePressureSensor') }}
</template>
</el-table-column>
<el-table-column :label="t('baseDevice.baseDevice.state')" align="center" prop="state"
>
<template #default="scope">
<el-tag :type="scope.row.state === 1 ? 'danger':'success'" class="ml-2">{{
scope.row.state === 1 ? '停用' : '启用'
scope.row.state === 1 ? t('web.deactivate') :t('web.enable')
}}
</el-tag>
</template>
@ -139,17 +139,17 @@
<el-form-item v-if="false" prop="id">
<el-input v-model="form.id"/>
</el-form-item>
<el-form-item label="物联卡卡号" prop="internetThingsNo">
<el-form-item :label="t('baseDevice.baseDevice.internetThingsNo')" prop="internetThingsNo">
<el-input
v-model="form.internetThingsNo"
:placeholder="t('common.pleaseEnter') + '物联卡卡号'"/>
:placeholder="t('common.pleaseEnter') "/>
</el-form-item>
<el-form-item label="手机卡号" prop="simCode">
<el-form-item :label="t('web.MobilePhoneCardNumber')" prop="simCode">
<el-input
v-model="form.simCode"
:placeholder="t('common.pleaseEnter') + '手机卡号'"/>
:placeholder="t('common.pleaseEnter') "/>
</el-form-item>
<el-form-item label="设备类型" prop="deviceType">
<el-form-item :label="t('baseDevice.baseDevice.deviceType')" prop="deviceType">
<el-select v-model="form.deviceType" :placeholder="t('common.PleaseSelect')" class="m-2">
<el-option
v-for="item in options"
@ -159,7 +159,7 @@
/>
</el-select>
</el-form-item>
<el-form-item label="是否可用" prop="state">
<el-form-item :label="t('web.AvailabilityOrNot')" prop="state">
<el-switch v-model="form.state" :active-value="0" :inactive-value="1"/>
</el-form-item>
</el-form>
@ -192,21 +192,21 @@ const {proxy} = getCurrentInstance();
const options = [
{
value: 0,
label: 'GPS接收机',
label: t('web.GPSReceiver'),
},
{
value: 1,
label: '胎压传感器',
label: t('web.TirePressureSensor'),
},
]
const options1 = [
{
value: 0,
label: '启用',
label: t('web.enable'),
},
{
value: 1,
label: '停用',
label: t('web.deactivate'),
},
]

@ -6,7 +6,7 @@
<el-form-item v-if="false" prop="id">
<el-input v-model="form.id"/>
</el-form-item>
<el-form-item label="选择车辆" prop="internationalization8">
<el-form-item :label="t('web.SelectAVehicle')" prop="internationalization8">
<el-cascader
v-model="carIds"
:options="options"
@ -14,22 +14,22 @@
clearable
@change="cascaderChange"/>
</el-form-item>
<el-form-item label="第一轴高气压阀值" prop="z1PressureHigh;">
<el-form-item :label="t('web.FirstShaftHighPressureThreshold')" prop="z1PressureHigh;">
<el-input-number v-model="form.z1PressureHigh" :min="0" :step="5"/>
</el-form-item>
<el-form-item label="第一轴低气压阀值" prop="z1PressureLow">
<el-form-item :label="t('web.FirstShaftLowPressureThreshold')" prop="z1PressureLow">
<el-input-number v-model="form.z1PressureLow" :min="0" :step="5"/>
</el-form-item>
<el-form-item label="其他轴高气压阀值" prop="zPressureHigh">
<el-form-item :label="t('web.HighPressureThresholdForOtherShafts')" prop="zPressureHigh">
<el-input-number v-model="form.zPressureHigh" :min="0" :step="5"/>
</el-form-item>
<el-form-item label="其他轴低气压阀值" prop="zPressureLow">
<el-form-item :label="t('web.LowPressureThresholdsForOtherShafts')" prop="zPressureLow">
<el-input-number v-model="form.zPressureLow" :min="0" :step="5"/>
</el-form-item>
<el-form-item label="高温阀值" prop="temperatureHigh">
<el-form-item :label="t('web.HighTemperatureThreshold')" prop="temperatureHigh">
<el-input-number v-model="form.temperatureHigh" :min="0" :step="5"/>
</el-form-item>
<el-form-item label="设置生效时间" prop="time">
<el-form-item :label="t('web.SetEffectiveTime')" prop="time">
<el-date-picker
v-model="form.time"
placeholder="选择日期"
@ -37,7 +37,7 @@
/>
</el-form-item>
<el-form-item label=" ">
<el-button icon="Search" type="primary" @click="handleQuery"></el-button>
<el-button icon="Search" type="primary" @click="handleQuery">{{ t('web.CreateImmediately') }}</el-button>
<el-button icon="Refresh" @click="resetQuery">{{ t('option.reset') }}</el-button>
</el-form-item>
</el-form>

@ -3,23 +3,23 @@
<!-- 搜索栏-->
<el-form v-show="showSearch" ref="queryRef" :inline="true" :label-width=" locale ? '90px':'140px'"
:model="queryParams">
<el-form-item label="车牌号" prop="carLicense">
<el-form-item :label="t('web.numberPlate')" prop="carLicense">
<el-input
v-model="queryParams.carLicense"
:placeholder=" t('common.pleaseEnter') + '车牌号'"
:placeholder=" t('common.pleaseEnter') "
clearable
style="width: 200px"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="时间" prop="internationalization2">
<el-form-item :label="t('web.time')" prop="internationalization2">
<el-date-picker
v-model="dateRange"
value-format="YYYY-MM-DD"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:start-placeholder="t('common.startDate')"
:end-placeholder="t('common.endTime')"
></el-date-picker>
</el-form-item>
<el-form-item label=" ">
@ -38,7 +38,7 @@
plain
type="success"
@click="handleUpdate"
>报警处理
>{{ t('web.AlarmProcessing') }}
</el-button>
</el-col>
<el-col :span="1.5">
@ -57,25 +57,25 @@
<!-- 表格主体-->
<el-table v-loading="loading" :data="postList" @selection-change="handleSelectionChange">
<el-table-column align="center" fixed type="selection" width="55"/>
<el-table-column align="center" label="轮胎号" prop="outerTireNumber"
<el-table-column align="center" :label="t('web.tireNumber')" prop="outerTireNumber"
width="150"/>
<el-table-column align="center" label="品牌" prop="brand"
<el-table-column align="center" :label="t('web.brand')" prop="brand"
/>
<el-table-column align="center" label="型号" prop="size"
<el-table-column align="center" :label="t('web.specificationAndModel')" prop="size"
/>
<el-table-column align="center" label="压力" prop="pressvalue"
<el-table-column align="center" :label="t('web.pressure')" prop="pressvalue"
/>
<el-table-column align="center" label="温度" prop="temperaturevalue"
<el-table-column align="center" :label="t('web.temperature')" prop="temperaturevalue"
/>
<el-table-column align="center" label="报警信息" prop="internationalization7" width="200"
<el-table-column align="center" :label="t('web.AlarmInformation')" prop="internationalization7" width="200"
>
<template #default="scope">
<el-tag style="margin-right: 4px" class="ml-2" type="danger" v-if="scope.row.ispresshigh === '1'"> </el-tag>
<el-tag style="margin-right: 4px" class="ml-2" type="danger" v-if="scope.row.ispresslower === '1'"> </el-tag>
<el-tag class="ml-2" type="danger" v-if="scope.row.istemperaturehigh === '1'"> </el-tag>
<el-tag style="margin-right: 4px" class="ml-2" type="danger" v-if="scope.row.ispresshigh === '1'"> {{ t('web.HighPressure') }} </el-tag>
<el-tag style="margin-right: 4px" class="ml-2" type="danger" v-if="scope.row.ispresslower === '1'"> {{ t('web.LowPressure') }} </el-tag>
<el-tag class="ml-2" type="danger" v-if="scope.row.istemperaturehigh === '1'"> {{ t('web.HighTemperature') }} </el-tag>
</template>
</el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime" width="160">
<el-table-column :label="t('common.createTime')" align="center" prop="createTime" width="160">
<template #default="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>

@ -3,10 +3,10 @@
<el-row :gutter="12">
<el-col :offset="1" :span="5">
<el-card shadow="hover" style="margin:24px 0 ">
<h2>车辆信息</h2>
<p>车队名称<span>{{ cardInfo.name }}</span></p>
<h2>{{ t('web.VehicleInformation') }}</h2>
<p>{{ t('web.FleetName') }}<span>{{ cardInfo.name }}</span></p>
</el-card>
<h2>实时位置</h2>
<h2>{{ t('web.RealTimePosition') }}</h2>
<div id="container" class="container1"></div>
<!-- <div style="width: 25%;text-align: center;margin-top: 14px">-->
<!-- <img height="70" src="@/assets/images/tyre.png" style="" width="70"/>-->
@ -118,10 +118,10 @@
type="card"
@tab-click="resetQuery"
>
<el-tab-pane label="有车载设备车辆" name="有车载设备车辆">
<el-tab-pane :label="t('web.VehiclesWithOnBoardEquipment')" name="有车载设备车辆">
<el-form ref="queryRef" :inline="true" :model="queryParams"
label-width="60px" max-height="800">
<el-form-item label="车牌号" prop="carLicense">
<el-form-item label="t('web.licensePlateNumber')" prop="carLicense">
<el-input
v-model="queryParams.carLicense"
clearable
@ -166,73 +166,73 @@
<el-descriptions :column="2" border class="margin-top" width="150px">
<el-descriptions-item>
<template #label>
胎号
{{ t('web.tireNumber') }}
</template>
{{ tyreInfo.outerTireNumber }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
轮位描述
{{ t('web.WheelPositionDescription') }}
</template>
{{ tyreInfo.tyrePosition }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
传感器ID
{{ t('web.SensorID') }}
</template>
{{ tyreInfo.sensorId }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
品牌
{{ t('web.brand') }}
</template>
{{ tyreInfo.brand }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
总里程
{{ t('web.TotalMileage') }}
</template>
{{ tyreInfo.internationalization2 }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
规格
{{ t('web.specification') }}
</template>
{{ tyreInfo.size }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
花纹
{{ t('web.pattern') }}
</template>
{{ tyreInfo.pattern }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
当前花纹深度
{{ t('web.depthOfLatestPattern') }}
</template>
{{ tyreInfo.currentTextureDepth }}mm
</el-descriptions-item>
<el-descriptions-item>
<template #label>
电池电压
{{ t('web.BatteryVoltage') }}
</template>
{{ tyreInfo.internationalization2 }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
温度
{{ t('web.temperature') }}
</template>
{{ tyreInfo.temperature }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
压力
{{ t('web.pressure') }}
</template>
{{ tyreInfo.pressure }}
</el-descriptions-item>
<el-descriptions-item>
<template #label>
安装时间
{{ t('web.InstallationTime') }}
</template>
{{ tyreInfo.internationalization2 }}
</el-descriptions-item>

@ -3,21 +3,21 @@
<el-form ref="queryRef" :inline="true" :label-width=" locale ? '90px':'140px'" :model="queryParams"
style="margin-top: 24px">
<el-form-item label="车牌号" prop="carLicense">
<el-form-item :label="t('web.licensePlateNumber')" prop="carLicense">
<el-cascader
v-model="queryParams.carLicense"
:options="options"
:placeholder=" t('common.pleaseEnter') + '车牌号'"
:placeholder=" t('common.pleaseEnter') "
:props="cascaderProps"
clearable
@change="cascaderChange"/>
</el-form-item>
<el-form-item label="时间" prop="internationalization3">
<el-form-item :label="t('web.time')" prop="internationalization3">
<el-date-picker
v-model="dateRange"
end-placeholder="结束时间"
:end-placeholder="t('common.endTime')"
range-separator="到"
start-placeholder="开始时间"
:start-placeholder="t('common.startingTime')"
type="datetimerange"
/>
</el-form-item>
@ -27,9 +27,9 @@
</el-form-item>
</el-form>
<el-button class="add" @click="createPolygon"></el-button>
<el-button class="clear" @click="clearPolygon"></el-button>
<el-button class="clear" type="primary" @click="getLine"></el-button>
<el-button class="add" @click="createPolygon">{{ t('web.NewFence') }}</el-button>
<el-button class="clear" @click="clearPolygon">{{ t('web.empty') }}</el-button>
<el-button class="clear" type="primary" @click="getLine">{{ t('option.save') }}</el-button>
<div id="container4"></div>
</div>
</template>

@ -3,21 +3,21 @@
<el-form ref="queryRef" :inline="true" :label-width=" locale ? '90px':'140px'" :model="queryParams"
style="margin-top: 24px">
<el-form-item label="车牌号" prop="carLicense">
<el-form-item :label="t('web.licensePlateNumber')" prop="carLicense">
<el-input
v-model="queryParams.carLicense"
:placeholder=" t('common.pleaseEnter') + '车牌号'"
:placeholder=" t('common.pleaseEnter')"
clearable
style="width: 200px"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="时间" prop="dateRange">
<el-form-item :label="t('web.time')" prop="dateRange">
<el-date-picker
v-model="dateRange"
end-placeholder="结束日期"
:end-placeholder="t('common.endDate')"
range-separator="-"
start-placeholder="开始日期"
:start-placeholder="t('common.startDate')"
type="daterange"
value-format="YYYY-MM-DD"
></el-date-picker>

@ -34,9 +34,9 @@ export default defineConfig(({mode, command}) => {
// open: true,
proxy: {
'/dev-api': {
// target: 'https://ticptest.tercelo.com/dev-api',
target: 'https://ticptest.tercelo.com/dev-api',
// target: 'http://47.94.93.46/dev-api',
target: 'http://10.11.41.249:8080',
// target: 'http://10.11.41.249:8080',
// target: 'http://localhost:8080',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')

Loading…
Cancel
Save