Commit e90645d0 authored by zhanglw's avatar zhanglw

调整

parent ae85b291
...@@ -87,33 +87,33 @@ export default { ...@@ -87,33 +87,33 @@ export default {
} }
}, },
methods: { methods: {
loadData(value,carclass) { loadData(value, carclass) {
let byValue = value; let byValue = value;
this.showDecide = true; this.showDecide = true;
httpGet(vehicleInformationQuery,{number:byValue}).then((res) => { httpGet(vehicleInformationQuery, {number: byValue}).then((res) => {
if(res.code == 200){ if (res.code == 200) {
if(res.data.totalElements == 0){ if (res.data.totalElements == 0) {
return return
}else{ } else {
this.vehicleInformationData = res.data.content[0]; this.vehicleInformationData = res.data.content[0];
} }
} }
}); });
if(carclass == '铲车'){ if (carclass == '铲车') {
httpGet(apiManmadesChanCheRealQuery,{number:byValue}).then((res) => { httpGet(apiManmadesChanCheRealQuery, {number: byValue}).then((res) => {
if(res.code == 200 && res.data.length != 0){ if (res.code == 200 && res.data.length != 0) {
this.realTimeData = res.data[0]; this.realTimeData = res.data[0];
} }
}); });
}else{ } else {
httpGet(apiManmadesRealQuery,{number:byValue}).then((res) => { httpGet(apiManmadesRealQuery, {number: byValue}).then((res) => {
if(res.length != 0){ if (res.length != 0) {
this.realTimeData = res[0]; this.realTimeData = res[0];
} }
}); });
} }
}, },
carInCloseFn(){ carInCloseFn(){
this.showDecide = false; this.showDecide = false;
this.$parent.selectFunction = 0; this.$parent.selectFunction = 0;
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
var day = date.getDate(); //日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31) var day = date.getDate(); //日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
var hours = date.getHours(); //小时 ,返回 Date 对象的小时 (0 ~ 23) var hours = date.getHours(); //小时 ,返回 Date 对象的小时 (0 ~ 23)
var minutes = date.getMinutes(); //分钟 ,返回 Date 对象的分钟 (0 ~ 59) var minutes = date.getMinutes(); //分钟 ,返回 Date 对象的分钟 (0 ~ 59)
var seconds = date.getSeconds(); //秒 ,返回 Date 对象的秒数 (0 ~ 59) var seconds = date.getSeconds(); //秒 ,返回 Date 对象的秒数 (0 ~ 59)
//修改月份格式 //修改月份格式
if (month >= 1 && month <= 9) { if (month >= 1 && month <= 9) {
month = "0" + month; month = "0" + month;
...@@ -200,9 +200,9 @@ export default { ...@@ -200,9 +200,9 @@ export default {
.carInContent_left_title{ .carInContent_left_title{
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
background-image:-webkit-linear-gradient(bottom, #59C8FF, #FAFEFF); background-image:-webkit-linear-gradient(bottom, #59C8FF, #FAFEFF);
-webkit-background-clip:text; -webkit-background-clip:text;
-webkit-text-fill-color:transparent; -webkit-text-fill-color:transparent;
} }
.carInFrom_content{ .carInFrom_content{
margin-top: 3.5vh; margin-top: 3.5vh;
...@@ -273,9 +273,9 @@ export default { ...@@ -273,9 +273,9 @@ export default {
.carInContent_left_title{ .carInContent_left_title{
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
background-image:-webkit-linear-gradient(bottom, #59C8FF, #FAFEFF); background-image:-webkit-linear-gradient(bottom, #59C8FF, #FAFEFF);
-webkit-background-clip:text; -webkit-background-clip:text;
-webkit-text-fill-color:transparent; -webkit-text-fill-color:transparent;
} }
.carInFrom_content{ .carInFrom_content{
margin-top: 15px; margin-top: 15px;
...@@ -303,4 +303,4 @@ export default { ...@@ -303,4 +303,4 @@ export default {
} }
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment