| | |
| | | <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>
|
| | |
| | | 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()
|
| | | }) |
| | |
|
| | |
| | | capacity: 10,
|
| | | model: param
|
| | | }).then(res => {
|
| | | this.list = res.data.records || []
|
| | | this.list = [...this.list, ...res.data.records] |
| | | this.total = res.data.total
|
| | | })
|
| | | }, |
| | |
| | | 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({
|