token问题修复3
This commit is contained in:
@ -86,9 +86,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
|
||||||
const token = urlParams.get('token');
|
|
||||||
this.$toast("司机编辑打印token",token)
|
|
||||||
this.id = this.$route.params?.id;
|
this.id = this.$route.params?.id;
|
||||||
this.driverName = this.$route.params?.name;
|
this.driverName = this.$route.params?.name;
|
||||||
this.driverPhone = this.$route.params?.phone;
|
this.driverPhone = this.$route.params?.phone;
|
||||||
|
@ -66,9 +66,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
|
||||||
const token = urlParams.get('token');
|
|
||||||
this.$toast("司机管理打印token",token)
|
|
||||||
this.getDriverList()
|
this.getDriverList()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
@ -153,8 +153,7 @@ export default {
|
|||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
const token = urlParams.get('token');
|
const token = urlParams.get('token');
|
||||||
this.$toast("车辆编辑打印token" + token)
|
this.$toast("车辆编辑打印token" + token)
|
||||||
this.id=this.$route.params?.id || ''
|
this.id=this.$route.params?.id
|
||||||
this.$toast('id:' + this.id)
|
|
||||||
const selectElement = document.getElementById('mySelect');
|
const selectElement = document.getElementById('mySelect');
|
||||||
selectElement.addEventListener('change', function() {
|
selectElement.addEventListener('change', function() {
|
||||||
this.selectedOption=selectElement.value;
|
this.selectedOption=selectElement.value;
|
||||||
@ -180,9 +179,7 @@ export default {
|
|||||||
this.isJoin=result.hasPolymerization.code
|
this.isJoin=result.hasPolymerization.code
|
||||||
this.selectedOption=result.vehicleType;
|
this.selectedOption=result.vehicleType;
|
||||||
this.serviceIds=result.serviceIds
|
this.serviceIds=result.serviceIds
|
||||||
// console.log("num",this.carNum,this.isJoin)
|
|
||||||
}
|
}
|
||||||
this.$toast('codeid:' + this.id)
|
|
||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
// console.log("拖车服务",e)
|
// console.log("拖车服务",e)
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<div class="codeLeft">{{item.plateNumber}} / {{item.vehicleTypeString}}</div>
|
<div class="codeLeft">{{item.plateNumber}} / {{item.vehicleTypeString}}</div>
|
||||||
<div class="twoBtn">
|
<div class="twoBtn">
|
||||||
<button class="del" @click="deleteItem(item.vehicleId)">删除</button>
|
<button class="del" @click="deleteItem(item.vehicleId)">删除</button>
|
||||||
<button class="revise" @click="updateVehlcle(item)">修改</button>
|
<button class="revise" @click="updateVehicle(item)">修改</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="carType">{{ item.serviceName }}</div>
|
<div class="carType">{{ item.serviceName }}</div>
|
||||||
@ -57,11 +57,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$toast('window.location', window.location)
|
this.$toast('window.location'+window.location)
|
||||||
this.getVehicleList();
|
this.getVehicleList();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
updateVehlcle(item){
|
updateVehicle(item){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name:'vehicleAdd',
|
name:'vehicleAdd',
|
||||||
params:{
|
params:{
|
||||||
|
Reference in New Issue
Block a user