From e36b74525f9c7400da2d3438c5e4164622da059a Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期三, 24 一月 2024 13:14:21 +0800 Subject: [PATCH] 封装初始化方法为工具类,方便调用, getPlcParameterValues getPlcBitValues 方法codeid 按照传入参数的顺序遍历 来获取值 --- CanadaMes-ui/src/views/Electrical/ServoManualone.vue | 52 ++++++++++++++++++++++++++-------------------------- 1 files changed, 26 insertions(+), 26 deletions(-) diff --git a/CanadaMes-ui/src/views/Electrical/ServoManualone.vue b/CanadaMes-ui/src/views/Electrical/ServoManualone.vue index 3eae7c3..760d3a6 100644 --- a/CanadaMes-ui/src/views/Electrical/ServoManualone.vue +++ b/CanadaMes-ui/src/views/Electrical/ServoManualone.vue @@ -787,34 +787,34 @@ } // 澶嶄綅鏇存柊 - for (let i = 0; i < jsonData2.length; i++) { - let arr = jsonData2[i]; - for (let j = 0; j < arr.length; j++) { - let obj2 = arr[j]; - if ( - obj2.button && - (obj2.button.name === "澶嶄綅" || obj2.button.name === "Reset") - ) { - obj2.button.value = obj.fuwei[0][i]; - // console.log(obj2.button.value) - } - } - } + // for (let i = 0; i < jsonData2.length; i++) { + // let arr = jsonData2[i]; + // for (let j = 0; j < arr.length; j++) { + // let obj2 = arr[j]; + // if ( + // obj2.button && + // (obj2.button.name === "澶嶄綅" || obj2.button.name === "Reset") + // ) { + // obj2.button.value = obj.fuwei[0][i]; + // // console.log(obj2.button.value) + // } + // } + // } - for (let i = 0; i < jsonData2.length; i++) { - let arr = jsonData2[i]; - for (let j = 0; j < arr.length; j++) { - let obj2 = arr[j]; - if ( - obj2.button && - (obj2.button.name === "鍥為浂" || obj2.button.name === "Home") - ) { - obj2.button.value = obj.huiling[0][i]; - // console.log(obj2.button.value) - } - } - } + // for (let i = 0; i < jsonData2.length; i++) { + // let arr = jsonData2[i]; + // for (let j = 0; j < arr.length; j++) { + // let obj2 = arr[j]; + // if ( + // obj2.button && + // (obj2.button.name === "鍥為浂" || obj2.button.name === "Home") + // ) { + // obj2.button.value = obj.huiling[0][i]; + // // console.log(obj2.button.value) + // } + // } + // } -- Gitblit v1.8.0