选择党组织

This commit is contained in:
shijingjing
2022-11-14 16:45:22 +08:00
parent 045ef0fe5b
commit 0df80b87fb
2 changed files with 7 additions and 3 deletions

View File

@@ -42,7 +42,7 @@
<h2>党组织</h2> <h2>党组织</h2>
</div> </div>
<div class="form-item__right"> <div class="form-item__right">
<AiPagePicker type="custom" @select="handleSelectParty" :ops="{url:'./selectPartyOrg',label:'name',}"> <AiPagePicker type="custom" @select="handleSelectParty" :ops="{url:`./selectPartyOrg?id=${form.partyOrgId}`,label:'name',}">
<AiMore v-model="form.partyOrgName"/> <AiMore v-model="form.partyOrgName"/>
</AiPagePicker> </AiPagePicker>
</div> </div>

View File

@@ -42,9 +42,13 @@
parentId: '', parentId: '',
} }
}, },
onLoad() { onLoad(o) {
this.getPartyOrg() this.getPartyOrg()
this.SelectParty = uni.getStorageSync("lastSelectedParty") || {} if (o.id) {
this.SelectParty.id = o.id
} else {
this.SelectParty = uni.getStorageSync("lastSelectedParty") || {}
}
}, },
methods: { methods: {
getPartyOrg() { getPartyOrg() {