完成h5开发

This commit is contained in:
wulin 2020-09-15 19:39:40 +08:00
parent 1f4b8d0e5c
commit ccd74231c3
2 changed files with 627 additions and 527 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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 allqrCodebarCodeall
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 = []