bug
This commit is contained in:
@@ -127,14 +127,14 @@ export default {
|
||||
this.startTime = '',
|
||||
this.endTime = '',
|
||||
this.userIdList = []
|
||||
// uni.clearStorageSync('selected')
|
||||
uni.clearStorageSync('userSelect')
|
||||
},
|
||||
|
||||
selectConfirm() {
|
||||
if(this.userIdList.length) {
|
||||
this.userId = this.userIdList[0].userId
|
||||
}
|
||||
|
||||
|
||||
// let arr = this.userIdList
|
||||
// console.log(arr[0],222);
|
||||
// console.log(this.userIdList,111);
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty description="暂无数据" v-if="!hasData"/>
|
||||
<AiEmpty description="暂无数据" v-if="!userList"/>
|
||||
</div>
|
||||
<div class="subBtn" @click="submit">
|
||||
<div>确定选择</div>
|
||||
@@ -41,6 +41,7 @@ export default {
|
||||
onLoad() {
|
||||
this.selected = uni.getStorageSync('userSelect') || []
|
||||
this.getDeptsAndUsersByParent()
|
||||
console.log(this.selected);
|
||||
},
|
||||
methods: {
|
||||
isSelected(id) {
|
||||
|
||||
Reference in New Issue
Block a user