ll
liukangdong
2025-03-11 6ea077ecfd9c3ed956570692600e7e55796c9bfe
h5/pages/staff/meetingSel.vue
@@ -2,19 +2,19 @@
   <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>
@@ -23,7 +23,7 @@
            <text></text>
         </view>
         <view class="" style="height: 220rpx;"></view>
         <view v-if="memberList.length == 0" class="empty_wrap">
         <view v-if="inputList.length == 0" class="empty_wrap">
            <image src="@/static/empty.png" mode=""></image>
            <text>暂无数据</text>
         </view>
@@ -74,7 +74,8 @@
   export default {
      data() {
         return {
            memberList: [],
            memberList: [],
            inputList: [],
            selList: [],
            param: {
               limitNum: ''
@@ -90,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'),
         }
@@ -110,7 +111,7 @@
               this.$nextTick(() => {
                  this.$forceUpdate()
               })
            }, 1000)
            }, 500)
         })
      },
      methods: {
@@ -142,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 {
@@ -149,18 +158,16 @@
               pagination
            } = this
            userPagePost({
               model: {
                  ...param,
                  workStatus: 0
               },
               ...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() {
@@ -304,7 +311,10 @@
      }
   }
   .member_list {
   .member_list {
      height: calc( 100vh - 130rpx );
      overflow: auto;
      margin-top: 10rpx;
      .line {
         display: flex;
         align-items: center;