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