BUG 25910

This commit is contained in:
aixianling
2021-12-24 14:01:56 +08:00
parent 455404398e
commit 22ee8506a0

View File

@@ -79,7 +79,7 @@
<div class="line-bg"/>
<div class="title">
<span class="tips"/>承租人信息
<span class="select" @click="handleSelectUser('renter')">选择人员</span>
<AiPagePicker class="select" :selected.sync="houseInfo.renter">选择人员</AiPagePicker>
</div>
<div class="pad-l32">
<div class="item" v-for="(item, index) in houseInfo.renter" :key="index">
@@ -96,7 +96,7 @@
<div class="line-bg"/>
<div class="title">
<span class="tips"/>实际居住人员
<span class="select" @click="handleSelectUser('live')">选择人员</span>
<AiPagePicker class="select" :selected.sync="houseInfo.live">选择人员</AiPagePicker>
</div>
<div class="pad-l32">
<div class="item" v-for="(item, index) in houseInfo.live" :key="index">
@@ -153,25 +153,6 @@ export default {
methods: {
...mapActions(['selectEnterpriseContact']),
handleSelectUser(fieldDbName) {
if (this.lockSelector) return
this.lockSelector = true
this.selectEnterpriseContact({
fromDepartmentId: 0,
type: ["user"],
selectedUserIds: this.houseInfo[fieldDbName]?.map(e => e.id)
}).then(res => {
this.houseInfo[fieldDbName] = res?.userList || []
this.lockSelector = false
}).catch(() => {
this.lockSelector = false
})
},
toSelectUser() {
console.log(111)
uni.navigateTo({url: './selectResident'})
},
tableRelationSelect(name, index) {
this.tableName = name
this.tableIndex = index