From a81f7559147ccbfcf5aa2c0fd3606f20447fd653 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Wed, 23 Aug 2023 13:43:11 +0800 Subject: [PATCH] =?UTF-8?q?token=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/driverAdd.vue | 3 --- src/views/index/driverManage.vue | 3 --- src/views/index/vehicleAdd.vue | 5 +---- src/views/index/vehicleManage.vue | 6 +++--- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/views/index/driverAdd.vue b/src/views/index/driverAdd.vue index e6327b88..b41c4fbb 100644 --- a/src/views/index/driverAdd.vue +++ b/src/views/index/driverAdd.vue @@ -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; diff --git a/src/views/index/driverManage.vue b/src/views/index/driverManage.vue index 764f391e..a2c1d7cf 100644 --- a/src/views/index/driverManage.vue +++ b/src/views/index/driverManage.vue @@ -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:{ diff --git a/src/views/index/vehicleAdd.vue b/src/views/index/vehicleAdd.vue index 8efa8f09..0a492b43 100644 --- a/src/views/index/vehicleAdd.vue +++ b/src/views/index/vehicleAdd.vue @@ -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) diff --git a/src/views/index/vehicleManage.vue b/src/views/index/vehicleManage.vue index 2046f035..cbfc0510 100644 --- a/src/views/index/vehicleManage.vue +++ b/src/views/index/vehicleManage.vue @@ -23,7 +23,7 @@
{{item.plateNumber}} / {{item.vehicleTypeString}}
- +
{{ item.serviceName }}
@@ -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:{