ll
liukangdong
2024-11-30 f956955c38a67f968977b7d784ff016ab5b17223
h5/pages/operation/record.vue
@@ -3,11 +3,11 @@
      <view class="head_wrap">
         <view class="search_wrap">
            <image class="mr12 search" src="@/static/home/ic_search@2x.png" mode="widthFix"></image>
            <input v-model="param.keyword" @confirm="getList()" type="text" placeholder="搜索设备名称/编号"
            <input v-model="param.deviceName" @confirm="getList()" type="text" placeholder="搜索设备名称/编号"
               placeholder-class="placeholder9" />
         </view>
         <view class="name_wrap" @click="handleMem">
            <view class="name">{{ param.realname ? param.realname : '运维人' }}</view>
            <view class="name">{{ param.userName ? param.userName : '运维人' }}</view>
            <u-icon :name="showModal  ? 'arrow-right' : 'arrow-down'" color="#999999" size="12"></u-icon>
         </view>
      </view>
@@ -57,11 +57,20 @@
         this.getpeo()
         this.getList()
      },
      onReachBottom() {
         const {total,list} = this
         if (list.length < total) {
            this.page = this.page + 1
            this.getList()
         } else {
            this.showToast('暂无更多数据')
         }
      },
      mounted() {
         this.$eventBus.$on('memberSel', (option) => {
            this.$set(this.param, 'realname', option.realname)
            this.$set(this.param, 'memberId', option.id)
            this.$set(this.param, 'userName', option.realname)
            this.$set(this.param, 'userId', option.id)
            this.getList()
         })
         
@@ -79,7 +88,7 @@
               capacity: 10,
               model: param
            }).then(res => {
               this.list = res.data.records || []
               this.list = [...this.list, ...res.data.records]
               this.total = res.data.total
            })
         },
@@ -93,8 +102,10 @@
               this.columns = [res.data]
            })
         },
         confirm() {
            this.showModal = false
         confirm(e) {
            console.log(e);
            // this.showModal = false
            // this.$set(this.param, 'userName', )
         },
         itemClick(item) {
            uni.navigateTo({