|
@@ -164,7 +164,7 @@ export default {
|
|
|
}
|
|
|
return getCarList(params).then((res) => {
|
|
|
for (const car of res.data) {
|
|
|
- const imageIcon = that.imageIcon(car.categoryId === 2, car.status, car.onlineStatus === 1)
|
|
|
+ const imageIcon = that.imageIcon(car.categoryId === 2, car.status, car.onlineStatus === "1")
|
|
|
|
|
|
const carImage = {
|
|
|
image: imageIcon,
|
|
@@ -187,7 +187,7 @@ export default {
|
|
|
<div style='width:100%;height:40px;border-bottom: 1px solid #EFEFEF;position:relative;padding:0 12px;display:flex;align-items: center;justify-content:space-between;'>
|
|
|
<span style='font-size: 18px;font-weight: bold;margin-right:4px;'>${car.plateNumber}</span>
|
|
|
<span style='display:inline-block;font-size:12px;border: 1px solid #547CD5;border-radius: 2px;color:#547CD5;padding:1px 5px;'>${
|
|
|
- car.onlineStatus === 1 ? '在线' : '离线'
|
|
|
+ car.onlineStatus === "1" ? '在线' : '离线'
|
|
|
}</span>
|
|
|
</div>
|
|
|
<div style="width:100%;padding:4px 12px;">${car.depName}</div>
|
|
@@ -234,7 +234,7 @@ export default {
|
|
|
getCarInfo(that.ids).then((res) => {
|
|
|
const car = res.data
|
|
|
const carImage = {
|
|
|
- image: that.imageIcon(car.categoryId === 2, car.status, car.onlineStatus === 1),
|
|
|
+ image: that.imageIcon(car.categoryId === 2, car.status, car.onlineStatus === "1"),
|
|
|
size: [40, 40],
|
|
|
imageSize: [40, 40],
|
|
|
}
|
|
@@ -253,7 +253,7 @@ export default {
|
|
|
<div style='width:100%;height:40px;border-bottom: 1px solid #EFEFEF;position:relative;padding:0 12px;display:flex;align-items: center;justify-content:space-between;'>
|
|
|
<span style='font-size: 18px;font-weight: bold;margin-right:4px;'>${car.plateNumber}</span>
|
|
|
<span style='display:inline-block;font-size:12px;border: 1px solid #547CD5;border-radius: 2px;color:#547CD5;padding:1px 5px;'>${
|
|
|
- car.onlineStatus === 1 ? '在线' : '离线'
|
|
|
+ car.onlineStatus === "1" ? '在线' : '离线'
|
|
|
}</span>
|
|
|
</div>
|
|
|
<div style="width:100%;padding:4px 12px;">${car.depName}</div>
|