diff --git a/src/project/pingchang/AppGetewayRegister/getewayAdd.vue b/src/project/pingchang/AppGetewayRegister/getewayAdd.vue index ea1ba3d..e9398bb 100644 --- a/src/project/pingchang/AppGetewayRegister/getewayAdd.vue +++ b/src/project/pingchang/AppGetewayRegister/getewayAdd.vue @@ -97,7 +97,7 @@
* -

出发地区

+

出发地

@@ -140,7 +140,7 @@
-

车次/航班

+

车次/车牌/航班

@@ -180,7 +180,7 @@
* -

目的地区

+

目的地

@@ -424,7 +424,8 @@ export default { getAuth() { this.$nextTick(() => { - if(this.token.length) { + // if(this.token) { + this.token && this.getUserInfo() this.form.gatewayId = this.scene this.getewayList() this.$forceUpdate() @@ -433,7 +434,7 @@ export default { this.form.gatewayName = item?.[0].label },400) this.pageShow = true - } + // } }) }, @@ -567,11 +568,11 @@ export default { } if (!this.startAreaId) { - return this.$toast('请选择出发地区') + return this.$toast('请选择出发地') } if (this.startAreaId.substr(this.startAreaId.length - 3, 3) === '000') { - return this.$toast('出发地区必须选到村或社区') + return this.$toast('出发地必须选到村或社区') } // if (!this.form.startAddress) { @@ -591,11 +592,11 @@ export default { } if (!this.form.arriveAreaName) { - return this.$toast('请选择目的地区') + return this.$toast('请选择目的地') } if (this.form.arriveAreaId.substr(this.form.arriveAreaId.length - 3, 3) === '000') { - return this.$toast('目的地区必须选到村或社区') + return this.$toast('请尽量填室至小区、楼栋号') } // if (!this.form.arriveAddress) { @@ -626,7 +627,7 @@ export default { } } - if (!this.form.companionCount) { + if (!this.form.companionCount || this.form.companionCount == 0) { this.form.companionCount = 0 this.form.companionList = [] } else {