| | |
| | | onlineCheckingSettingSwitch.select(configAll['mqtt.onlinecheck'] == 1) |
| | | onlineCheckingTimeoutSettingInput.text(configAll['mqtt.timeout'] + '') |
| | | gasVerificationSwitch.select(configAll['gas.verification'] == 1) |
| | | safeInputControlSwitch.select(configAll['safeInputControl'] == 1) |
| | | }) |
| | | |
| | | const titleBox = viewUtils.title(screenMain, configView.screenMain, 'doorControlViewTitle', 'doorControlView.title') |
| | |
| | | gasVerificationSwitch.setSize(screen.screenSize.width * (70 / 600), screen.screenSize.height * (35 / 1280)) |
| | | gasVerificationSwitch.bgColor(0x000000, NativeObject.APP.NativeComponents.NativeEnum.LV_PART_INDICATOR | NativeObject.APP.NativeComponents.NativeEnum.LV_STATE_CHECKED) |
| | | |
| | | // 安全入仓联动控制设置 |
| | | const safeInputControlBox = dxui.View.build('safeInputControlBox', screenMain) |
| | | viewUtils._clearStyle(safeInputControlBox) |
| | | safeInputControlBox.align(dxui.Utils.ALIGN.TOP_MID, 0, screen.screenSize.height * (956 / 1280)) |
| | | safeInputControlBox.setSize(screen.screenSize.width * (550 / 600), screen.screenSize.height * (76 / 1280)) |
| | | safeInputControlBox.borderWidth(1) |
| | | safeInputControlBox.setBorderColor(0xDEDEDE) |
| | | safeInputControlBox.obj.setStyleBorderSide(dxui.Utils.ENUM.LV_BORDER_SIDE_BOTTOM, 0) |
| | | |
| | | const safeInputControlLbl = dxui.Label.build('safeInputControlLbl', safeInputControlBox) |
| | | safeInputControlLbl.text('安全入仓联动控制') |
| | | safeInputControlLbl.align(dxui.Utils.ALIGN.LEFT_MID, 0, 0) |
| | | safeInputControlLbl.textFont(viewUtils.font(26)) |
| | | |
| | | const safeInputControlSwitch = dxui.Switch.build('safeInputControlSwitch', safeInputControlBox) |
| | | safeInputControlSwitch.align(dxui.Utils.ALIGN.RIGHT_MID, 0, 0) |
| | | safeInputControlSwitch.setSize(screen.screenSize.width * (70 / 600), screen.screenSize.height * (35 / 1280)) |
| | | safeInputControlSwitch.bgColor(0x000000, NativeObject.APP.NativeComponents.NativeEnum.LV_PART_INDICATOR | NativeObject.APP.NativeComponents.NativeEnum.LV_STATE_CHECKED) |
| | | |
| | | const saveBtn = viewUtils.bottomBtn(screenMain, screenMain.id + 'saveBtn', 'doorControlView.save', () => { |
| | | const saveConfigData = { |
| | | access: { |
| | |
| | | gas: { |
| | | verification: gasVerificationSwitch.isSelect() ? 1 : 0 |
| | | }, |
| | | safeInputControl: safeInputControlSwitch.isSelect() ? 1 : 0, |
| | | mqtt: { |
| | | addr: mqttSettingInput.text(), |
| | | username: mqttUserSettingInput.text(), |