diff --git a/src/views/modules/device/device-detail.vue b/src/views/modules/device/device-detail.vue index 4039369..1ce1af2 100644 --- a/src/views/modules/device/device-detail.vue +++ b/src/views/modules/device/device-detail.vue @@ -1,521 +1,633 @@ > \ No newline at end of file diff --git a/src/views/modules/device/device-staff-device.vue b/src/views/modules/device/device-staff-device.vue index 66e44a3..3b2dad4 100644 --- a/src/views/modules/device/device-staff-device.vue +++ b/src/views/modules/device/device-staff-device.vue @@ -30,6 +30,7 @@ :distance="100" spinner="circles" :identifier="infiniteId" + >
我~是有底线的 (~ ̄▽ ̄)~
@@ -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 = []