|
@@ -43,14 +43,14 @@
|
|
|
|
|
|
|
|
<!-- 设备注册列表start -->
|
|
<!-- 设备注册列表start -->
|
|
|
<block class="">
|
|
<block class="">
|
|
|
- <view class="processList deviceRegistList" style="padding-bottom:150rpx;" >
|
|
|
|
|
|
|
+ <view class="processList deviceRegistList" style="padding-bottom:150rpx;">
|
|
|
<checkbox-group @change="changeCheckbox">
|
|
<checkbox-group @change="changeCheckbox">
|
|
|
<view class="cu-list menu-avatar ">
|
|
<view class="cu-list menu-avatar ">
|
|
|
<view class=" site-item text-center margin-top"
|
|
<view class=" site-item text-center margin-top"
|
|
|
v-if="!this.deviceManage.length&&this.deviceManageRes==1">暂无数据</view>
|
|
v-if="!this.deviceManage.length&&this.deviceManageRes==1">暂无数据</view>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<view class="cu-item" :class="modalName=='move-box-'+ index?'move-cur':''"
|
|
<view class="cu-item" :class="modalName=='move-box-'+ index?'move-cur':''"
|
|
|
v-for="(item,index) in newDeviceManage" :key="index" :data-target="'move-box-' + index">
|
|
v-for="(item,index) in newDeviceManage" :key="index" :data-target="'move-box-' + index">
|
|
|
<view class="cu-form-group margin-top">
|
|
<view class="cu-form-group margin-top">
|
|
@@ -88,9 +88,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view> -->
|
|
</view> -->
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-show="isLoadMore&&page>1" >
|
|
|
|
|
- <uni-load-more :status="loadStatus"></uni-load-more>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view v-show="isLoadMore&&page>1">
|
|
|
|
|
+ <uni-load-more :status="loadStatus"></uni-load-more>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</checkbox-group>
|
|
</checkbox-group>
|
|
|
</view>
|
|
</view>
|
|
@@ -225,14 +225,14 @@
|
|
|
"单元地址": "unitinfo",
|
|
"单元地址": "unitinfo",
|
|
|
"创建时间": "install_time",
|
|
"创建时间": "install_time",
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
page: 1,
|
|
page: 1,
|
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
|
loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
|
|
loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
|
|
|
isLoadMore: false, //是否加载中
|
|
isLoadMore: false, //是否加载中
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -264,7 +264,7 @@
|
|
|
"dwtype": this.dwtype,
|
|
"dwtype": this.dwtype,
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
onReachBottom() { //上拉触底函数
|
|
onReachBottom() { //上拉触底函数
|
|
|
if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
|
|
if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
|
|
|
this.isLoadMore = true
|
|
this.isLoadMore = true
|
|
@@ -276,13 +276,13 @@
|
|
|
"transmission_mode": this.transmission_mode,
|
|
"transmission_mode": this.transmission_mode,
|
|
|
"dwtype": this.dwtype,
|
|
"dwtype": this.dwtype,
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
// alert(this.page)
|
|
// alert(this.page)
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
|
|
|
exportButton() {
|
|
exportButton() {
|
|
@@ -331,16 +331,16 @@
|
|
|
|
|
|
|
|
//筛选请求
|
|
//筛选请求
|
|
|
searchList() {
|
|
searchList() {
|
|
|
- this.deviceManage=[],
|
|
|
|
|
- this.page=1,
|
|
|
|
|
- this.getDataList({
|
|
|
|
|
- "transmission_mode": this.transmission_mode,
|
|
|
|
|
- "dwtype": this.dwtype,
|
|
|
|
|
- 'company_code': uni.getStorageSync('selectedCode'),
|
|
|
|
|
- "page": this.page,
|
|
|
|
|
- "pageSize": this.pageSize,
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.deviceManage = [],
|
|
|
|
|
+ this.page = 1,
|
|
|
|
|
+ this.getDataList({
|
|
|
|
|
+ "transmission_mode": this.transmission_mode,
|
|
|
|
|
+ "dwtype": this.dwtype,
|
|
|
|
|
+ 'company_code': uni.getStorageSync('selectedCode'),
|
|
|
|
|
+ "page": this.page,
|
|
|
|
|
+ "pageSize": this.pageSize,
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
this.transmission_mode1 = this.transmission_mode;
|
|
this.transmission_mode1 = this.transmission_mode;
|
|
|
this.dwtype1 = this.dwtype;
|
|
this.dwtype1 = this.dwtype;
|
|
|
},
|
|
},
|
|
@@ -353,11 +353,11 @@
|
|
|
showLoading: true
|
|
showLoading: true
|
|
|
})
|
|
})
|
|
|
this.deviceManageRes = 1;
|
|
this.deviceManageRes = 1;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (res.data.data.length) {
|
|
if (res.data.data.length) {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.deviceManage = this.deviceManage.concat(res.data.data)
|
|
this.deviceManage = this.deviceManage.concat(res.data.data)
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (res.data.data.length < this.pageSize) { //判断接口返回数据量小于请求数据量,则表示此为最后一页
|
|
if (res.data.data.length < this.pageSize) { //判断接口返回数据量小于请求数据量,则表示此为最后一页
|
|
|
this.isLoadMore = true
|
|
this.isLoadMore = true
|
|
|
this.loadStatus = 'nomore'
|
|
this.loadStatus = 'nomore'
|
|
@@ -368,9 +368,9 @@
|
|
|
this.isLoadMore = true
|
|
this.isLoadMore = true
|
|
|
this.loadStatus = 'nomore'
|
|
this.loadStatus = 'nomore'
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 页面跳转
|
|
// 页面跳转
|