修改等号bug

pull/9/head
pangdundun 2023-10-08 18:28:38 +08:00
parent ffeb1a50d6
commit 424faa855f
6 changed files with 8 additions and 8 deletions

View File

@ -396,9 +396,9 @@
var statusIndex = 8 var statusIndex = 8
for (var j = 0; j < statusIndex; j++) { for (var j = 0; j < statusIndex; j++) {
if (Number(number[number.length - 1 - j])) { if (Number(number[number.length - 1 - j])) {
if (j = 0) { if (j == 0) {
this.right2Index.push(1) this.right2Index.push(1)
} else if (j = 1) { } else if (j == 1) {
this.right2Index.push(0) this.right2Index.push(0)
} else { } else {
this.right2Index.push(j) this.right2Index.push(j)

View File

@ -59,7 +59,7 @@
url: this.api.sel_eqbyid + userid, url: this.api.sel_eqbyid + userid,
method: 'GET' method: 'GET'
}).then(res => { }).then(res => {
// console.log(res, 'id'); console.log(res, '根据用户id查询对应的设备数据');
if (res.code == 200) { if (res.code == 200) {
this.deviceList=res.data this.deviceList=res.data
} }

File diff suppressed because one or more lines are too long

View File

@ -585,9 +585,9 @@ var _default = {
var statusIndex = 8; var statusIndex = 8;
for (var j = 0; j < statusIndex; j++) { for (var j = 0; j < statusIndex; j++) {
if (Number(number[number.length - 1 - j])) { if (Number(number[number.length - 1 - j])) {
if (j = 0) { if (j == 0) {
this.right2Index.push(1); this.right2Index.push(1);
} else if (j = 1) { } else if (j == 1) {
this.right2Index.push(0); this.right2Index.push(0);
} else { } else {
this.right2Index.push(j); this.right2Index.push(j);

View File

@ -224,7 +224,7 @@ var _default = {
url: this.api.sel_eqbyid + userid, url: this.api.sel_eqbyid + userid,
method: 'GET' method: 'GET'
}).then(function (res) { }).then(function (res) {
// console.log(res, '根据用户id查询对应的设备数据'); console.log(res, '根据用户id查询对应的设备数据');
if (res.code == 200) { if (res.code == 200) {
_this.deviceList = res.data; _this.deviceList = res.data;
} }