var fzd = zd.slice(1);var yz = window.parent.contentPane.parameterEl.getWidgetByName(zd).getValue();var btnvalue = window.parent.contentPane.parameterEl.getWidgetByName("button_"+fzd).getValue();console.log("btnvalue:",btnvalue)console.log("yz123:", yz)if (yz !== ""&&btnvalue=="已多选") { var jsonArray = JSON.parse(yz); for (let i = 0; i < jsonArray.length; i++) { var item = jsonArray[i]; _g().setCellValue(0, 0, i + 1, item.OPTION); var low = item.LOW var high = item.HIGH contentPane.setCellValue(0, 0, i + 1, item.OPTION); console.log("item.OPTION:",item.OPTION) console.log("item.LOW:",item.LOW) console.log("item.HIGH:",item.HIGH) _g().setCellValue(0, 1, i + 1, low); _g().setCellValue(0, 2, i + 1, high); }} |