完成h5开发
This commit is contained in:
parent
1f4b8d0e5c
commit
ccd74231c3
File diff suppressed because it is too large
Load Diff
@ -30,6 +30,7 @@
|
||||
:distance="100"
|
||||
spinner="circles"
|
||||
:identifier="infiniteId"
|
||||
|
||||
>
|
||||
<!-- orce-use-infinite-wrapper 属性在存在多个 el-table 需要更详细的css选择器 -->
|
||||
<div class="no-more" slot="no-more">我~是有底线的 (~ ̄▽ ̄)~</div>
|
||||
@ -127,7 +128,8 @@ export default {
|
||||
console.log("totalPage", this.findEqInfo.totalPage)
|
||||
if(this.findEqInfo.currPage < this.findEqInfo.totalPage){
|
||||
this.findEqInfo.currPage++
|
||||
apiFindStaffDevice(this.findEqInfo).then((data) => {
|
||||
this.getData()
|
||||
/*apiFindStaffDevice(this.findEqInfo).then((data) => {
|
||||
console.log(data);
|
||||
if (data && data.code === 0) {
|
||||
this.findEqInfo.list = [...this.findEqInfo.list, ...data.data.list]
|
||||
@ -147,27 +149,13 @@ export default {
|
||||
this.findEqInfo.totalPage = 1
|
||||
$state.complete()// 全部加载完成
|
||||
}
|
||||
})
|
||||
})*/
|
||||
}
|
||||
|
||||
},
|
||||
scan() {
|
||||
this.clearDateCookie();
|
||||
console.log("开始扫码");
|
||||
console.log(dd);
|
||||
dd.biz.util.scan({
|
||||
type: "all", // type 为 all、qrCode、barCode,默认是all。
|
||||
onSuccess: function (data) {
|
||||
console.log("sucess");
|
||||
console.log(data);
|
||||
this.deviceInfo.code = data.text;
|
||||
this.getDeviceInfo();
|
||||
}.bind(this),
|
||||
onFail: function (err) {
|
||||
console.log("fail");
|
||||
console.log(err);
|
||||
}.bind(this),
|
||||
});
|
||||
this.$cookie.set('idUser', this.findEqInfo.userId)
|
||||
this.$router.push({name: 'devicedetail', query: {type: 4}})
|
||||
},
|
||||
reset () {
|
||||
this.findEqInfo.list = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user