From ceb665d724e09b281de04bd7d69ef69732d566c8 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Mon, 18 Mar 2024 13:17:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96ip=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/parameterSetDialog.vue | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/photographicDevice/components/parameterSetDialog.vue b/src/views/photographicDevice/components/parameterSetDialog.vue index 800fcdc..c68367d 100644 --- a/src/views/photographicDevice/components/parameterSetDialog.vue +++ b/src/views/photographicDevice/components/parameterSetDialog.vue @@ -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); }