|
|
|
@ -1584,18 +1584,18 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.tabName == "上位机信息") {
|
|
|
|
|
let hexArray = this.upperComputer.ip
|
|
|
|
|
.toString(16)
|
|
|
|
|
.match(/.{1,2}/g)
|
|
|
|
|
.reverse();
|
|
|
|
|
console.log(hexArray);
|
|
|
|
|
for (let j = 0; j < hexArray.length; j++) {
|
|
|
|
|
console.log(hexArray[j]);
|
|
|
|
|
console.log(parseInt(hexArray[j], 16));
|
|
|
|
|
hexArray[j] = parseInt(hexArray[j], 16);
|
|
|
|
|
}
|
|
|
|
|
console.log(hexArray);
|
|
|
|
|
this.upperComputer.ip = hexArray.join(".");
|
|
|
|
|
// let hexArray = this.upperComputer.ip
|
|
|
|
|
// .toString(16)
|
|
|
|
|
// .match(/.{1,2}/g)
|
|
|
|
|
// .reverse();
|
|
|
|
|
// console.log(hexArray);
|
|
|
|
|
// for (let j = 0; j < hexArray.length; j++) {
|
|
|
|
|
// console.log(hexArray[j]);
|
|
|
|
|
// console.log(parseInt(hexArray[j], 16));
|
|
|
|
|
// hexArray[j] = parseInt(hexArray[j], 16);
|
|
|
|
|
// }
|
|
|
|
|
// console.log(hexArray);
|
|
|
|
|
this.upperComputer.ip = this.upperComputer.ipStr;
|
|
|
|
|
//ip地址解析结束
|
|
|
|
|
console.log(this.idParameter);
|
|
|
|
|
}
|
|
|
|
|