This commit is contained in:
shijingjing
2022-09-29 11:49:08 +08:00
parent 4e905d03d2
commit ef58ec52d2
4 changed files with 29 additions and 12 deletions

View File

@@ -301,6 +301,8 @@
<div class="btn-wrapper">
<div class="btn" hover-class="text-hover" @click="submit">提交</div>
</div>
<AiLogin ref="login"/>
</div>
</template>
@@ -375,7 +377,7 @@ export default {
},
computed: {
...mapState(['user'])
...mapState(['user','token'])
},
onLoad(o) {
@@ -383,7 +385,6 @@ export default {
this.form.id = o?.id
this.getInfo(o.id)
}
this.form.gatewayId = decodeURIComponent(o.scene) || ''
},
onShow() {
this.$areaId = this.user.$areaId
@@ -391,6 +392,10 @@ export default {
this.travelTypeDict = this.$dict.getDict('EP_travelType')
})
this.getewayList()
if(!this.token) {
this.$refs.login.show()
this.form.gatewayId = decodeURIComponent(o.scene) || ''
}
},
watch: {