Commit e90645d0 authored by zhanglw's avatar zhanglw

调整

parent ae85b291
......@@ -87,33 +87,33 @@ export default {
}
},
methods: {
loadData(value,carclass) {
let byValue = value;
this.showDecide = true;
httpGet(vehicleInformationQuery,{number:byValue}).then((res) => {
if(res.code == 200){
if(res.data.totalElements == 0){
return
}else{
this.vehicleInformationData = res.data.content[0];
}
}
});
if(carclass == '铲车'){
httpGet(apiManmadesChanCheRealQuery,{number:byValue}).then((res) => {
if(res.code == 200 && res.data.length != 0){
this.realTimeData = res.data[0];
}
});
}else{
httpGet(apiManmadesRealQuery,{number:byValue}).then((res) => {
if(res.length != 0){
this.realTimeData = res[0];
}
});
}
},
loadData(value, carclass) {
let byValue = value;
this.showDecide = true;
httpGet(vehicleInformationQuery, {number: byValue}).then((res) => {
if (res.code == 200) {
if (res.data.totalElements == 0) {
return
} else {
this.vehicleInformationData = res.data.content[0];
}
}
});
if (carclass == '铲车') {
httpGet(apiManmadesChanCheRealQuery, {number: byValue}).then((res) => {
if (res.code == 200 && res.data.length != 0) {
this.realTimeData = res.data[0];
}
});
} else {
httpGet(apiManmadesRealQuery, {number: byValue}).then((res) => {
if (res.length != 0) {
this.realTimeData = res[0];
}
});
}
},
carInCloseFn(){
this.showDecide = false;
this.$parent.selectFunction = 0;
......@@ -125,7 +125,7 @@ export default {
var day = date.getDate(); //日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
var hours = date.getHours(); //小时 ,返回 Date 对象的小时 (0 ~ 23)
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) {
month = "0" + month;
......@@ -200,9 +200,9 @@ export default {
.carInContent_left_title{
font-size: 16px;
font-weight: 600;
background-image:-webkit-linear-gradient(bottom, #59C8FF, #FAFEFF);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
background-image:-webkit-linear-gradient(bottom, #59C8FF, #FAFEFF);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}
.carInFrom_content{
margin-top: 3.5vh;
......@@ -273,9 +273,9 @@ export default {
.carInContent_left_title{
font-size: 20px;
font-weight: 600;
background-image:-webkit-linear-gradient(bottom, #59C8FF, #FAFEFF);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
background-image:-webkit-linear-gradient(bottom, #59C8FF, #FAFEFF);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}
.carInFrom_content{
margin-top: 15px;
......@@ -303,4 +303,4 @@ export default {
}
}
</style>
\ No newline at end of file
</style>
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