选择党组织

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>
</div>
<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"/>
</AiPagePicker>
</div>

View File

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