筛选
This commit is contained in:
@@ -30,15 +30,16 @@
|
|||||||
<h2>照片列表</h2>
|
<h2>照片列表</h2>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<picker mode="date" @change="onChange">
|
<picker mode="date" @change="onChange">
|
||||||
<div class="right-item" style="margin-right: 0;">
|
<div class="right-item">
|
||||||
<span>{{ date || '所有日期' }}</span>
|
<span>{{ date || '所有日期' }}</span>
|
||||||
<image src="./images/down.png" />
|
<image src="./images/down.png" />
|
||||||
</div>
|
</div>
|
||||||
</picker>
|
</picker>
|
||||||
<!-- <div class="right-item" style="margin-right: 0;">
|
<div class="right-item" style="margin-right: 0;">
|
||||||
<span>所有干部</span>
|
<span v-if="userId"><AiOpenData v-if="userId" type="userName" :openid="userId"></AiOpenData></span>
|
||||||
|
<span v-else>所有干部</span>
|
||||||
<image src="./images/down.png" />
|
<image src="./images/down.png" />
|
||||||
</div> -->
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="photo-item__wrapper">
|
<div class="photo-item__wrapper">
|
||||||
@@ -80,7 +81,8 @@
|
|||||||
id: '',
|
id: '',
|
||||||
current: 1,
|
current: 1,
|
||||||
totalInfo: {},
|
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 () {
|
toEdit () {
|
||||||
if (!this.list.length) {
|
if (!this.list.length) {
|
||||||
return this.$u.toast('相册无照片,请上传照片')
|
return this.$u.toast('相册无照片,请上传照片')
|
||||||
|
|||||||
Reference in New Issue
Block a user