Commit 6ae03e6a authored by xxx's avatar xxx

1

parent 340bdb57
...@@ -58,7 +58,17 @@ ...@@ -58,7 +58,17 @@
<script> <script>
import { httpGet, httpPostForJson, putForJson, httpDelForJson} from "@/common/httpBean.js" import { httpGet, httpPostForJson, putForJson, httpDelForJson} from "@/common/httpBean.js"
import {carsInforQuery,failureDeclarationAdd,vehicleInformationQuery,personalCenterInforQuery,faultInforQuery,carRealTimeLocationQuery2,faultDayAdd,faultMonthAdd,faultYearAdd} from "@/axios/api.js" import {carsInforQuery,
failureDeclarationAdd,
vehicleInformationQuery,
vehicleInformationUpdate,
personalCenterInforQuery,
faultInforQuery,
carRealTimeLocationQuery2,
faultDayAdd,
faultMonthAdd,
faultYearAdd
} from "@/axios/api.js"
export default { export default {
data() { data() {
...@@ -180,6 +190,16 @@ export default { ...@@ -180,6 +190,16 @@ export default {
this.getLocationText = '点击获取车辆位置'; this.getLocationText = '点击获取车辆位置';
this.zuobiaoShow = false; this.zuobiaoShow = false;
} }
});
//修改车辆状态
httpGet(vehicleInformationQuery,{number:this.from.carcode}).then((res) => {
if(res.code == 200){
putForJson(vehicleInformationUpdate,{id:res.data.content[0].id,status:1}).then((res) => {
this.$nextTick(()=>{
window.location.reload();
})
});
}
}); });
}, },
}, },
......
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