gatewayId

This commit is contained in:
shijingjing
2022-09-29 16:35:45 +08:00
parent 7167b61241
commit 84b74c6f19

View File

@@ -12,7 +12,7 @@
<h2>卡口选择</h2> <h2>卡口选择</h2>
</div> </div>
<div class="form-item__right"> <div class="form-item__right">
<AiSelect v-model="form.gatewayId" :list="getewayData" class="select"></AiSelect> <AiSelect v-model="form.gatewayId" :list="getewayData" :disabled="scene.length" class="select"></AiSelect>
</div> </div>
</div> </div>
</div> </div>
@@ -367,6 +367,7 @@ export default {
startAreaId: '', startAreaId: '',
startAreaName: '', startAreaName: '',
pageShow: false, pageShow: false,
scene: '',
} }
}, },
@@ -383,7 +384,8 @@ export default {
this.form.id = o?.id this.form.id = o?.id
this.getInfo(o.id) this.getInfo(o.id)
} }
this.form.gatewayId = decodeURIComponent(o.scene) || '' this.scene = decodeURIComponent(o.scene) || ''
console.log(this.scene,'scene')
}, },
onShow() { onShow() {
this.$dict.load(['EP_travelType']).then(()=> { this.$dict.load(['EP_travelType']).then(()=> {
@@ -413,6 +415,7 @@ export default {
getAuth() { getAuth() {
this.$nextTick(() => { this.$nextTick(() => {
this.token && this.getUserInfo() this.token && this.getUserInfo()
this.form.gatewayId = this.scene
this.pageShow = true this.pageShow = true
}) })
}, },