This commit is contained in:
shijingjing
2022-07-25 18:02:40 +08:00
parent 689c10e5c4
commit faea4c65bd
4 changed files with 39 additions and 48 deletions

View File

@@ -3,7 +3,7 @@
<AiTopFixed>
<div class="search">
<div class="searchBox">
<u-search placeholder="请输入任务名称" v-model="taskTitle" @search="searchBtn" @clear="taskTitle='',current=1, list=[],getList()" :show-action="false"></u-search>
<u-search placeholder="请输入任务名称" v-model="taskTitle" clearabled @search="searchBtn" @clear="taskTitle='',getList()" :show-action="false"></u-search>
</div>
<div class="filterBtn" @click="filterShow = true"><img src="./images/shaixuan.png" alt="">筛选</div>
</div>
@@ -41,7 +41,7 @@
<scroll-view class="select-content" scroll-y="true">
<div class="type-list">
<div class="type-title">创建人</div>
<AiPagePicker type="custom" :selected.sync="userIdList" nodeKey="userId" :ops="{url:`./selectUser`,label: 'id'}">
<AiPagePicker type="custom" :selected.sync="userIdList" nodeKey="createUserId" :ops="{url:`./selectUser`,label: 'id'}">
<span class="label" v-if="userIdList.length">已选择</span>
<span v-else style="color:#999;">请选择</span>
<u-icon name="arrow-right" color="#999" size="24" style="margin-left:8px;"/>
@@ -93,7 +93,7 @@ export default {
showStart: false,
showEnd: false,
taskTitle: '',
userId: '',
createUserId: '',
userList: [],
userIdList: []
}
@@ -112,9 +112,9 @@ export default {
params: {
current: this.current,
taskTitle: this.taskTitle,
createUserId: this.userId,
startTime: this.start,
endTime: this.end,
createUserId: this.createUserId,
}
}).then(res=> {
if(res?.data) {
@@ -124,15 +124,22 @@ export default {
},
reset() {
this.start = '',
this.end = '',
this.startTime = '',
this.endTime = '',
this.endTime = ''
this.userIdList = []
uni.clearStorageSync('userSelect')
// uni.clearStorageSync('userSelect') //清空会导致状态字典出问题
this.current = 1
this.list = []
this.getList()
},
selectConfirm() {
if(this.userIdList.length) {
this.userId = this.userIdList[0].userId
this.createUserId = this.userIdList?.[0].userId
console.log(this.userIdList,'userIdList');
console.log(this.createUserId,'createUserId');
}
// let arr = this.userIdList
@@ -152,6 +159,8 @@ export default {
return
}
this.filterShow = false
this.current = 1
this.list = []
this.getList()
},
confirmStart(val) {
@@ -164,10 +173,9 @@ export default {
onShow() {
document.title = '群发居民群'
this.getList()
this.$dict.load('mstStatus').then(() => {
this.$dict.load(['mstStatus']).then(() => {
this.getList()
})
},
onReachBottom() {
this.current ++