From cd40c6f6f3a6138cb70b2e2d017cc7f34a887ef8 Mon Sep 17 00:00:00 2001
From: lgq <1015864684@qq.com>
Date: 星期五, 17 四月 2026 13:59:49 +0800
Subject: [PATCH] 1.更新vf107代码,更新自动上报通行记录接口、人员查询接口、人员添加接口
---
vf107/src/view/config/menu/doorControlView.js | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/vf107/src/view/config/menu/doorControlView.js b/vf107/src/view/config/menu/doorControlView.js
index 89cb8a7..04e9cb1 100644
--- a/vf107/src/view/config/menu/doorControlView.js
+++ b/vf107/src/view/config/menu/doorControlView.js
@@ -26,6 +26,7 @@
mqttPwdSettingInput.text(configAll['mqtt.password'])
onlineCheckingSettingSwitch.select(configAll['mqtt.onlinecheck'] == 1)
onlineCheckingTimeoutSettingInput.text(configAll['mqtt.timeout'] + '')
+ gasVerificationSwitch.select(configAll['gas.verification'] == 1)
})
const titleBox = viewUtils.title(screenMain, configView.screenMain, 'doorControlViewTitle', 'doorControlView.title')
@@ -224,6 +225,24 @@
onlineCheckingTimeoutSettingInput.align(dxui.Utils.ALIGN.RIGHT_MID, -screen.screenSize.width * (60 / 600), 0)
onlineCheckingTimeoutSettingInput.setSize(screen.screenSize.width * (150 / 600), screen.screenSize.height * (60 / 1280))
+ const gasVerificationBox = dxui.View.build('gasVerificationBox', screenMain)
+ viewUtils._clearStyle(gasVerificationBox)
+ gasVerificationBox.align(dxui.Utils.ALIGN.TOP_MID, 0, screen.screenSize.height * (880 / 1280))
+ gasVerificationBox.setSize(screen.screenSize.width * (550 / 600), screen.screenSize.height * (76 / 1280))
+ gasVerificationBox.borderWidth(1)
+ gasVerificationBox.setBorderColor(0xDEDEDE)
+ gasVerificationBox.obj.setStyleBorderSide(dxui.Utils.ENUM.LV_BORDER_SIDE_BOTTOM, 0)
+
+ const gasVerificationLbl = dxui.Label.build('gasVerificationLbl', gasVerificationBox)
+ gasVerificationLbl.text('姘斾綋娴撳害楠岃瘉')
+ gasVerificationLbl.align(dxui.Utils.ALIGN.LEFT_MID, 0, 0)
+ gasVerificationLbl.textFont(viewUtils.font(26))
+
+ const gasVerificationSwitch = dxui.Switch.build('gasVerificationSwitch', gasVerificationBox)
+ gasVerificationSwitch.align(dxui.Utils.ALIGN.RIGHT_MID, 0, 0)
+ 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 saveBtn = viewUtils.bottomBtn(screenMain, screenMain.id + 'saveBtn', 'doorControlView.save', () => {
const saveConfigData = {
access: {
@@ -235,6 +254,9 @@
},
houseName: houseNameSettingInput.text(),
GranaryName: granaryNameSettingInput.text(),
+ gas: {
+ verification: gasVerificationSwitch.isSelect() ? 1 : 0
+ },
mqtt: {
addr: mqttSettingInput.text(),
username: mqttUserSettingInput.text(),
--
Gitblit v1.9.3