From 6ea077ecfd9c3ed956570692600e7e55796c9bfe Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 11 三月 2025 17:54:19 +0800
Subject: [PATCH] ll
---
h5/pages/staff/meetingSel.vue | 50 +++++++++++++++++++++++++++++++-------------------
1 files changed, 31 insertions(+), 19 deletions(-)
diff --git a/h5/pages/staff/meetingSel.vue b/h5/pages/staff/meetingSel.vue
index a5b2594..71b2481 100644
--- a/h5/pages/staff/meetingSel.vue
+++ b/h5/pages/staff/meetingSel.vue
@@ -2,27 +2,28 @@
<view class="main_app" :class="{ popupShow: isShowSelMem }">
<view class="search_inp df_ac">
<image class="mr12 search" src="../../static/ic_search@2x.png" mode="widthFix"></image>
- <input v-model="param.keyword" @blur="initData()" type="text" placeholder="鎼滅储"
+ <input v-model="param.queryParam" @input="changeInput" confirm-type="search" type="text" placeholder="鎼滅储"
placeholder-style="color: #999999;" />
</view>
<view class="member_list">
- <view v-for="(item, index) in memberList" :key="item.id" class="line">
- <image v-if="item.avatar" :src="item.prefixUrl + item.avatar" class="avatar" mode=""></image>
+ <view v-for="(item, index) in inputList" :key="item.id" class="line">
+ <image v-if="item.faceImg" :src="item.faceImg" class="avatar" mode=""></image>
<view v-else class="avatar">{{ item.realname.slice(0, 1) }}</view>
<view class="content">
<view class="info">
<text class="name">{{ item.realname }}</text>
<text class="tag" v-if="item.status == '1'">鏈変細璁�</text>
</view>
- <view class="depart">{{ item.departmentName }}</view>
+ <view class="depart">{{ item.departmentName || item.companyName }}</view>
</view>
<image @click="changeMem(item, index)" v-if="item.checked" src="@/static/checkbox_sel@2x.png" mode="widthFix"
class="checked"></image>
<image @click="changeMem(item, index)" v-if="!item.checked" src="@/static/meeting/icon/ic_choose@2x.png"
mode="widthFix" class="checked"></image>
<text></text>
- </view>
- <view v-if="memberList.length == 0" class="empty">
+ </view>
+ <view class="" style="height: 220rpx;"></view>
+ <view v-if="inputList.length == 0" class="empty_wrap">
<image src="@/static/empty.png" mode=""></image>
<text>鏆傛棤鏁版嵁</text>
</view>
@@ -73,14 +74,15 @@
export default {
data() {
return {
- memberList: [],
+ memberList: [],
+ inputList: [],
selList: [],
param: {
limitNum: ''
},
pagination: {
page: 1,
- capacity: 20
+ capacity: 40
},
isShowSelMem: false
@@ -89,7 +91,7 @@
onLoad(option) {
this.param = {
limitNum: option.limitNum,
- keyword: '',
+ queryParam: '',
startTime: dayjs(Number(option.startTime)).format('YYYY-MM-DD HH:mm:ss'),
endTime: dayjs(Number(option.endTime)).format('YYYY-MM-DD HH:mm:ss'),
}
@@ -109,7 +111,7 @@
this.$nextTick(() => {
this.$forceUpdate()
})
- }, 1000)
+ }, 500)
})
},
methods: {
@@ -141,6 +143,14 @@
item.checkedTemp = true
})
this.$forceUpdate()
+ },
+ changeInput(e) {
+ const str = e.target.value
+ this.inputList = this.memberList.filter(item => {
+ if(item.realname.indexOf(str) > -1){
+ return item
+ }
+ })
},
initData() {
const {
@@ -148,17 +158,16 @@
pagination
} = this
userPagePost({
- model: {
- ...param
- },
- ...pagination,
+ ...param,
+ querySpecial: 1, type: 2, companyType: 1,workStatus:0
}).then(res => {
- this.memberList = res.data.records || []
+ this.memberList = res.data || []
this.memberList.forEach(i => {
const index = this.selList.findIndex(ite => ite.id === i.id)
i.checked = index > -1
- })
+ })
+ this.inputList = [...this.memberList]
})
},
closeModal() {
@@ -269,7 +278,7 @@
left: 0;
width: 100%;
box-shadow: 0rpx 0rpx 6rpx 0rpx #b2b2b2;
- padding: 30rpx 30rpx 64rpx;
+ padding: 30rpx 30rpx 42rpx;
.sel_mem {
display: flex;
@@ -302,13 +311,16 @@
}
}
- .member_list {
+ .member_list {
+ height: calc( 100vh - 130rpx );
+ overflow: auto;
+ margin-top: 10rpx;
.line {
display: flex;
align-items: center;
border-bottom: 1rpx solid #e5e5e5;
padding: 30rpx 0;
-
+
.avatar {
width: 64rpx;
height: 64rpx;
--
Gitblit v1.9.3