选择党组织
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user