This commit is contained in:
yanran200730
2022-05-27 09:04:05 +08:00
parent b56c159310
commit 94c725345d

View File

@@ -30,15 +30,16 @@
<h2>照片列表</h2>
<div class="right">
<picker mode="date" @change="onChange">
<div class="right-item" style="margin-right: 0;">
<div class="right-item">
<span>{{ date || '所有日期' }}</span>
<image src="./images/down.png" />
</div>
</picker>
<!-- <div class="right-item" style="margin-right: 0;">
<span>所有干部</span>
<div class="right-item" style="margin-right: 0;">
<span v-if="userId"><AiOpenData v-if="userId" type="userName" :openid="userId"></AiOpenData></span>
<span v-else>所有干部</span>
<image src="./images/down.png" />
</div> -->
</div>
</div>
</div>
<div class="photo-item__wrapper">
@@ -80,7 +81,8 @@
id: '',
current: 1,
totalInfo: {},
isMore: false
isMore: false,
userId: ''
}
},
@@ -124,6 +126,28 @@
})
},
toChoose () {
this.$loading()
this.selectPrivilegedContact({
fromDepartmentId: 0,
mode: 'single',
selectedOpenUserIds: this.userId ? [this.userId] : ''
}).then(res => {
console.log(res)
uni.hideLoading()
this.userId = res.userList.map(e => e.openUserId) || []
this.isMore = false
this.current = 1
this.$nextTick(() => {
this.getList()
})
}).catch(() => {
uni.hideLoading()
})
},
toEdit () {
if (!this.list.length) {
return this.$u.toast('相册无照片,请上传照片')