Merge branch 'master' of gitee.com:starlock-cn/app-starlock

# Conflicts:
#	star_lock/lib/appRouters.dart
#	star_lock/lib/network/api_repository.dart
This commit is contained in:
Daisy 2024-01-23 18:26:14 +08:00
commit 64416a6b3a
251 changed files with 1125 additions and 1056 deletions

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -50,7 +50,7 @@
"sendGroupKey":"Send Group Key", "sendGroupKey":"Send Group Key",
"lock":"Lock", "lock":"Lock",
"pleaseAdd":"Please Add", "pleaseAdd":"Please Add",
"pleaseSelet":"Please Selet", "pleaseSelect":"Please Select",
"remoteUnlockingAllowed":"Remote Unlocking Allowed", "remoteUnlockingAllowed":"Remote Unlocking Allowed",
"pleaseEnter":"Please Enter", "pleaseEnter":"Please Enter",
"getPassword":"Get Password", "getPassword":"Get Password",
@ -170,7 +170,7 @@
"allDay":"All Day", "allDay":"All Day",
"save":"Save", "save":"Save",
"normallyOpenModeTip":"During the set normal opening time, the lock will remain open after opening until it is manually closed During the set normal opening time, the lock will remain open after opening until it is manually closed", "normallyOpenModeTip":"During the set normal opening time, the lock will remain open after opening until it is manually closed During the set normal opening time, the lock will remain open after opening until it is manually closed",
"pleaseSeletLockVolume":"Please Selet Lock Volume", "pleaseSelectLockVolume":"Please Select Lock Volume",
"lockSoundTip":"When the function is enabled, you can hear the prompt tone of the smart lock. Including low battery, incorrect password and so on.", "lockSoundTip":"When the function is enabled, you can hear the prompt tone of the smart lock. Including low battery, incorrect password and so on.",
"low":"Low", "low":"Low",
"lower":"Lower", "lower":"Lower",
@ -282,7 +282,7 @@
"addGateway": "Add Gateway", "addGateway": "Add Gateway",
"turnThePowerBackOn": "Turn The Power Back On", "turnThePowerBackOn": "Turn The Power Back On",
"indicatorLight": "Indicator Light", "indicatorLight": "Indicator Light",
"seletGatewayTypeNextTip": "Repower the gateway and click Next when the indicator light flashes alternately", "selectGatewayTypeNextTip": "Repower the gateway and click Next when the indicator light flashes alternately",
"selectGateway": "Select Gateway", "selectGateway": "Select Gateway",
"gatewayConfigurationWifiTip": "5G WiFi network is not supported, please choose 2.4G WiFi network for configuration", "gatewayConfigurationWifiTip": "5G WiFi network is not supported, please choose 2.4G WiFi network for configuration",
"wifiPassward": "WiFi Passward", "wifiPassward": "WiFi Passward",
@ -325,7 +325,7 @@
"email":"Email", "email":"Email",
"mobileNumber":"Mobile phone number", "mobileNumber":"Mobile phone number",
"countryAndRegion":"Country And Region", "countryAndRegion":"Country And Region",
"selet":"Selet", "select":"Select",
"getVerificationCode":"Get Verification Code", "getVerificationCode":"Get Verification Code",
"businessCooperation":"Business Cooperation", "businessCooperation":"Business Cooperation",
@ -349,7 +349,7 @@
"customMailTemplate":"Custom Mail Template", "customMailTemplate":"Custom Mail Template",
"record":"Record", "record":"Record",
"buyRealNameTip":"When an electronic key is sent to the user, the user can be required to authenticate with his real name before unlocking to ensure that he is operating. The real-name authentication calls the interface of the national Public security system. For the payment function, please purchase the number of times before using it.", "buyRealNameTip":"When an electronic key is sent to the user, the user can be required to authenticate with his real name before unlocking to ensure that he is operating. The real-name authentication calls the interface of the national Public security system. For the payment function, please purchase the number of times before using it.",
"buyRealNameSeletYouWantBuyTip":"Please select the frequency of real name authentication you want", "buyRealNameSelectYouWantBuyTip":"Please select the frequency of real name authentication you want",
"forTheFirstTime":"For the first time", "forTheFirstTime":"For the first time",
"onceDay":"once a day", "onceDay":"once a day",
"weekOnce":"once a week", "weekOnce":"once a week",
@ -417,9 +417,9 @@
"whetherTheEmployeeHasPassword":"If The Employee Has A Password", "whetherTheEmployeeHasPassword":"If The Employee Has A Password",
"whetherTheEmployeeHasCard":"If The Employee Has A Card", "whetherTheEmployeeHasCard":"If The Employee Has A Card",
"whetherTheEmployeeHasFingerprint":"If The Employee Has A Fingerprint", "whetherTheEmployeeHasFingerprint":"If The Employee Has A Fingerprint",
"seletPassword":"Selet Password", "selectPassword":"Select Password",
"seletCard":"Selet Card", "selectCard":"Select Card",
"seletFingerprint":"Selet Fingerprint", "selectFingerprint":"Select Fingerprint",
"getKey":"Get Key", "getKey":"Get Key",
"getCard":"Get Card", "getCard":"Get Card",
"getFingerprint":"Get Fingerprint", "getFingerprint":"Get Fingerprint",

View File

@ -50,7 +50,7 @@
"sendGroupKey":"sendGroupKey", "sendGroupKey":"sendGroupKey",
"lock":"lock", "lock":"lock",
"pleaseAdd":"pleaseAdd", "pleaseAdd":"pleaseAdd",
"pleaseSelet":"pleaseSelet", "pleaseSelect":"pleaseSelect",
"remoteUnlockingAllowed":"remoteUnlockingAllowed", "remoteUnlockingAllowed":"remoteUnlockingAllowed",
"pleaseEnter":"pleaseEnter", "pleaseEnter":"pleaseEnter",
"getPassword":"getPassword", "getPassword":"getPassword",
@ -170,7 +170,7 @@
"allDay":"allDay", "allDay":"allDay",
"save":"save", "save":"save",
"normallyOpenModeTip":"normallyOpenModeTip", "normallyOpenModeTip":"normallyOpenModeTip",
"pleaseSeletLockVolume":"pleaseSeletLockVolume", "pleaseSelectLockVolume":"pleaseSelectLockVolume",
"lockSoundTip":"lockSoundTip", "lockSoundTip":"lockSoundTip",
"low":"low", "low":"low",
"lower":"lower", "lower":"lower",
@ -282,7 +282,7 @@
"addGateway": "addGateway", "addGateway": "addGateway",
"turnThePowerBackOn": "turnThePowerBackOn", "turnThePowerBackOn": "turnThePowerBackOn",
"indicatorLight": "indicatorLight", "indicatorLight": "indicatorLight",
"seletGatewayTypeNextTip": "seletGatewayTypeNextTip", "selectGatewayTypeNextTip": "selectGatewayTypeNextTip",
"selectGateway": "selectGateway", "selectGateway": "selectGateway",
"gatewayConfigurationWifiTip": "gatewayConfigurationWifiTip", "gatewayConfigurationWifiTip": "gatewayConfigurationWifiTip",
"wifiPassward": "wifiPassward", "wifiPassward": "wifiPassward",
@ -325,7 +325,7 @@
"email":"email", "email":"email",
"mobileNumber":"mobileNumber", "mobileNumber":"mobileNumber",
"countryAndRegion":"countryAndRegion", "countryAndRegion":"countryAndRegion",
"selet":"selet", "select":"select",
"getVerificationCode":"getVerificationCode", "getVerificationCode":"getVerificationCode",
"businessCooperation":"businessCooperation", "businessCooperation":"businessCooperation",
@ -349,7 +349,7 @@
"customMailTemplate":"customMailTemplate", "customMailTemplate":"customMailTemplate",
"record":"record", "record":"record",
"buyRealNameTip":"buyRealNameTip", "buyRealNameTip":"buyRealNameTip",
"buyRealNameSeletYouWantBuyTip":"buyRealNameSeletYouWantBuyTip", "buyRealNameSelectYouWantBuyTip":"buyRealNameSelectYouWantBuyTip",
"forTheFirstTime":"forTheFirstTime", "forTheFirstTime":"forTheFirstTime",
"onceDay":"onceDay", "onceDay":"onceDay",
"weekOnce":"weekOnce", "weekOnce":"weekOnce",
@ -417,9 +417,9 @@
"whetherTheEmployeeHasPassword":"whetherTheEmployeeHasPassword", "whetherTheEmployeeHasPassword":"whetherTheEmployeeHasPassword",
"whetherTheEmployeeHasCard":"whetherTheEmployeeHasCard", "whetherTheEmployeeHasCard":"whetherTheEmployeeHasCard",
"whetherTheEmployeeHasFingerprint":"whetherTheEmployeeHasFingerprint", "whetherTheEmployeeHasFingerprint":"whetherTheEmployeeHasFingerprint",
"seletPassword":"seletPassword", "selectPassword":"selectPassword",
"seletCard":"seletCard", "selectCard":"selectCard",
"seletFingerprint":"seletFingerprint", "selectFingerprint":"selectFingerprint",
"getKey":"getKey", "getKey":"getKey",
"getCard":"getCard", "getCard":"getCard",
"getFingerprint":"getFingerprint", "getFingerprint":"getFingerprint",

View File

@ -50,7 +50,7 @@
"sendGroupKey":"群发钥匙", "sendGroupKey":"群发钥匙",
"lock":"锁", "lock":"锁",
"pleaseAdd":"请添加", "pleaseAdd":"请添加",
"pleaseSelet":"请选择", "pleaseSelect":"请选择",
"remoteUnlockingAllowed":"允许远程开锁", "remoteUnlockingAllowed":"允许远程开锁",
"pleaseEnter":"请输入", "pleaseEnter":"请输入",
"getPassword":"获取密码", "getPassword":"获取密码",
@ -170,7 +170,7 @@
"allDay":"全天", "allDay":"全天",
"save":"保存", "save":"保存",
"normallyOpenModeTip":"在设置的常开时间内,锁被打开后将一直处于打开的状态,直到被手动关闭", "normallyOpenModeTip":"在设置的常开时间内,锁被打开后将一直处于打开的状态,直到被手动关闭",
"pleaseSeletLockVolume":"请选择锁音量", "pleaseSelectLockVolume":"请选择锁音量",
"lockSoundTip":"功能开启后,你将可以听到智能锁的提示音。包括电量过低,密码错误等提示。", "lockSoundTip":"功能开启后,你将可以听到智能锁的提示音。包括电量过低,密码错误等提示。",
"low":"低", "low":"低",
"lower":"较低", "lower":"较低",
@ -282,7 +282,7 @@
"addGateway": "添加网关", "addGateway": "添加网关",
"turnThePowerBackOn": "重新通电", "turnThePowerBackOn": "重新通电",
"indicatorLight": "指示灯", "indicatorLight": "指示灯",
"seletGatewayTypeNextTip": "将网关重新通电,指示灯交替闪烁时点击下一步", "selectGatewayTypeNextTip": "将网关重新通电,指示灯交替闪烁时点击下一步",
"selectGateway": "选择网关", "selectGateway": "选择网关",
"gatewayConfigurationWifiTip": "不支持5G WiFi网络请选择2.4G WiFi网络进行配置", "gatewayConfigurationWifiTip": "不支持5G WiFi网络请选择2.4G WiFi网络进行配置",
"wifiPassward": "WiFi密码", "wifiPassward": "WiFi密码",
@ -325,7 +325,7 @@
"email":"邮箱", "email":"邮箱",
"mobileNumber":"手机号", "mobileNumber":"手机号",
"countryAndRegion":"国家/地区", "countryAndRegion":"国家/地区",
"selet":"选择", "select":"选择",
"getVerificationCode":"获取验证码", "getVerificationCode":"获取验证码",
"businessCooperation":"商务合作", "businessCooperation":"商务合作",
@ -350,7 +350,7 @@
"record":"记录", "record":"记录",
"buyRealNameTip":"给用户发送电子钥匙时,可以要求其开锁前先进行实名认证,以保证是他本人在操作。实名认证调用国家公安系统接口,为付费功能,请购买次数后再使用。", "buyRealNameTip":"给用户发送电子钥匙时,可以要求其开锁前先进行实名认证,以保证是他本人在操作。实名认证调用国家公安系统接口,为付费功能,请购买次数后再使用。",
"buyRealNameSeletYouWantBuyTip":"请选择你希望的实名认证频数", "buyRealNameSelectYouWantBuyTip":"请选择你希望的实名认证频数",
"forTheFirstTime":"仅首次", "forTheFirstTime":"仅首次",
"onceDay":"每日一次", "onceDay":"每日一次",
"weekOnce":"每周一次", "weekOnce":"每周一次",
@ -420,9 +420,9 @@
"whetherTheEmployeeHasPassword":"员工是否有密码", "whetherTheEmployeeHasPassword":"员工是否有密码",
"whetherTheEmployeeHasCard":"员工是否有卡", "whetherTheEmployeeHasCard":"员工是否有卡",
"whetherTheEmployeeHasFingerprint":"员工是否有指纹", "whetherTheEmployeeHasFingerprint":"员工是否有指纹",
"seletPassword":"选择密码", "selectPassword":"选择密码",
"seletCard":"选择卡", "selectCard":"选择卡",
"seletFingerprint":"选择指纹", "selectFingerprint":"选择指纹",
"getKey":"获取钥匙", "getKey":"获取钥匙",
"getCard":"获取卡", "getCard":"获取卡",
"getFingerprint":"获取指纹", "getFingerprint":"获取指纹",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 471 KiB

After

Width:  |  Height:  |  Size: 471 KiB

View File

Before

Width:  |  Height:  |  Size: 350 KiB

After

Width:  |  Height:  |  Size: 350 KiB

View File

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -63,7 +63,7 @@ PODS:
- Flutter - Flutter
- google_maps_flutter_ios (0.0.1): - google_maps_flutter_ios (0.0.1):
- Flutter - Flutter
- GoogleMaps (< 9.0) - GoogleMaps (< 8.0)
- GoogleMaps (6.2.1): - GoogleMaps (6.2.1):
- GoogleMaps/Maps (= 6.2.1) - GoogleMaps/Maps (= 6.2.1)
- GoogleMaps/Base (6.2.1) - GoogleMaps/Base (6.2.1)
@ -85,7 +85,7 @@ PODS:
- FlutterMacOS - FlutterMacOS
- permission_handler_apple (9.1.1): - permission_handler_apple (9.1.1):
- Flutter - Flutter
- Protobuf (3.25.1) - Protobuf (3.25.0)
- ReachabilitySwift (5.0.0) - ReachabilitySwift (5.0.0)
- reactive_ble_mobile (0.0.1): - reactive_ble_mobile (0.0.1):
- Flutter - Flutter
@ -97,7 +97,7 @@ PODS:
- sqflite (0.0.3): - sqflite (0.0.3):
- Flutter - Flutter
- FMDB (>= 2.7.5) - FMDB (>= 2.7.5)
- SwiftProtobuf (1.25.2) - SwiftProtobuf (1.25.1)
- Toast (4.0.0) - Toast (4.0.0)
- url_launcher_ios (0.0.1): - url_launcher_ios (0.0.1):
- Flutter - Flutter
@ -241,7 +241,7 @@ SPEC CHECKSUMS:
audio_session: 4f3e461722055d21515cf3261b64c973c062f345 audio_session: 4f3e461722055d21515cf3261b64c973c062f345
audioplayers_darwin: 877d9a4d06331c5c374595e46e16453ac7eafa40 audioplayers_darwin: 877d9a4d06331c5c374595e46e16453ac7eafa40
auto_orientation: 102ed811a5938d52c86520ddd7ecd3a126b5d39d auto_orientation: 102ed811a5938d52c86520ddd7ecd3a126b5d39d
camera_avfoundation: 8b8d780bcfb6a4a02b0fbe2b4bd17b5b71946e68 camera_avfoundation: 3125e8cd1a4387f6f31c6c63abb8a55892a9eeeb
connectivity_plus: bf0076dd84a130856aa636df1c71ccaff908fa1d connectivity_plus: bf0076dd84a130856aa636df1c71ccaff908fa1d
device_info_plus: e5c5da33f982a436e103237c0c85f9031142abed device_info_plus: e5c5da33f982a436e103237c0c85f9031142abed
EMASRest: 8df6f87836767a9415ad5cc4af739bc9d215b475 EMASRest: 8df6f87836767a9415ad5cc4af739bc9d215b475
@ -251,30 +251,30 @@ SPEC CHECKSUMS:
flutter_sound: c60effa2a350fb977885f0db2fbc4c1ad5160900 flutter_sound: c60effa2a350fb977885f0db2fbc4c1ad5160900
flutter_sound_core: 26c10e5832e76aaacfae252d8925232281c486ae flutter_sound_core: 26c10e5832e76aaacfae252d8925232281c486ae
flutter_voice_processor: 53afbf59ad3feb82f4a379fea9ed8dc98495210f flutter_voice_processor: 53afbf59ad3feb82f4a379fea9ed8dc98495210f
fluttertoast: 31b00dabfa7fb7bacd9e7dbee580d7a2ff4bf265 fluttertoast: fafc4fa4d01a6a9e4f772ecd190ffa525e9e2d9c
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
g711_flutter: 8f2769052d2cf3549f83d11e1c42d81d94441123 g711_flutter: 8f2769052d2cf3549f83d11e1c42d81d94441123
google_maps_flutter_ios: d1318b4ff711612cab16862d7a87e31a7403d458 google_maps_flutter_ios: abdac20d6ce8931f6ebc5f46616df241bfaa2cfd
GoogleMaps: 20d7b12be49a14287f797e88e0e31bc4156aaeb4 GoogleMaps: 20d7b12be49a14287f797e88e0e31bc4156aaeb4
image_gallery_saver: cb43cc43141711190510e92c460eb1655cd343cb image_gallery_saver: cb43cc43141711190510e92c460eb1655cd343cb
image_picker_ios: 99dfe1854b4fa34d0364e74a78448a0151025425 image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
ios-voice-processor: 8e32d7f980a06d392d128ef1cd19cf6ddcaca3c1 ios-voice-processor: 8e32d7f980a06d392d128ef1cd19cf6ddcaca3c1
just_audio: baa7252489dbcf47a4c7cc9ca663e9661c99aafa just_audio: baa7252489dbcf47a4c7cc9ca663e9661c99aafa
network_info_plus: 6d0c3eb8367b8164fa3fb0c19875e3f59d49697f network_info_plus: 6d0c3eb8367b8164fa3fb0c19875e3f59d49697f
package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6 permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6
Protobuf: d94761c33f1239c0a43a0817ca1a5f7f7c900241 Protobuf: 6a4183ec1d51649eb2be7b86ccc286e5c539219c
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825 ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
reactive_ble_mobile: 9ce6723d37ccf701dbffd202d487f23f5de03b4c reactive_ble_mobile: 9ce6723d37ccf701dbffd202d487f23f5de03b4c
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695 shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a
SwiftProtobuf: 407a385e97fd206c4fbe880cc84123989167e0d1 SwiftProtobuf: 69f02cd54fb03201c5e6bf8b76f687c5ef7541a3
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196 Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812 url_launcher_ios: bf5ce03e0e2088bad9cc378ea97fa0ed5b49673b
video_player_avfoundation: 81e49bb3d9fb63dccf9fa0f6d877dc3ddbeac126 video_player_avfoundation: 81e49bb3d9fb63dccf9fa0f6d877dc3ddbeac126
webview_flutter_wkwebview: 4f3e50f7273d31e5500066ed267e3ae4309c5ae4 webview_flutter_wkwebview: 2e2d318f21a5e036e2c3f26171342e95908bd60a
PODFILE CHECKSUM: 42aa7ffc6134b996f93caa6a9b6a2b5b580ff28a PODFILE CHECKSUM: 42aa7ffc6134b996f93caa6a9b6a2b5b580ff28a
COCOAPODS: 1.14.3 COCOAPODS: 1.12.1

View File

@ -7,18 +7,18 @@ import 'package:star_lock/main/lockDetail/electronicKey/massSendElectronicKey/ma
import 'package:star_lock/main/lockDetail/electronicKey/massSendElectronicKey/massSendLockGroupList/massSendLockGroupList_page.dart'; import 'package:star_lock/main/lockDetail/electronicKey/massSendElectronicKey/massSendLockGroupList/massSendLockGroupList_page.dart';
import 'package:star_lock/main/lockDetail/electronicKey/massSendElectronicKey/massSendLockGroupList/massSendReceiver/massSendReceiver_page.dart'; import 'package:star_lock/main/lockDetail/electronicKey/massSendElectronicKey/massSendLockGroupList/massSendReceiver/massSendReceiver_page.dart';
import 'package:star_lock/main/lockDetail/face/faceDetail/faceDetail_page.dart'; import 'package:star_lock/main/lockDetail/face/faceDetail/faceDetail_page.dart';
import 'package:star_lock/main/lockDetail/lcokSet/addFamily/addFamily_page.dart'; import 'package:star_lock/main/lockDetail/lockSet/addFamily/addFamily_page.dart';
import 'package:star_lock/main/lockDetail/lcokSet/catEyeSet/catEyeCustomMode/catEyeCustomMode_page.dart'; import 'package:star_lock/main/lockDetail/lockSet/catEyeSet/catEyeCustomMode/catEyeCustomMode_page.dart';
import 'package:star_lock/main/lockDetail/lcokSet/catEyeSet/catEyeSet/catEyeSet_page.dart'; import 'package:star_lock/main/lockDetail/lockSet/catEyeSet/catEyeSet/catEyeSet_page.dart';
import 'package:star_lock/main/lockDetail/lcokSet/catEyeSet/videoSlot/videoSlot_page.dart'; import 'package:star_lock/main/lockDetail/lockSet/catEyeSet/videoSlot/videoSlot_page.dart';
import 'package:star_lock/main/lockDetail/lcokSet/faceUnlock/faceUnlock_page.dart'; import 'package:star_lock/main/lockDetail/lockSet/faceUnlock/faceUnlock_page.dart';
import 'package:star_lock/main/lockDetail/lcokSet/familyDetails/familyDetails_page.dart'; import 'package:star_lock/main/lockDetail/lockSet/familyDetails/familyDetails_page.dart';
import 'package:star_lock/main/lockDetail/lcokSet/liveVideo/liveVideo_page.dart'; import 'package:star_lock/main/lockDetail/lockSet/liveVideo/liveVideo_page.dart';
import 'package:star_lock/main/lockDetail/lcokSet/lockUser/lockUser_page.dart'; import 'package:star_lock/main/lockDetail/lockSet/lockUser/lockUser_page.dart';
import 'package:star_lock/main/lockDetail/lcokSet/motorPower/motorPower_page.dart'; import 'package:star_lock/main/lockDetail/lockSet/motorPower/motorPower_page.dart';
import 'package:star_lock/main/lockDetail/lcokSet/msgNotification/msgNotification/msgNotification_page.dart'; import 'package:star_lock/main/lockDetail/lockSet/msgNotification/msgNotification/msgNotification_page.dart';
import 'package:star_lock/main/lockDetail/lcokSet/notificationMode/notificationMode_page.dart'; import 'package:star_lock/main/lockDetail/lockSet/notificationMode/notificationMode_page.dart';
import 'package:star_lock/main/lockDetail/lcokSet/openDoorDirection/openDoorDirection_page.dart'; import 'package:star_lock/main/lockDetail/lockSet/openDoorDirection/openDoorDirection_page.dart';
import 'package:star_lock/main/lockDetail/lockDetail/lockDetail_main_page.dart'; import 'package:star_lock/main/lockDetail/lockDetail/lockDetail_main_page.dart';
import 'package:star_lock/main/lockDetail/passwordKey/passwordKeyDetailChangeDate/passwordKeyDetailChangeDate_page.dart'; import 'package:star_lock/main/lockDetail/passwordKey/passwordKeyDetailChangeDate/passwordKeyDetailChangeDate_page.dart';
import 'package:star_lock/mine/about/webviewShow_page.dart'; import 'package:star_lock/mine/about/webviewShow_page.dart';
@ -41,7 +41,7 @@ import 'common/safetyVerification/safetyVerification_page.dart';
import 'login/forgetPassword/starLock_forgetPassword_page.dart'; import 'login/forgetPassword/starLock_forgetPassword_page.dart';
import 'login/login/starLock_login_page.dart'; import 'login/login/starLock_login_page.dart';
import 'login/register/starLock_register_page.dart'; import 'login/register/starLock_register_page.dart';
import 'login/seletCountryRegion/seletCountryRegion_page.dart'; import 'login/selectCountryRegion/selectCountryRegion_page.dart';
import 'main/lockDetail/card/addCardType/addCardManage/addCardTypeManage_page.dart'; import 'main/lockDetail/card/addCardType/addCardManage/addCardTypeManage_page.dart';
import 'main/lockDetail/card/addICCard/addICCard_page.dart'; import 'main/lockDetail/card/addICCard/addICCard_page.dart';
import 'main/lockDetail/card/cardDetail/cardDetail_page.dart'; import 'main/lockDetail/card/cardDetail/cardDetail_page.dart';
@ -64,45 +64,45 @@ import 'main/lockDetail/face/addFace/addFace_page.dart';
import 'main/lockDetail/face/addFaceType/addFaceTypeManage/addFaceTypeManage_page.dart'; import 'main/lockDetail/face/addFaceType/addFaceTypeManage/addFaceTypeManage_page.dart';
import 'main/lockDetail/face/faceList/faceList_page.dart'; import 'main/lockDetail/face/faceList/faceList_page.dart';
import 'main/lockDetail/fingerprint/addFingerprint/addFingerprint_page.dart'; import 'main/lockDetail/fingerprint/addFingerprint/addFingerprint_page.dart';
import 'main/lockDetail/fingerprint/addFingerprintSeletType/addFingerprintManage/addFingerprintTypeManage_page.dart'; import 'main/lockDetail/fingerprint/addFingerprintSelectType/addFingerprintManage/addFingerprintTypeManage_page.dart';
import 'main/lockDetail/fingerprint/addFingerprintTip/addFingerprintTip_page.dart'; import 'main/lockDetail/fingerprint/addFingerprintTip/addFingerprintTip_page.dart';
import 'main/lockDetail/fingerprint/fingerprintDetail/fingerprintDetail_page.dart'; import 'main/lockDetail/fingerprint/fingerprintDetail/fingerprintDetail_page.dart';
import 'main/lockDetail/fingerprint/fingerprintList/fingerprintList_page.dart'; import 'main/lockDetail/fingerprint/fingerprintList/fingerprintList_page.dart';
import 'main/lockDetail/lcokSet/automaticBlocking/automaticBlocking_page.dart'; import 'main/lockDetail/lockSet/automaticBlocking/automaticBlocking_page.dart';
import 'main/lockDetail/lcokSet/basicInformation/adminOpenLockPassword/adminOpenLockPassword_page.dart'; import 'main/lockDetail/lockSet/basicInformation/adminOpenLockPassword/adminOpenLockPassword_page.dart';
import 'main/lockDetail/lcokSet/basicInformation/basicInformation/basicInformation_page.dart'; import 'main/lockDetail/lockSet/basicInformation/basicInformation/basicInformation_page.dart';
import 'main/lockDetail/lcokSet/basicInformation/editLockName/editLockName_page.dart'; import 'main/lockDetail/lockSet/basicInformation/editLockName/editLockName_page.dart';
import 'main/lockDetail/lcokSet/basicInformation/lockSeletGrouping/lockSeletGrouping_page.dart'; import 'main/lockDetail/lockSet/basicInformation/lockSelectGrouping/lockSelectGrouping_page.dart';
import 'main/lockDetail/lcokSet/basicInformation/uploadElectricQuantity/uploadElectricQuantity_page.dart'; import 'main/lockDetail/lockSet/basicInformation/uploadElectricQuantity/uploadElectricQuantity_page.dart';
import 'main/lockDetail/lcokSet/burglarAlarm/burglarAlarm_page.dart'; import 'main/lockDetail/lockSet/burglarAlarm/burglarAlarm_page.dart';
import 'main/lockDetail/lcokSet/catEyeSet/catEyeWorkMode/catEyeWorkMode_page.dart'; import 'main/lockDetail/lockSet/catEyeSet/catEyeWorkMode/catEyeWorkMode_page.dart';
import 'main/lockDetail/lcokSet/checkInCreatCompany/checkInCreatCompany_page.dart'; import 'main/lockDetail/lockSet/checkInCreatCompany/checkInCreatCompany_page.dart';
import 'main/lockDetail/lcokSet/configuringWifi/configuringWifi_page.dart'; import 'main/lockDetail/lockSet/configuringWifi/configuringWifi_page.dart';
import 'main/lockDetail/lcokSet/diagnose/diagnose_page.dart'; import 'main/lockDetail/lockSet/diagnose/diagnose_page.dart';
import 'main/lockDetail/lcokSet/doorMagnetic/addDoorMagnetic/addDoorMagnetic_page.dart'; import 'main/lockDetail/lockSet/doorMagnetic/addDoorMagnetic/addDoorMagnetic_page.dart';
import 'main/lockDetail/lcokSet/doorMagnetic/doorMagneticList/doorMagnetic_page.dart'; import 'main/lockDetail/lockSet/doorMagnetic/doorMagneticList/doorMagnetic_page.dart';
import 'main/lockDetail/lcokSet/doorMagnetic/nearbyDoorMagnetic/nearbyDoorMagnetic_page.dart'; import 'main/lockDetail/lockSet/doorMagnetic/nearbyDoorMagnetic/nearbyDoorMagnetic_page.dart';
import 'main/lockDetail/lcokSet/importOtherLockData/ImportOtherLockData_page.dart'; import 'main/lockDetail/lockSet/importOtherLockData/ImportOtherLockData_page.dart';
import 'main/lockDetail/lcokSet/lockEscalation/lockEscalation_page.dart'; import 'main/lockDetail/lockSet/lockEscalation/lockEscalation_page.dart';
import 'main/lockDetail/lcokSet/lockSet/lockSet_page.dart'; import 'main/lockDetail/lockSet/lockSet/lockSet_page.dart';
import 'main/lockDetail/lcokSet/lockSoundSet/lockSoundSet_page.dart'; import 'main/lockDetail/lockSet/lockSoundSet/lockSoundSet_page.dart';
import 'main/lockDetail/lcokSet/lockTime/lockTime_page.dart'; import 'main/lockDetail/lockSet/lockTime/lockTime_page.dart';
import 'main/lockDetail/lcokSet/markedHouseState/markedHouseState_page.dart'; import 'main/lockDetail/lockSet/markedHouseState/markedHouseState_page.dart';
import 'main/lockDetail/lcokSet/msgNotification/coerceOpenDoor/coerceFingerprint/coerceFingerprint_page.dart'; import 'main/lockDetail/lockSet/msgNotification/coerceOpenDoor/coerceFingerprint/coerceFingerprint_page.dart';
import 'main/lockDetail/lcokSet/msgNotification/coerceOpenDoor/coerceFingerprintList/coerceFingerprintList_page.dart'; import 'main/lockDetail/lockSet/msgNotification/coerceOpenDoor/coerceFingerprintList/coerceFingerprintList_page.dart';
import 'main/lockDetail/lcokSet/msgNotification/coerceOpenDoor/coerceOpenDoor/coerceOpenDoor_page.dart'; import 'main/lockDetail/lockSet/msgNotification/coerceOpenDoor/coerceOpenDoor/coerceOpenDoor_page.dart';
import 'main/lockDetail/lcokSet/msgNotification/lowBatteryReminder/lowBatteryReminder_page.dart'; import 'main/lockDetail/lockSet/msgNotification/lowBatteryReminder/lowBatteryReminder_page.dart';
import 'main/lockDetail/lcokSet/msgNotification/nDaysUnopened/nDaysUnopened_page.dart'; import 'main/lockDetail/lockSet/msgNotification/nDaysUnopened/nDaysUnopened_page.dart';
import 'main/lockDetail/lcokSet/msgNotification/openDoorNotify/openDoorNotify_page.dart'; import 'main/lockDetail/lockSet/msgNotification/openDoorNotify/openDoorNotify_page.dart';
import 'main/lockDetail/lcokSet/normallyOpenMode/normallyOpenMode_page.dart'; import 'main/lockDetail/lockSet/normallyOpenMode/normallyOpenMode_page.dart';
import 'main/lockDetail/lcokSet/remoteUnlocking/remoteUnlocking_page.dart'; import 'main/lockDetail/lockSet/remoteUnlocking/remoteUnlocking_page.dart';
import 'main/lockDetail/lcokSet/resetButton/resetButton_page.dart'; import 'main/lockDetail/lockSet/resetButton/resetButton_page.dart';
import 'main/lockDetail/lcokSet/unlockQRCode/unlockQRCode_page.dart'; import 'main/lockDetail/lockSet/unlockQRCode/unlockQRCode_page.dart';
import 'main/lockDetail/lcokSet/uploadData/uploadData_page.dart'; import 'main/lockDetail/lockSet/uploadData/uploadData_page.dart';
import 'main/lockDetail/lcokSet/wirelessKeyboard/addWirelessKeyboard/addWirelessKeyboard_page.dart'; import 'main/lockDetail/lockSet/wirelessKeyboard/addWirelessKeyboard/addWirelessKeyboard_page.dart';
import 'main/lockDetail/lcokSet/wirelessKeyboard/addWirelessKeyboardScreenNotLightOn/addWirelessKeyboardScreenNotLightOn_page.dart'; import 'main/lockDetail/lockSet/wirelessKeyboard/addWirelessKeyboardScreenNotLightOn/addWirelessKeyboardScreenNotLightOn_page.dart';
import 'main/lockDetail/lcokSet/wirelessKeyboard/seletWirelessKeyboard/seletWirelessKeyboard_page.dart'; import 'main/lockDetail/lockSet/wirelessKeyboard/selectWirelessKeyboard/selectWirelessKeyboard_page.dart';
import 'main/lockDetail/lcokSet/wirelessKeyboard/wirelessKeyboardList/wirelessKeyboard_page.dart'; import 'main/lockDetail/lockSet/wirelessKeyboard/wirelessKeyboardList/wirelessKeyboard_page.dart';
import 'main/lockDetail/monitoring/monitoring/lockMonitoring_page.dart'; import 'main/lockDetail/monitoring/monitoring/lockMonitoring_page.dart';
import 'main/lockDetail/monitoring/monitoringRealTimeScreen/monitoringRealTimeScreen_page.dart'; import 'main/lockDetail/monitoring/monitoringRealTimeScreen/monitoringRealTimeScreen_page.dart';
import 'main/lockDetail/realTimePicture/realTimePicture_page.dart'; import 'main/lockDetail/realTimePicture/realTimePicture_page.dart';
@ -132,16 +132,16 @@ import 'main/lockDetail/passwordKey/passwordKeyDetail/passwordKeyDetail_page.dar
import 'main/lockDetail/passwordKey/passwordKeyList/passwordKeyList_page.dart'; import 'main/lockDetail/passwordKey/passwordKeyList/passwordKeyList_page.dart';
import 'main/lockDetail/passwordKey/passwordKeyManage/passwordKeyManage_page.dart'; import 'main/lockDetail/passwordKey/passwordKeyManage/passwordKeyManage_page.dart';
import 'main/lockMian/lockMain/lockMain_page.dart'; import 'main/lockMian/lockMain/lockMain_page.dart';
import 'mine/addLock/addLockSeletCountry/addLockSeletCountry_page.dart'; import 'mine/addLock/addLockSelectCountry/addLockSelectCountry_page.dart';
import 'mine/addLock/lockAddress/gaode/lockAddressGaoDe_page.dart'; import 'mine/addLock/lockAddress/gaode/lockAddressGaoDe_page.dart';
import 'mine/addLock/lockAddress/lockAddress/lockAddress_page.dart'; import 'mine/addLock/lockAddress/lockAddress/lockAddress_page.dart';
import 'mine/addLock/nearbyLock/nearbyLock_page.dart'; import 'mine/addLock/nearbyLock/nearbyLock_page.dart';
import 'mine/addLock/saveLock/saveLock_page.dart'; import 'mine/addLock/saveLock/saveLock_page.dart';
import 'mine/addLock/seletLockType/seletLockType_page.dart'; import 'mine/addLock/selectLockType/selectLockType_page.dart';
import 'mine/gateway/addGateway/gatewayConfigurationWifi/gatewayConfigurationWifi_page.dart'; import 'mine/gateway/addGateway/gatewayConfigurationWifi/gatewayConfigurationWifi_page.dart';
import 'mine/gateway/addGateway/seletGateway/seletGatewayList_page.dart'; import 'mine/gateway/addGateway/selectGateway/selectGatewayList_page.dart';
import 'mine/gateway/addGateway/seletGatewayType/seletGatewayType_page.dart'; import 'mine/gateway/addGateway/selectGatewayType/selectGatewayType_page.dart';
import 'mine/gateway/addGateway/seletGatewayTypeNextTip/seletGatewayTypeNextTip_page.dart'; import 'mine/gateway/addGateway/selectGatewayTypeNextTip/selectGatewayTypeNextTip_page.dart';
import 'mine/gateway/gatewayConnectionLock/gatewayConnectionLockList_page.dart'; import 'mine/gateway/gatewayConnectionLock/gatewayConnectionLockList_page.dart';
import 'mine/gateway/gatewayDetail/gatewayDetail_page.dart'; import 'mine/gateway/gatewayDetail/gatewayDetail_page.dart';
import 'mine/gateway/gatewayList/gatewayList_page.dart'; import 'mine/gateway/gatewayList/gatewayList_page.dart';
@ -184,7 +184,7 @@ abstract class Routers {
static const initial = '/'; // static const initial = '/'; //
static const starLockMain = '/StarLockMain'; // static const starLockMain = '/StarLockMain'; //
static const starLockMinePage = '/StarLockMinePage'; // static const starLockMinePage = '/StarLockMinePage'; //
static const seletLockTypePage = '/SeletLockTypePage'; // static const selectLockTypePage = '/SelectLockTypePage'; //
static const LockMallPage = '/LockMallPage'; // static const LockMallPage = '/LockMallPage'; //
static const addLockPage = '/AddLockPage'; // static const addLockPage = '/AddLockPage'; //
static const nearbyLockPage = '/NearbyLockPage'; // static const nearbyLockPage = '/NearbyLockPage'; //
@ -231,7 +231,7 @@ abstract class Routers {
static const uploadElectricQuantityPage = static const uploadElectricQuantityPage =
'/UploadElectricQuantityPage'; // '/UploadElectricQuantityPage'; //
static const editLockNamePage = '/EditLockNamePage'; // static const editLockNamePage = '/EditLockNamePage'; //
static const lockSeletGroupingPage = '/LockSeletGroupingPage'; // static const lockSelectGroupingPage = '/LockSelectGroupingPage'; //
static const groupEditLockPage = '/GroupEditLockPage'; // static const groupEditLockPage = '/GroupEditLockPage'; //
static const adminOpenLockPasswordPage = static const adminOpenLockPasswordPage =
'/AdminOpenLockPasswordPage'; // '/AdminOpenLockPasswordPage'; //
@ -239,8 +239,8 @@ abstract class Routers {
static const addWirelessKeyboardPage = '/AddWirelessKeyboardPage'; // static const addWirelessKeyboardPage = '/AddWirelessKeyboardPage'; //
static const addWirelessKeyboardScreenNotLightOnPage = static const addWirelessKeyboardScreenNotLightOnPage =
'/AddWirelessKeyboardScreenNotLightOnPage'; // '/AddWirelessKeyboardScreenNotLightOnPage'; //
static const seletWirelessKeyboardPage = static const selectWirelessKeyboardPage =
'/SeletWirelessKeyboardPage'; // '/SelectWirelessKeyboardPage'; //
static const doorMagneticPage = '/DoorMagneticPage'; // static const doorMagneticPage = '/DoorMagneticPage'; //
static const addDoorMagneticPage = '/AddDoorMagneticPage'; // static const addDoorMagneticPage = '/AddDoorMagneticPage'; //
static const nearbyDoorMagneticPage = '/NearbyDoorMagneticPage'; // static const nearbyDoorMagneticPage = '/NearbyDoorMagneticPage'; //
@ -297,17 +297,17 @@ abstract class Routers {
static const gatewayDetailPage = '/GatewayDetailPage'; // - static const gatewayDetailPage = '/GatewayDetailPage'; // -
static const gatewayConnectionLockPage = static const gatewayConnectionLockPage =
'/GatewayConnectionLockPage'; // - '/GatewayConnectionLockPage'; // -
static const seletGatewayTypePage = '/SeletGatewayTypePage'; // - static const selectGatewayTypePage = '/SelectGatewayTypePage'; // -
static const seletGatewayTypeNextTipPage = static const selectGatewayTypeNextTipPage =
'/SeletGatewayTypeNextTipPage'; // - '/SelectGatewayTypeNextTipPage'; // -
static const seletGatewayPage = '/SeletGatewayPage'; // - static const selectGatewayPage = '/SelectGatewayPage'; // -
static const gatewayConfigurationWifiPage = static const gatewayConfigurationWifiPage =
'/GatewayConfigurationWifiPage'; // -wifi '/GatewayConfigurationWifiPage'; // -wifi
static const messageListPage = '/MessageListPage'; // - static const messageListPage = '/MessageListPage'; // -
static const supportStaffPage = '/SupportStaffPage'; // - static const supportStaffPage = '/SupportStaffPage'; // -
static const valueAddedServicesPage = '/ValueAddedServicesPage'; // - static const valueAddedServicesPage = '/ValueAddedServicesPage'; // -
static const abountPage = '/AbountPage'; // - static const aboutPage = '/AboutPage'; // -
static const valueAddedServicesNoteAndEmailDetailPage = static const valueAddedServicesNoteAndEmailDetailPage =
'/ValueAddedServicesNoteAndEmailDetailPage'; // - '/ValueAddedServicesNoteAndEmailDetailPage'; // -
@ -351,7 +351,7 @@ abstract class Routers {
static const starLockRegisterPage = '/StarLockRegisterPage'; // static const starLockRegisterPage = '/StarLockRegisterPage'; //
static const starLockForgetPasswordPage = static const starLockForgetPasswordPage =
'/StarLockForgetPasswordPage'; // '/StarLockForgetPasswordPage'; //
static const seletCountryRegionPage = '/SeletCountryRegionPage'; // static const selectCountryRegionPage = '/SelectCountryRegionPage'; //
static const safetyVerificationPage = '/SafetyVerificationPage'; // static const safetyVerificationPage = '/SafetyVerificationPage'; //
static const keyOperationRecordPage = '/keyOperationRecordPage'; //- static const keyOperationRecordPage = '/keyOperationRecordPage'; //-
@ -373,7 +373,8 @@ abstract class Routers {
static const webviewShowPage = '/webviewShowPage'; // static const webviewShowPage = '/webviewShowPage'; //
static const demoModeLockDetailPage = '/DemoModeLockDetailPage'; // static const demoModeLockDetailPage = '/DemoModeLockDetailPage'; //
static const demoModeLockSetPage = '/DemoModeLockSetPage'; // static const demoModeLockSetPage = '/DemoModeLockSetPage'; //
static const addLockSeletCountryPage = '/AddLockSeletCountryPage'; // static const addLockSelectCountryPage =
'/AddLockSelectCountryPage'; //
static const faceUnlockPage = '/faceUnlockPage'; // static const faceUnlockPage = '/faceUnlockPage'; //
static const motorPowerPage = '/motorPowerPage'; // static const motorPowerPage = '/motorPowerPage'; //
static const openDoorDirectionPage = '/openDoorDirectionPage'; // static const openDoorDirectionPage = '/openDoorDirectionPage'; //
@ -438,8 +439,8 @@ abstract class AppRouters {
page: () => const StarLockMinePage(), page: () => const StarLockMinePage(),
), ),
GetPage( GetPage(
name: Routers.seletLockTypePage, name: Routers.selectLockTypePage,
page: () => const SeletLockTypePage(), page: () => const SelectLockTypePage(),
), ),
GetPage( GetPage(
name: Routers.LockMallPage, name: Routers.LockMallPage,
@ -554,8 +555,8 @@ abstract class AppRouters {
page: () => const StarLockForgetPasswordPage(), page: () => const StarLockForgetPasswordPage(),
), ),
GetPage( GetPage(
name: Routers.seletCountryRegionPage, name: Routers.selectCountryRegionPage,
page: () => const SeletCountryRegionPage(), page: () => const SelectCountryRegionPage(),
), ),
GetPage( GetPage(
name: Routers.lockSetPage, name: Routers.lockSetPage,
@ -574,8 +575,8 @@ abstract class AppRouters {
page: () => const EditLockNamePage(), page: () => const EditLockNamePage(),
), ),
GetPage( GetPage(
name: Routers.lockSeletGroupingPage, name: Routers.lockSelectGroupingPage,
page: () => const LockSeletGroupingPage(), page: () => const LockSelectGroupingPage(),
), ),
GetPage( GetPage(
name: Routers.adminOpenLockPasswordPage, name: Routers.adminOpenLockPasswordPage,
@ -594,8 +595,8 @@ abstract class AppRouters {
page: () => const AddWirelessKeyboardScreenNotLightOnPage(), page: () => const AddWirelessKeyboardScreenNotLightOnPage(),
), ),
GetPage( GetPage(
name: Routers.seletWirelessKeyboardPage, name: Routers.selectWirelessKeyboardPage,
page: () => const SeletWirelessKeyboardPage(), page: () => const SelectWirelessKeyboardPage(),
), ),
GetPage( GetPage(
name: Routers.doorMagneticPage, name: Routers.doorMagneticPage,
@ -750,8 +751,8 @@ abstract class AppRouters {
page: () => const ValueAddedServicesListPage(), page: () => const ValueAddedServicesListPage(),
), ),
GetPage( GetPage(
name: Routers.abountPage, name: Routers.aboutPage,
page: () => const AbountPage(), page: () => const AboutPage(),
), ),
GetPage( GetPage(
name: Routers.gatewayDetailPage, name: Routers.gatewayDetailPage,
@ -762,16 +763,16 @@ abstract class AppRouters {
page: () => const GatewayConnectionLockListPage(), page: () => const GatewayConnectionLockListPage(),
), ),
GetPage( GetPage(
name: Routers.seletGatewayTypePage, name: Routers.selectGatewayTypePage,
page: () => const SeletGatewayTypePage(), page: () => const SelectGatewayTypePage(),
), ),
GetPage( GetPage(
name: Routers.seletGatewayTypeNextTipPage, name: Routers.selectGatewayTypeNextTipPage,
page: () => const SeletGatewayTypeNextTipPage(), page: () => const SelectGatewayTypeNextTipPage(),
), ),
GetPage( GetPage(
name: Routers.seletGatewayPage, name: Routers.selectGatewayPage,
page: () => const SeletGatewayListPage(), page: () => const SelectGatewayListPage(),
), ),
GetPage( GetPage(
name: Routers.gatewayConfigurationWifiPage, name: Routers.gatewayConfigurationWifiPage,
@ -927,8 +928,8 @@ abstract class AppRouters {
name: Routers.demoModeLockDetailPage, name: Routers.demoModeLockDetailPage,
page: () => const DemoModeLockDetailPage()), page: () => const DemoModeLockDetailPage()),
GetPage( GetPage(
name: Routers.addLockSeletCountryPage, name: Routers.addLockSelectCountryPage,
page: () => const AddLockSeletCountryPage()), page: () => const AddLockSelectCountryPage()),
GetPage(name: Routers.faceUnlockPage, page: () => const FaceUnlockPage()), GetPage(name: Routers.faceUnlockPage, page: () => const FaceUnlockPage()),
GetPage(name: Routers.motorPowerPage, page: () => const MotorPowerPage()), GetPage(name: Routers.motorPowerPage, page: () => const MotorPowerPage()),
GetPage( GetPage(

View File

@ -90,7 +90,7 @@ class _StarLockLoginPageState extends State<StarLockLoginPage> {
state.agree.value = !state.agree.value; state.agree.value = !state.agree.value;
logic.changeAgreeState(); logic.changeAgreeState();
}, },
child: Image.asset(state.agree.value ? 'images/icon_round_selet.png' : 'images/icon_round_unSelet.png', width: 30.w, height: 30.w,) child: Image.asset(state.agree.value ? 'images/icon_round_select.png' : 'images/icon_round_unSelect.png', width: 30.w, height: 30.w,)
)), )),
SizedBox(width: 15.w,), SizedBox(width: 15.w,),
Flexible( Flexible(

View File

@ -41,7 +41,7 @@ class _StarLockRegisterPageState extends State<StarLockRegisterPage> {
body: ListView( body: ListView(
padding: EdgeInsets.only(top: 40.h, left: 40.w, right: 40.w), padding: EdgeInsets.only(top: 40.h, left: 40.w, right: 40.w),
children: [ children: [
topSeletCountryAndRegionWidget(), topSelectCountryAndRegionWidget(),
middleTFWidget(), middleTFWidget(),
Obx(() { Obx(() {
return SubmitBtn( return SubmitBtn(
@ -65,7 +65,7 @@ class _StarLockRegisterPageState extends State<StarLockRegisterPage> {
)); ));
} }
Widget topSeletCountryAndRegionWidget() { Widget topSelectCountryAndRegionWidget() {
return Column( return Column(
children: [ children: [
SizedBox(height: 50.h), SizedBox(height: 50.h),
@ -142,7 +142,7 @@ class _StarLockRegisterPageState extends State<StarLockRegisterPage> {
GestureDetector( GestureDetector(
onTap: () async { onTap: () async {
var result = await Navigator.pushNamed( var result = await Navigator.pushNamed(
context, Routers.seletCountryRegionPage); context, Routers.selectCountryRegionPage);
if (result != null) { if (result != null) {
result as Map<String, dynamic>; result as Map<String, dynamic>;
logic.state.countryCode.value = result['code']; logic.state.countryCode.value = result['code'];

View File

@ -1,7 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:star_lock/app_settings/app_colors.dart'; import 'package:star_lock/app_settings/app_colors.dart';
import 'package:star_lock/login/seletCountryRegion/common/countryRegionEntity.dart'; import 'package:star_lock/login/selectCountryRegion/common/countryRegionEntity.dart';
class Utils { class Utils {
static String getImgPath(String name, {String format = 'png'}) { static String getImgPath(String name, {String format = 'png'}) {

View File

@ -2,7 +2,7 @@ import 'package:azlistview/azlistview.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:star_lock/login/seletCountryRegion/common/countryRegionEntity.dart'; import 'package:star_lock/login/selectCountryRegion/common/countryRegionEntity.dart';
import 'package:star_lock/network/api_repository.dart'; import 'package:star_lock/network/api_repository.dart';
import 'package:star_lock/tools/baseGetXController.dart'; import 'package:star_lock/tools/baseGetXController.dart';
@ -11,14 +11,14 @@ import '../../tools/titleAppBar.dart';
import '../../translations/trans_lib.dart'; import '../../translations/trans_lib.dart';
import 'common/index.dart'; import 'common/index.dart';
class SeletCountryRegionPage extends StatefulWidget { class SelectCountryRegionPage extends StatefulWidget {
const SeletCountryRegionPage({Key? key}) : super(key: key); const SelectCountryRegionPage({Key? key}) : super(key: key);
@override @override
State<SeletCountryRegionPage> createState() => _SeletCountryRegionPageState(); State<SelectCountryRegionPage> createState() => _SelectCountryRegionPageState();
} }
class _SeletCountryRegionPageState extends State<SeletCountryRegionPage> { class _SelectCountryRegionPageState extends State<SelectCountryRegionPage> {
List<CountryRegionModel> countriesList = []; List<CountryRegionModel> countriesList = [];
@override @override
@ -72,7 +72,7 @@ class _SeletCountryRegionPageState extends State<SeletCountryRegionPage> {
backgroundColor: const Color(0xFFFFFFFF), backgroundColor: const Color(0xFFFFFFFF),
appBar: TitleAppBar( appBar: TitleAppBar(
barTitle: barTitle:
"${TranslationLoader.lanKeys!.selet!.tr} ${TranslationLoader.lanKeys!.countryAndRegion!.tr}", "${TranslationLoader.lanKeys!.select!.tr} ${TranslationLoader.lanKeys!.countryAndRegion!.tr}",
haveBack: true, haveBack: true,
backgroundColor: AppColors.mainColor, backgroundColor: AppColors.mainColor,
), ),

View File

@ -284,13 +284,13 @@ class AuthorizedAdminLogic extends BaseGetXController {
}, },
), ),
CupertinoDialogAction( CupertinoDialogAction(
child: Text(TranslationLoader.lanKeys!.selet!.tr), child: Text(TranslationLoader.lanKeys!.select!.tr),
onPressed: () async { onPressed: () async {
// //
state.isCreateUser.value = true; state.isCreateUser.value = true;
Navigator.of(context).pop(); Navigator.of(context).pop();
var result = await Get.toNamed(Routers.seletCountryRegionPage); var result = await Get.toNamed(Routers.selectCountryRegionPage);
if (result != null) { if (result != null) {
result as Map<String, dynamic>; result as Map<String, dynamic>;
state.countryCode.value = result['code']; state.countryCode.value = result['code'];

View File

@ -101,7 +101,7 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
), ),
action: () async { action: () async {
var result = await Navigator.pushNamed( var result = await Navigator.pushNamed(
context, Routers.seletCountryRegionPage); context, Routers.selectCountryRegionPage);
if (result != null) { if (result != null) {
result as Map<String, dynamic>; result as Map<String, dynamic>;
state.countryCode.value = result['code']; state.countryCode.value = result['code'];

View File

@ -136,7 +136,7 @@ class _VolumeAuthorizationLockPageState
), ),
action: () async { action: () async {
var result = await Navigator.pushNamed( var result = await Navigator.pushNamed(
context, Routers.seletCountryRegionPage); context, Routers.selectCountryRegionPage);
if (result != null) { if (result != null) {
result as Map<String, dynamic>; result as Map<String, dynamic>;
countryCode = result['code']; countryCode = result['code'];
@ -203,7 +203,7 @@ class _VolumeAuthorizationLockPageState
CommonItem( CommonItem(
leftTitel: TranslationLoader.lanKeys!.lock!.tr, leftTitel: TranslationLoader.lanKeys!.lock!.tr,
rightTitle: _lockIdList.isEmpty rightTitle: _lockIdList.isEmpty
? TranslationLoader.lanKeys!.pleaseSelet!.tr ? TranslationLoader.lanKeys!.pleaseSelect!.tr
: _lockIdList.length.toString(), : _lockIdList.length.toString(),
isHaveDirection: true, isHaveDirection: true,
action: () { action: () {

View File

@ -26,9 +26,9 @@ class _AddCardManageTabbarState extends State<AddCardManageTabbar> with SingleTi
late TabController _tabController; late TabController _tabController;
final List<ItemView> _itemTabs = <ItemView>[ final List<ItemView> _itemTabs = <ItemView>[
ItemView(title: TranslationLoader.lanKeys!.permanent!.tr, seletType: "0"), ItemView(title: TranslationLoader.lanKeys!.permanent!.tr, selectType: "0"),
ItemView(title: TranslationLoader.lanKeys!.timeLimit!.tr, seletType: "1"), ItemView(title: TranslationLoader.lanKeys!.timeLimit!.tr, selectType: "1"),
ItemView(title: TranslationLoader.lanKeys!.circulation!.tr, seletType: "2"), ItemView(title: TranslationLoader.lanKeys!.circulation!.tr, selectType: "2"),
]; ];
@override @override
@ -98,7 +98,7 @@ class _AddCardManageTabbarState extends State<AddCardManageTabbar> with SingleTi
controller: _tabController, controller: _tabController,
children: _itemTabs children: _itemTabs
.map((ItemView item) => AddCardPage( .map((ItemView item) => AddCardPage(
seletType: item.seletType, selectType: item.selectType,
lockId: widget.lockId, lockId: widget.lockId,
fromType: widget.fromType, fromType: widget.fromType,
fromTypeTwoStaffName:widget.fromTypeTwoStaffName fromTypeTwoStaffName:widget.fromTypeTwoStaffName
@ -109,8 +109,8 @@ class _AddCardManageTabbarState extends State<AddCardManageTabbar> with SingleTi
} }
class ItemView { class ItemView {
const ItemView({required this.title, required this.seletType}); const ItemView({required this.title, required this.selectType});
final String title; final String title;
final String seletType; final String selectType;
} }

View File

@ -14,11 +14,11 @@ class AddCardTypeLogic extends BaseGetXController{
var fingerprintType = 0; // :1;23:4 var fingerprintType = 0; // :1;23:4
var startDate = ""; var startDate = "";
var endDate = ""; var endDate = "";
if (state.seletType.value == "0") { if (state.selectType.value == "0") {
fingerprintType = 1; fingerprintType = 1;
startDate = "0"; startDate = "0";
endDate = "0"; endDate = "0";
} else if (state.seletType.value == "1") { } else if (state.selectType.value == "1") {
fingerprintType = 2; fingerprintType = 2;
if (state.beginTimeTimestamp.value.isEmpty) { if (state.beginTimeTimestamp.value.isEmpty) {
showToast("请选择开始时间"); showToast("请选择开始时间");
@ -42,7 +42,7 @@ class AddCardTypeLogic extends BaseGetXController{
startDate = state.beginTimeTimestamp.value; startDate = state.beginTimeTimestamp.value;
endDate = state.endTimeTimestamp.value; endDate = state.endTimeTimestamp.value;
} else if (state.seletType.value == "2") { } else if (state.selectType.value == "2") {
if (state.effectiveDateTime.value <= 0) { if (state.effectiveDateTime.value <= 0) {
showToast("请选择生效时间"); showToast("请选择生效时间");
return; return;

View File

@ -15,14 +15,14 @@ import '../../../../translations/trans_lib.dart';
import 'addCardType_logic.dart'; import 'addCardType_logic.dart';
class AddCardPage extends StatefulWidget { class AddCardPage extends StatefulWidget {
final String seletType; // final String selectType; //
final int lockId; final int lockId;
final int fromType; // // 1 2 final int fromType; // // 1 2
final String fromTypeTwoStaffName; // final String fromTypeTwoStaffName; //
const AddCardPage( const AddCardPage(
{Key? key, {Key? key,
required this.seletType, required this.selectType,
required this.lockId, required this.lockId,
required this.fromType, required this.fromType,
required this.fromTypeTwoStaffName}) required this.fromTypeTwoStaffName})
@ -38,7 +38,7 @@ class _AddCardPageState extends State<AddCardPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
state.seletType.value = widget.seletType; state.selectType.value = widget.selectType;
state.lockId.value = widget.lockId; state.lockId.value = widget.lockId;
// state.nameController.text = widget.fromTypeTwoStaffName; // state.nameController.text = widget.fromTypeTwoStaffName;
@ -49,7 +49,7 @@ class _AddCardPageState extends State<AddCardPage> {
} }
Widget indexChangeWidget() { Widget indexChangeWidget() {
switch (int.parse(widget.seletType)) { switch (int.parse(widget.selectType)) {
case 0: case 0:
{ {
// //
@ -193,7 +193,7 @@ class _AddCardPageState extends State<AddCardPage> {
onClick: () async { onClick: () async {
var isDemoMode = await Storage.getBool(ifIsDemoModeOrNot); var isDemoMode = await Storage.getBool(ifIsDemoModeOrNot);
if (isDemoMode == false) { if (isDemoMode == false) {
// print("state.seletType:${state.seletType.value}"); // print("state.selectType:${state.selectType.value}");
if (state.nameController.text.isEmpty) { if (state.nameController.text.isEmpty) {
logic.showToast("请输入姓名"); logic.showToast("请输入姓名");
return; return;
@ -201,7 +201,7 @@ class _AddCardPageState extends State<AddCardPage> {
logic.checkCardNameDuplicated(state.nameController.text); logic.checkCardNameDuplicated(state.nameController.text);
} else { } else {
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}), }),

View File

@ -5,7 +5,7 @@ import 'package:get/get.dart';
class AddCardTypeState{ class AddCardTypeState{
final lockId = 0.obs; final lockId = 0.obs;
final seletType = "0".obs;// 0 1 2 final selectType = "0".obs;// 0 1 2
final fromType = 1.obs; // // 1 2 final fromType = 1.obs; // // 1 2
final isStressFingerprint = false.obs; final isStressFingerprint = false.obs;

View File

@ -50,7 +50,7 @@ class _CardListPageState extends State<CardListPage> with RouteAware {
if (isDemoMode == false) { if (isDemoMode == false) {
showDeletAlertDialog(context); showDeletAlertDialog(context);
} else { } else {
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}, },

View File

@ -51,7 +51,7 @@ class _CheckingInAddHolidaysPageState extends State<CheckingInAddHolidaysPage> {
builder: (context) { builder: (context) {
return ShowCalendar( return ShowCalendar(
datePickerMode: DatePickerMode.day, datePickerMode: DatePickerMode.day,
seletAction: (dateTime) { selectAction: (dateTime) {
String beginDate = formatDate(dateTime, [yyyy,'-',mm,'-',dd]); String beginDate = formatDate(dateTime, [yyyy,'-',mm,'-',dd]);
state.beginDate.value = beginDate; state.beginDate.value = beginDate;
Get.back(); Get.back();
@ -70,7 +70,7 @@ class _CheckingInAddHolidaysPageState extends State<CheckingInAddHolidaysPage> {
builder: (context) { builder: (context) {
return ShowCalendar( return ShowCalendar(
datePickerMode: DatePickerMode.day, datePickerMode: DatePickerMode.day,
seletAction: (dateTime) { selectAction: (dateTime) {
String endDate = formatDate(dateTime, [yyyy,'-',mm,'-',dd]); String endDate = formatDate(dateTime, [yyyy,'-',mm,'-',dd]);
state.endDate.value = endDate; state.endDate.value = endDate;
Get.back(); Get.back();
@ -88,7 +88,7 @@ class _CheckingInAddHolidaysPageState extends State<CheckingInAddHolidaysPage> {
builder: (context) { builder: (context) {
return ShowCalendar( return ShowCalendar(
datePickerMode: DatePickerMode.day, datePickerMode: DatePickerMode.day,
seletAction: (dateTime) { selectAction: (dateTime) {
String makeUpWorkDate = formatDate(dateTime, [yyyy,'-',mm,'-',dd]); String makeUpWorkDate = formatDate(dateTime, [yyyy,'-',mm,'-',dd]);
state.makeUpWorkDate.value = makeUpWorkDate; state.makeUpWorkDate.value = makeUpWorkDate;
Get.back(); Get.back();
@ -147,7 +147,7 @@ class _CheckingInAddHolidaysPageState extends State<CheckingInAddHolidaysPage> {
child: Row( child: Row(
children: [ children: [
Image.asset( Image.asset(
'images/icon_round_unSelet.png', 'images/icon_round_unSelect.png',
width: 40.w, width: 40.w,
height: 40.w, height: 40.w,
), ),

View File

@ -12,7 +12,7 @@ class CheckingInSetHolidaysLogic extends BaseGetXController{
void editStaffLoadData() async{ void editStaffLoadData() async{
var entity = await ApiRepository.to.holidaysListData( var entity = await ApiRepository.to.holidaysListData(
companyId: state.companyId.value, companyId: state.companyId.value,
vacationYear: state.seletYear.value.toString(), vacationYear: state.selectYear.value.toString(),
); );
if(entity.errorCode!.codeIsSuccessful){ if(entity.errorCode!.codeIsSuccessful){
state.holidaysListData.value = entity.data!.holidayList!; state.holidaysListData.value = entity.data!.holidayList!;

View File

@ -205,7 +205,7 @@ class _CheckingInSetHolidaysPageState extends State<CheckingInSetHolidaysPage> {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Text( Text(
"${state.seletYear.value}${TranslationLoader.lanKeys!.year!.tr}", "${state.selectYear.value}${TranslationLoader.lanKeys!.year!.tr}",
style: TextStyle(color: Colors.white, fontSize: 26.sp), style: TextStyle(color: Colors.white, fontSize: 26.sp),
), ),
SizedBox( SizedBox(
@ -259,7 +259,7 @@ class _CheckingInSetHolidaysPageState extends State<CheckingInSetHolidaysPage> {
minDate: PDuration(year: 1900), minDate: PDuration(year: 1900),
maxDate: PDuration(year: 2100), maxDate: PDuration(year: 2100),
onConfirm: (p) { onConfirm: (p) {
state.seletYear.value = p.year!; state.selectYear.value = p.year!;
logic.editStaffLoadData(); logic.editStaffLoadData();
print("longer >>> 返回数据:${p.year}"); print("longer >>> 返回数据:${p.year}");
}, },

View File

@ -7,7 +7,7 @@ import 'checkingInSetHolidays_entity.dart';
class CheckingInSetHolidaysState{ class CheckingInSetHolidaysState{
final companyId = "".obs; final companyId = "".obs;
final mouth = "".obs; final mouth = "".obs;
final seletYear = DateTime.now().year.obs; final selectYear = DateTime.now().year.obs;
final holidaysListData = <HolidaysMonthListData>[].obs; final holidaysListData = <HolidaysMonthListData>[].obs;
CheckingInSetHolidaysState() { CheckingInSetHolidaysState() {

View File

@ -37,7 +37,7 @@ class AttendanceRecordMonthList {
String? staffName; String? staffName;
int? staffId; int? staffId;
int? attendanceType; int? attendanceType;
String? countryCode; int? countryCode;
int? openingTimeStart; int? openingTimeStart;
String? attendanceWay; String? attendanceWay;
int? avgTime; int? avgTime;

View File

@ -44,7 +44,7 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
"getKeyInfosData": state.getKeyInfosData.value, "getKeyInfosData": state.getKeyInfosData.value,
}); });
}else{ }else{
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}, },
@ -71,9 +71,19 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
child: Column( child: Column(
children: [ children: [
SizedBox(height: 30.h), SizedBox(height: 30.h),
Image.asset('images/main/icon_checkInRankingListTop.png', width: 120.w, height: 120.w), Obx(() => Container(
width: 110.w,
height: 110.w,
padding: EdgeInsets.all(10.w),
decoration: BoxDecoration(
color: AppColors.mainColor,
borderRadius: BorderRadius.circular(60.w),
),
child: Image.asset(getTopImg(), width: 120.w, height: 120.w)
)
),
SizedBox(height: 10.h), SizedBox(height: 10.h),
Text(TranslationLoader.lanKeys!.noAttendanceRecord!.tr, style: TextStyle(fontSize: 24.sp)), Obx(() => Text(getTopTitle(), style: TextStyle(color: Colors.black, fontSize: 24.sp))),
SizedBox(height: 30.h), SizedBox(height: 30.h),
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -94,7 +104,7 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
logic.loadDataByType(); logic.loadDataByType();
}); });
}else{ }else{
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}, },
@ -131,7 +141,7 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
logic.loadDataByType(); logic.loadDataByType();
}); });
}else{ }else{
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}, },
@ -161,7 +171,7 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
builder: (context) { builder: (context) {
return ShowCalendar( return ShowCalendar(
datePickerMode: DatePickerMode.day, datePickerMode: DatePickerMode.day,
seletAction: (dateTime) { selectAction: (dateTime) {
setState(() { setState(() {
state.checkListDateTimestamp.value = dateTime.millisecondsSinceEpoch; state.checkListDateTimestamp.value = dateTime.millisecondsSinceEpoch;
String beginDate = formatDate(dateTime, state.isDay.value ? [mm,'-',dd] : [mm]); String beginDate = formatDate(dateTime, state.isDay.value ? [mm,'-',dd] : [mm]);
@ -172,7 +182,7 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
}); });
}); });
}else{ }else{
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}, },
@ -295,7 +305,7 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
child: Row( child: Row(
children: [ children: [
SizedBox(width: 30.w,), SizedBox(width: 30.w,),
Text("1", style: TextStyle(fontSize: 20.sp),), Text("${index+1}", style: TextStyle(fontSize: 20.sp),),
SizedBox(width: 20.w,), SizedBox(width: 20.w,),
Image.asset('images/controls_user.png', width: 40.w, height: 40.w,), Image.asset('images/controls_user.png', width: 40.w, height: 40.w,),
// Container( // Container(
@ -333,7 +343,7 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
if(isDemoMode == false){ if(isDemoMode == false){
showListType(); showListType();
}else{ }else{
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}, },
@ -387,4 +397,24 @@ class _CheckingInListPageState extends State<CheckingInListPage> {
}); });
}); });
} }
String getTopImg(){
if(state.listType.value == "1"){
return "images/main/icon_lockDetail_checkInRanking_zd.png";
}else if(state.listType.value == "2"){
return "images/main/icon_lockDetail_checkInRanking_cd.png";
}else{
return "images/main/icon_lockDetail_checkInRanking_qf.png";
}
}
String getTopTitle(){
if(state.listType.value == "1"){
return "无考勤记录";
}else if(state.listType.value == "2"){
return "大家干劲十足";
}else{
return "工作时长未出炉";
}
}
} }

View File

@ -1,7 +1,10 @@
import 'package:get/get.dart';
import '../../../../network/api_repository.dart'; import '../../../../network/api_repository.dart';
import '../../../../tools/baseGetXController.dart'; import '../../../../tools/baseGetXController.dart';
import '../../../../tools/dateTool.dart'; import '../../../../tools/dateTool.dart';
import '../../../../tools/eventBusEventManage.dart';
import 'checkingInSet_state.dart'; import 'checkingInSet_state.dart';
class CheckingInSetLogic extends BaseGetXController{ class CheckingInSetLogic extends BaseGetXController{
@ -57,6 +60,17 @@ class CheckingInSetLogic extends BaseGetXController{
} }
} }
//
void deletCompanyData() async{
var entity = await ApiRepository.to.deletCompanyData(
companyId:state.checkingInSetInfo.value.companyId!,
);
if(entity.errorCode!.codeIsSuccessful){
eventBus.fire(LockSetChangeSetRefreshLockDetailWithType(0, "0"));
Get.close(2);
}
}
// late StreamSubscription _teamEvent; // late StreamSubscription _teamEvent;
// void _initLoadDataAction() { // void _initLoadDataAction() {
// _teamEvent = eventBus.on<RefreshCheckInStaffListDataEvent>().listen((event) { // _teamEvent = eventBus.on<RefreshCheckInStaffListDataEvent>().listen((event) {

View File

@ -1,3 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
@ -122,7 +123,9 @@ class _CheckingInSetPageState extends State<CheckingInSetPage> {
isDelete: true, isDelete: true,
margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 20.w), margin: EdgeInsets.only(left: 30.w, right: 30.w, top: 20.w),
padding: EdgeInsets.only(top: 20.w, bottom: 20.w), padding: EdgeInsets.only(top: 20.w, bottom: 20.w),
onClick: () {}), onClick: () {
showDeletCompanyAlertDialog(context);
}),
], ],
), ),
); );
@ -196,4 +199,30 @@ class _CheckingInSetPageState extends State<CheckingInSetPage> {
); );
} }
void showDeletCompanyAlertDialog(context) {
showCupertinoDialog(
context: context,
builder: (context) {
return CupertinoAlertDialog(
title: const Text("提示"),
content: const Text('是否删除?'),
actions: [
CupertinoDialogAction(
child: Text(TranslationLoader.lanKeys!.cancel!.tr),
onPressed: () {
Get.back();
},
),
CupertinoDialogAction(
child: Text(TranslationLoader.lanKeys!.sure!.tr),
onPressed: () {
Get.back();
logic.deletCompanyData();
},
),
],
);
},
);
}
} }

View File

@ -33,8 +33,8 @@ class _CheckingInSetWorkdaySetState extends State<CheckingInSetWorkdaySet> {
body: ListView( body: ListView(
children: [ children: [
topBtnWidget(), topBtnWidget(),
Obx(() => Visibility(visible: state.isCustom.value, child: bottomCustomSeletBtn())), Obx(() => Visibility(visible: state.isCustom.value, child: bottomCustomSelectBtn())),
Obx(() => Visibility(visible: !state.isCustom.value, child: bottomOddOrEvenDaysOffSeletBtn())), Obx(() => Visibility(visible: !state.isCustom.value, child: bottomOddOrEvenDaysOffSelectBtn())),
SizedBox(height: 50.h,), SizedBox(height: 50.h,),
Container( Container(
margin: EdgeInsets.only(left: 20.w, right: 20.w), margin: EdgeInsets.only(left: 20.w, right: 20.w),
@ -113,7 +113,7 @@ class _CheckingInSetWorkdaySetState extends State<CheckingInSetWorkdaySet> {
); );
} }
Widget bottomOddOrEvenDaysOffSeletBtn() { Widget bottomOddOrEvenDaysOffSelectBtn() {
return Container( return Container(
padding: EdgeInsets.only(left: 10.w, right: 10.w), padding: EdgeInsets.only(left: 10.w, right: 10.w),
child: Column( child: Column(
@ -138,7 +138,7 @@ class _CheckingInSetWorkdaySetState extends State<CheckingInSetWorkdaySet> {
}, },
child: Row( child: Row(
children: [ children: [
Image.asset(state.isSingledayWeekend.value == 0 ? 'images/icon_round_selet.png' : 'images/icon_round_unSelet.png', width: 30.w, height: 30.w,), Image.asset(state.isSingledayWeekend.value == 0 ? 'images/icon_round_select.png' : 'images/icon_round_unSelect.png', width: 30.w, height: 30.w,),
], ],
), ),
) )
@ -158,7 +158,7 @@ class _CheckingInSetWorkdaySetState extends State<CheckingInSetWorkdaySet> {
}, },
child: Row( child: Row(
children: [ children: [
Image.asset(state.isSingledayWeekend.value == 1 ? 'images/icon_round_selet.png' : 'images/icon_round_unSelet.png', width: 30.w, height: 30.w,), Image.asset(state.isSingledayWeekend.value == 1 ? 'images/icon_round_select.png' : 'images/icon_round_unSelect.png', width: 30.w, height: 30.w,),
], ],
), ),
) )
@ -168,7 +168,7 @@ class _CheckingInSetWorkdaySetState extends State<CheckingInSetWorkdaySet> {
); );
} }
Widget bottomCustomSeletBtn() { Widget bottomCustomSelectBtn() {
return Container( return Container(
padding: EdgeInsets.only(left: 10.w, right: 10.w), padding: EdgeInsets.only(left: 10.w, right: 10.w),
height: 420.h, height: 420.h,
@ -224,7 +224,7 @@ class _CheckingInSetWorkdaySetState extends State<CheckingInSetWorkdaySet> {
}, },
child: Obx(() => Row( child: Obx(() => Row(
children: [ children: [
Image.asset(state.weekDays.value.contains(index) ? 'images/icon_round_selet.png' : 'images/icon_round_unSelet.png', width: 30.w, height: 30.w,), Image.asset(state.weekDays.value.contains(index) ? 'images/icon_round_select.png' : 'images/icon_round_unSelect.png', width: 30.w, height: 30.w,),
], ],
))) )))
); );

View File

@ -1,14 +1,14 @@
class CheckingInAddStaffSeletKeyEntity { class CheckingInAddStaffSelectKeyEntity {
int? errorCode; int? errorCode;
String? description; String? description;
String? errorMsg; String? errorMsg;
List<CheckingInAddStaffKeyEntity>? data; List<CheckingInAddStaffKeyEntity>? data;
CheckingInAddStaffSeletKeyEntity( CheckingInAddStaffSelectKeyEntity(
{this.errorCode, this.description, this.errorMsg, this.data}); {this.errorCode, this.description, this.errorMsg, this.data});
CheckingInAddStaffSeletKeyEntity.fromJson(Map<String, dynamic> json) { CheckingInAddStaffSelectKeyEntity.fromJson(Map<String, dynamic> json) {
errorCode = json['errorCode']; errorCode = json['errorCode'];
description = json['description']; description = json['description'];
errorMsg = json['errorMsg']; errorMsg = json['errorMsg'];

View File

@ -4,10 +4,10 @@ import 'package:get/get.dart';
import 'package:star_lock/tools/baseGetXController.dart'; import 'package:star_lock/tools/baseGetXController.dart';
import '../../../../../network/api_repository.dart'; import '../../../../../network/api_repository.dart';
import '../../../../../tools/eventBusEventManage.dart'; import '../../../../../tools/eventBusEventManage.dart';
import 'checkingInAddStaffSeletKey_entity.dart'; import 'checkingInAddStaffSelectKey_entity.dart';
import 'checkingInAddStaff_state.dart'; import 'checkingInAddStaff_state.dart';
typedef KeyClickCallback = void Function(List<CheckingInAddStaffKeyEntity> seletKeyList); typedef KeyClickCallback = void Function(List<CheckingInAddStaffKeyEntity> selectKeyList);
class CheckingInAddStaffLogic extends BaseGetXController{ class CheckingInAddStaffLogic extends BaseGetXController{
CheckingInAddStaffState state = CheckingInAddStaffState(); CheckingInAddStaffState state = CheckingInAddStaffState();
@ -25,7 +25,7 @@ class CheckingInAddStaffLogic extends BaseGetXController{
void addStaffLoadData() async{ void addStaffLoadData() async{
var attendanceWay = ""; var attendanceWay = "";
var usernameType = "1"; var usernameType = "1";
switch(int.parse(state.seletPrintingMethodType.value)){ switch(int.parse(state.selectPrintingMethodType.value)){
case 1: case 1:
// APP // APP
if(state.appUnHaveAccount.value){ if(state.appUnHaveAccount.value){
@ -41,7 +41,7 @@ class CheckingInAddStaffLogic extends BaseGetXController{
return; return;
} }
}else { }else {
attendanceWay = state.seletKey.value; attendanceWay = state.selectKey.value;
if(attendanceWay.isEmpty){ if(attendanceWay.isEmpty){
showToast("请选择员工钥匙"); showToast("请选择员工钥匙");
@ -62,7 +62,7 @@ class CheckingInAddStaffLogic extends BaseGetXController{
} }
var entity = await ApiRepository.to.addStaffData( var entity = await ApiRepository.to.addStaffData(
attendanceType: state.seletPrintingMethodType.value, attendanceType: state.selectPrintingMethodType.value,
attendanceWay: attendanceWay, attendanceWay: attendanceWay,
companyId: state.companyId.value, companyId: state.companyId.value,
have: state.appUnHaveAccount.value ? "2" : "1", have: state.appUnHaveAccount.value ? "2" : "1",
@ -78,10 +78,10 @@ class CheckingInAddStaffLogic extends BaseGetXController{
} }
// - 1APP234attendanceWay分别为用户名 // - 1APP234attendanceWay分别为用户名
void addStaffSeletKey(KeyClickCallback kyClickCallback) async{ void addStaffSelectKey(KeyClickCallback kyClickCallback) async{
var entity = await ApiRepository.to.addStaffSeletKeyData( var entity = await ApiRepository.to.addStaffSelectKeyData(
companyId: state.companyId.value, companyId: state.companyId.value,
type:state.seletPrintingMethodType.value, type:state.selectPrintingMethodType.value,
); );
if(entity.errorCode!.codeIsSuccessful){ if(entity.errorCode!.codeIsSuccessful){
state.keyEntity.value = entity.data!; state.keyEntity.value = entity.data!;
@ -93,7 +93,7 @@ class CheckingInAddStaffLogic extends BaseGetXController{
void editStaffLoadData() async{ void editStaffLoadData() async{
var attendanceWay = ""; var attendanceWay = "";
var usernameType = "1"; var usernameType = "1";
switch(int.parse(state.seletPrintingMethodType.value)){ switch(int.parse(state.selectPrintingMethodType.value)){
case 1: case 1:
// APP // APP
if(state.appUnHaveAccount.value){ if(state.appUnHaveAccount.value){
@ -109,7 +109,7 @@ class CheckingInAddStaffLogic extends BaseGetXController{
return; return;
} }
}else { }else {
attendanceWay = state.seletKey.value; attendanceWay = state.selectKey.value;
if(attendanceWay.isEmpty){ if(attendanceWay.isEmpty){
showToast("请选择员工钥匙"); showToast("请选择员工钥匙");
@ -130,7 +130,7 @@ class CheckingInAddStaffLogic extends BaseGetXController{
} }
var entity = await ApiRepository.to.editStaffData( var entity = await ApiRepository.to.editStaffData(
attendanceType: state.seletPrintingMethodType.value, attendanceType: state.selectPrintingMethodType.value,
attendanceWay: attendanceWay, attendanceWay: attendanceWay,
staffId: state.staffListItemData.value.staffId.toString(), staffId: state.staffListItemData.value.staffId.toString(),
have: state.appUnHaveAccount.value ? "2" : "1", have: state.appUnHaveAccount.value ? "2" : "1",

View File

@ -44,12 +44,12 @@ class _CheckingInAddStaffPageState extends State<CheckingInAddStaffPage> {
state.staffNameController)), state.staffNameController)),
Obx(() => CommonItem( Obx(() => CommonItem(
leftTitel: TranslationLoader.lanKeys!.punchingMode!.tr, leftTitel: TranslationLoader.lanKeys!.punchingMode!.tr,
rightTitle: state.seletPrintingMethodStr.value, rightTitle: state.selectPrintingMethodStr.value,
isHaveLine: false, isHaveLine: false,
isHaveDirection: true, isHaveDirection: true,
action: () { action: () {
var list = ["APP", "密码", "", "指纹"]; var list = ["APP", "密码", "", "指纹"];
_showSeletClockInType(list, "1"); _showSelectClockInType(list, "1");
})), })),
SizedBox( SizedBox(
height: 10.h, height: 10.h,
@ -82,7 +82,7 @@ class _CheckingInAddStaffPageState extends State<CheckingInAddStaffPage> {
// App时显示 // App时显示
Obx(() => Visibility( Obx(() => Visibility(
visible: (state.appUnHaveAccount.value && visible: (state.appUnHaveAccount.value &&
state.seletPrintingMethodType.value == "1") state.selectPrintingMethodType.value == "1")
? true ? true
: false, : false,
child: Column( child: Column(
@ -111,7 +111,7 @@ class _CheckingInAddStaffPageState extends State<CheckingInAddStaffPage> {
), ),
action: () async { action: () async {
var result = await Navigator.pushNamed( var result = await Navigator.pushNamed(
context, Routers.seletCountryRegionPage); context, Routers.selectCountryRegionPage);
if (result != null) { if (result != null) {
result as Map<String, dynamic>; result as Map<String, dynamic>;
state.countryCode.value = result['code']; state.countryCode.value = result['code'];
@ -125,8 +125,7 @@ class _CheckingInAddStaffPageState extends State<CheckingInAddStaffPage> {
)), )),
// //
Obx(() => Visibility( Obx(() => Visibility(
visible: (state.seletPrintingMethodType.value != "1" && visible: (state.selectPrintingMethodType.value != "1" && state.appUnHaveAccount.value)
state.appUnHaveAccount.value)
? true ? true
: false, : false,
child: CommonItem( child: CommonItem(
@ -135,24 +134,21 @@ class _CheckingInAddStaffPageState extends State<CheckingInAddStaffPage> {
isHaveRightWidget: true, isHaveRightWidget: true,
rightWidget: Row( rightWidget: Row(
children: [ children: [
Obx(() => Text(state.getDataPassword.value, Obx(() => Text(state.getDataPassword.value, style: TextStyle(fontSize: 24.sp))),
style: TextStyle(fontSize: 24.sp))), SizedBox(width: 30.w),
SizedBox( SizedBox(
width: 30.w, width: 150.w,
),
SizedBox(
width: 130.w,
height: 40.h, height: 40.h,
child: ElevatedButton( child: ElevatedButton(
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
backgroundColor: AppColors.mainColor, backgroundColor: AppColors.mainColor,
), ),
child: Text(addStaffSeletKeyType(), child: Text(addStaffSelectKeyType(),
style: TextStyle( style: TextStyle(
color: Colors.white, fontSize: 22.sp)), color: Colors.white, fontSize: 22.sp)),
onPressed: () async { onPressed: () async {
switch (int.parse( switch (int.parse(
state.seletPrintingMethodType.value)) { state.selectPrintingMethodType.value)) {
case 2: case 2:
// //
logic.getKeyboardPwdRequest(); logic.getKeyboardPwdRequest();
@ -210,16 +206,16 @@ class _CheckingInAddStaffPageState extends State<CheckingInAddStaffPage> {
visible: !state.appUnHaveAccount.value, visible: !state.appUnHaveAccount.value,
child: CommonItem( child: CommonItem(
leftTitel: addStaffGetKeyType(), leftTitel: addStaffGetKeyType(),
rightTitle: state.seletKey.value, rightTitle: state.selectKey.value,
isHaveLine: false, isHaveLine: false,
isHaveDirection: true, isHaveDirection: true,
action: () { action: () {
logic.addStaffSeletKey((v) { logic.addStaffSelectKey((v) {
var list = []; var list = [];
for (var element in v) { for (var element in v) {
list.add(element.attendanceWay); list.add(element.attendanceWay);
} }
_showSeletClockInType(list, "2"); _showSelectClockInType(list, "2");
}); });
}), }),
)), )),
@ -283,7 +279,7 @@ class _CheckingInAddStaffPageState extends State<CheckingInAddStaffPage> {
} }
// type 1 2 // type 1 2
void _showSeletClockInType(List list, String type) { void _showSelectClockInType(List list, String type) {
ShowBottomSheetTool().showSingleRowPicker( ShowBottomSheetTool().showSingleRowPicker(
// //
context, context,
@ -300,14 +296,14 @@ class _CheckingInAddStaffPageState extends State<CheckingInAddStaffPage> {
clickCallBack: (int index, var str) { clickCallBack: (int index, var str) {
setState(() { setState(() {
if (type == "1") { if (type == "1") {
state.seletPrintingMethodType.value = (index + 1).toString(); state.selectPrintingMethodType.value = (index + 1).toString();
state.seletPrintingMethodStr.value = str.toString(); state.selectPrintingMethodStr.value = str.toString();
state.getDataPassword.value = ""; state.getDataPassword.value = "";
} else { } else {
state.seletKey.value = str.toString(); state.selectKey.value = str.toString();
} }
print( print(
"object:$index str:$str type:$type state.seletPrintingMethodType.value:${state.seletPrintingMethodType.value}"); "object:$index str:$str type:$type state.selectPrintingMethodType.value:${state.selectPrintingMethodType.value}");
}); });
}); });
} }
@ -320,8 +316,8 @@ class _CheckingInAddStaffPageState extends State<CheckingInAddStaffPage> {
children: [ children: [
Image.asset( Image.asset(
appUnHaveAccount appUnHaveAccount
? 'images/icon_round_selet.png' ? 'images/icon_round_select.png'
: 'images/icon_round_unSelet.png', : 'images/icon_round_unSelect.png',
width: 26.w, width: 26.w,
height: 26.w, height: 26.w,
), ),
@ -341,7 +337,7 @@ class _CheckingInAddStaffPageState extends State<CheckingInAddStaffPage> {
String addStaffGetIfHaveKey() { String addStaffGetIfHaveKey() {
String title = ""; String title = "";
switch (int.parse(state.seletPrintingMethodType.value)) { switch (int.parse(state.selectPrintingMethodType.value)) {
case 1: case 1:
title = TranslationLoader.lanKeys!.whetherTheEmployeeHasAKey!.tr; title = TranslationLoader.lanKeys!.whetherTheEmployeeHasAKey!.tr;
break; break;
@ -360,7 +356,7 @@ class _CheckingInAddStaffPageState extends State<CheckingInAddStaffPage> {
String addStaffGetKeyType() { String addStaffGetKeyType() {
String title = ""; String title = "";
switch (int.parse(state.seletPrintingMethodType.value)) { switch (int.parse(state.selectPrintingMethodType.value)) {
case 1: case 1:
title = TranslationLoader.lanKeys!.accountNumber!.tr; title = TranslationLoader.lanKeys!.accountNumber!.tr;
break; break;
@ -377,9 +373,9 @@ class _CheckingInAddStaffPageState extends State<CheckingInAddStaffPage> {
return title; return title;
} }
String addStaffSeletKeyType() { String addStaffSelectKeyType() {
String title = ""; String title = "";
switch (int.parse(state.seletPrintingMethodType.value)) { switch (int.parse(state.selectPrintingMethodType.value)) {
case 1: case 1:
title = TranslationLoader.lanKeys!.getKey!.tr; title = TranslationLoader.lanKeys!.getKey!.tr;
break; break;

View File

@ -4,7 +4,7 @@ import 'package:get/get.dart';
import '../../../../lockMian/entity/lockListInfo_entity.dart'; import '../../../../lockMian/entity/lockListInfo_entity.dart';
import '../checkingInSetStaffList/checkingInStaffList_entity.dart'; import '../checkingInSetStaffList/checkingInStaffList_entity.dart';
import 'checkingInAddStaffSeletKey_entity.dart'; import 'checkingInAddStaffSelectKey_entity.dart';
class CheckingInAddStaffState{ class CheckingInAddStaffState{
final getKeyInfosData = LockListInfoItemEntity().obs; final getKeyInfosData = LockListInfoItemEntity().obs;
@ -14,15 +14,15 @@ class CheckingInAddStaffState{
final TextEditingController staffNameController = TextEditingController(); final TextEditingController staffNameController = TextEditingController();
final TextEditingController staffAccountController = TextEditingController(); final TextEditingController staffAccountController = TextEditingController();
final seletPrintingMethodType = "1".obs;// final selectPrintingMethodType = "1".obs;//
final seletPrintingMethodStr = "APP".obs;// final selectPrintingMethodStr = "APP".obs;//
final countryName = "中国".obs; final countryName = "中国".obs;
final countryCode = "86".obs; final countryCode = "86".obs;
final appUnHaveAccount = true.obs;// final appUnHaveAccount = true.obs;//
final keyEntity = <CheckingInAddStaffKeyEntity>[].obs;// final keyEntity = <CheckingInAddStaffKeyEntity>[].obs;//
final seletKey = "".obs; final selectKey = "".obs;
final isAdd = "1".obs; // 1 2 final isAdd = "1".obs; // 1 2
final getDataPassword = "".obs; final getDataPassword = "".obs;
@ -37,25 +37,25 @@ class CheckingInAddStaffState{
staffListItemData.value = map["staffListItem"]; staffListItemData.value = map["staffListItem"];
staffNameController.text = staffListItemData.value.staffName!; staffNameController.text = staffListItemData.value.staffName!;
seletPrintingMethodType.value = staffListItemData.value.attendanceType.toString(); selectPrintingMethodType.value = staffListItemData.value.attendanceType.toString();
switch(staffListItemData.value.attendanceType){ switch(staffListItemData.value.attendanceType){
case 1: case 1:
seletPrintingMethodStr.value = "APP"; selectPrintingMethodStr.value = "APP";
break; break;
case 2: case 2:
seletPrintingMethodStr.value = "密码"; selectPrintingMethodStr.value = "密码";
break; break;
case 3: case 3:
seletPrintingMethodStr.value = ""; selectPrintingMethodStr.value = "";
break; break;
case 4: case 4:
seletPrintingMethodStr.value = "指纹"; selectPrintingMethodStr.value = "指纹";
break; break;
} }
if(staffListItemData.value.attendanceWay!.isNotEmpty){ if(staffListItemData.value.attendanceWay!.isNotEmpty){
appUnHaveAccount.value = false; appUnHaveAccount.value = false;
seletKey.value = staffListItemData.value.attendanceWay!; selectKey.value = staffListItemData.value.attendanceWay!;
}else{ }else{
appUnHaveAccount.value = true; appUnHaveAccount.value = true;
} }

View File

@ -36,7 +36,7 @@ class CheckingInAddStaffListItemEntity {
String? staffName; String? staffName;
int? staffId; int? staffId;
int? attendanceType; int? attendanceType;
String? countryCode; int? countryCode;
String? attendanceWay; String? attendanceWay;
CheckingInAddStaffListItemEntity( CheckingInAddStaffListItemEntity(

View File

@ -47,7 +47,7 @@ class _DoorLockLogPageState extends State<DoorLockLogPage> {
var isDemoMode = await Storage.getBool(ifIsDemoModeOrNot); var isDemoMode = await Storage.getBool(ifIsDemoModeOrNot);
if (isDemoMode == false) { if (isDemoMode == false) {
} else { } else {
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}, },

View File

@ -248,7 +248,7 @@ class _MassSendElectronicKeyPageState extends State<MassSendElectronicKeyPage> {
), ),
action: () async { action: () async {
var result = await Navigator.pushNamed( var result = await Navigator.pushNamed(
context, Routers.seletCountryRegionPage); context, Routers.selectCountryRegionPage);
if (result != null) { if (result != null) {
result as Map<String, dynamic>; result as Map<String, dynamic>;
countryCode = result['code']; countryCode = result['code'];
@ -260,7 +260,7 @@ class _MassSendElectronicKeyPageState extends State<MassSendElectronicKeyPage> {
CommonItem( CommonItem(
leftTitel: TranslationLoader.lanKeys!.lock!.tr, leftTitel: TranslationLoader.lanKeys!.lock!.tr,
rightTitle: _lockIdList.isEmpty rightTitle: _lockIdList.isEmpty
? TranslationLoader.lanKeys!.pleaseSelet!.tr ? TranslationLoader.lanKeys!.pleaseSelect!.tr
: _lockIdList.length.toString(), : _lockIdList.length.toString(),
isHaveDirection: true, isHaveDirection: true,
action: () { action: () {

View File

@ -201,8 +201,8 @@ class _LockUserListPageState extends State<LockUserListPage> {
}, },
child: Image.asset( child: Image.asset(
itemData.isCheck! itemData.isCheck!
? 'images/icon_round_selet.png' ? 'images/icon_round_select.png'
: 'images/icon_round_unSelet.png', : 'images/icon_round_unSelect.png',
width: 30.w, width: 30.w,
height: 30.w, height: 30.w,
)), )),

View File

@ -66,8 +66,8 @@ class massSendLockGroupCell extends StatelessWidget {
)), )),
Image.asset( Image.asset(
itemData.isChecked itemData.isChecked
? "images/icon_round_selet.png" ? "images/icon_round_select.png"
: "images/icon_round_unSelet.png", : "images/icon_round_unSelect.png",
width: 30.w, width: 30.w,
height: 30.w, height: 30.w,
), ),

View File

@ -123,15 +123,15 @@ class _MassSendLockGroupListPageState extends State<MassSendLockGroupListPage> {
// clickIndex = index; // clickIndex = index;
// //
if (itemData.isChecked) { if (itemData.isChecked) {
var seletList = itemData.lockList; var selectList = itemData.lockList;
for(LockListItem lockListItem in seletList!){ for(LockListItem lockListItem in selectList!){
lockListItem.isChecked = true; lockListItem.isChecked = true;
selectLockIdList.add(lockListItem.lockId); selectLockIdList.add(lockListItem.lockId);
} }
// lockItemList[selectIndex] = // lockItemList[selectIndex] =
}else{ }else{
var seletList = itemData.lockList; var selectList = itemData.lockList;
for(LockListItem lockListItem in seletList!){ for(LockListItem lockListItem in selectList!){
lockListItem.isChecked = false; lockListItem.isChecked = false;
selectLockIdList.remove(lockListItem.lockId); selectLockIdList.remove(lockListItem.lockId);
} }

View File

@ -80,7 +80,7 @@ class _MassSendReceiverPageState extends State<MassSendReceiverPage> {
), ),
action: () async { action: () async {
var result = await Navigator.pushNamed( var result = await Navigator.pushNamed(
context, Routers.seletCountryRegionPage); context, Routers.selectCountryRegionPage);
if (result != null) { if (result != null) {
result as Map<String, dynamic>; result as Map<String, dynamic>;
countryCode = result['code']; countryCode = result['code'];

View File

@ -106,7 +106,7 @@ class SendElectronicKeyLogic extends BaseGetXController {
), ),
CupertinoDialogAction( CupertinoDialogAction(
child: Text( child: Text(
TranslationLoader.lanKeys!.selet!.tr, TranslationLoader.lanKeys!.select!.tr,
style: TextStyle(color: AppColors.mainColor), style: TextStyle(color: AppColors.mainColor),
), ),
onPressed: () async { onPressed: () async {
@ -114,7 +114,7 @@ class SendElectronicKeyLogic extends BaseGetXController {
state.isCreateUser.value = true; state.isCreateUser.value = true;
Navigator.of(context).pop(); Navigator.of(context).pop();
var result = await Get.toNamed(Routers.seletCountryRegionPage); var result = await Get.toNamed(Routers.selectCountryRegionPage);
if (result != null) { if (result != null) {
result as Map<String, dynamic>; result as Map<String, dynamic>;
state.countryCode.value = result['code']; state.countryCode.value = result['code'];

View File

@ -139,7 +139,7 @@ class _SendElectronicKeyPageState extends State<SendElectronicKeyPage> {
), ),
action: () async { action: () async {
var result = await Navigator.pushNamed( var result = await Navigator.pushNamed(
context, Routers.seletCountryRegionPage); context, Routers.selectCountryRegionPage);
if (result != null) { if (result != null) {
result as Map<String, dynamic>; result as Map<String, dynamic>;
state.countryCode.value = result['code']; state.countryCode.value = result['code'];

View File

@ -21,9 +21,9 @@ class _AddFaceTypeManageTabbarState extends State<AddFaceTypeManageTabbar> with
late TabController _tabController; late TabController _tabController;
final List<ItemView> _itemTabs = <ItemView>[ final List<ItemView> _itemTabs = <ItemView>[
ItemView(title: TranslationLoader.lanKeys!.permanent!.tr, seletType: "0"), ItemView(title: TranslationLoader.lanKeys!.permanent!.tr, selectType: "0"),
ItemView(title: TranslationLoader.lanKeys!.timeLimit!.tr, seletType: "1"), ItemView(title: TranslationLoader.lanKeys!.timeLimit!.tr, selectType: "1"),
ItemView(title: TranslationLoader.lanKeys!.circulation!.tr, seletType: "2"), ItemView(title: TranslationLoader.lanKeys!.circulation!.tr, selectType: "2"),
]; ];
@override @override
@ -83,7 +83,7 @@ class _AddFaceTypeManageTabbarState extends State<AddFaceTypeManageTabbar> with
child: TabBarView( child: TabBarView(
controller: _tabController, controller: _tabController,
children: _itemTabs children: _itemTabs
.map((ItemView item) => AddFaceTypePage(seletType: item.seletType,)) .map((ItemView item) => AddFaceTypePage(selectType: item.selectType,))
.toList(), .toList(),
), ),
); );
@ -91,8 +91,8 @@ class _AddFaceTypeManageTabbarState extends State<AddFaceTypeManageTabbar> with
} }
class ItemView { class ItemView {
const ItemView({required this.title, required this.seletType}); const ItemView({required this.title, required this.selectType});
final String title; final String title;
final String seletType; final String selectType;
} }

View File

@ -14,9 +14,9 @@ import '../../../../translations/trans_lib.dart';
import 'addFaceType_logic.dart'; import 'addFaceType_logic.dart';
class AddFaceTypePage extends StatefulWidget { class AddFaceTypePage extends StatefulWidget {
final String seletType; final String selectType;
const AddFaceTypePage({Key? key, required this.seletType}) : super(key: key); const AddFaceTypePage({Key? key, required this.selectType}) : super(key: key);
@override @override
State<AddFaceTypePage> createState() => _AddFaceTypePageState(); State<AddFaceTypePage> createState() => _AddFaceTypePageState();
@ -32,7 +32,7 @@ class _AddFaceTypePageState extends State<AddFaceTypePage> {
} }
Widget indexChangeWidget() { Widget indexChangeWidget() {
switch (int.parse(widget.seletType)) { switch (int.parse(widget.selectType)) {
case 0: case 0:
{ {
// //
@ -176,14 +176,14 @@ class _AddFaceTypePageState extends State<AddFaceTypePage> {
onClick: () async { onClick: () async {
var isDemoMode = await Storage.getBool(ifIsDemoModeOrNot); var isDemoMode = await Storage.getBool(ifIsDemoModeOrNot);
if (isDemoMode == false) { if (isDemoMode == false) {
// print("state.seletType:${state.seletType.value}"); // print("state.selectType:${state.selectType.value}");
if (state.nameController.text.isEmpty) { if (state.nameController.text.isEmpty) {
logic.showToast("请输入姓名"); logic.showToast("请输入姓名");
return; return;
} }
logic.checkFaceNameDuplicated(state.nameController.text); logic.checkFaceNameDuplicated(state.nameController.text);
} else { } else {
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}), }),

View File

@ -46,7 +46,7 @@ class _FaceListState extends State<FaceList> {
if (isDemoMode == false) { if (isDemoMode == false) {
showDeletAlertDialog(context); showDeletAlertDialog(context);
} else { } else {
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}, },

View File

@ -25,9 +25,9 @@ class _AddFingerprintTypeManageTabbarState extends State<AddFingerprintTypeManag
late TabController _tabController; late TabController _tabController;
final List<ItemView> _itemTabs = <ItemView>[ final List<ItemView> _itemTabs = <ItemView>[
ItemView(title: TranslationLoader.lanKeys!.permanent!.tr, seletType: "0"), ItemView(title: TranslationLoader.lanKeys!.permanent!.tr, selectType: "0"),
ItemView(title: TranslationLoader.lanKeys!.timeLimit!.tr, seletType: "1"), ItemView(title: TranslationLoader.lanKeys!.timeLimit!.tr, selectType: "1"),
ItemView(title: TranslationLoader.lanKeys!.circulation!.tr, seletType: "2"), ItemView(title: TranslationLoader.lanKeys!.circulation!.tr, selectType: "2"),
]; ];
@override @override
@ -97,7 +97,7 @@ class _AddFingerprintTypeManageTabbarState extends State<AddFingerprintTypeManag
controller: _tabController, controller: _tabController,
children: _itemTabs children: _itemTabs
.map((ItemView item) => AddFingerprintTypePage( .map((ItemView item) => AddFingerprintTypePage(
seletType: item.seletType, selectType: item.selectType,
lockId: widget.lockId, lockId: widget.lockId,
fromType: widget.fromType, fromType: widget.fromType,
fromTypeTwoStaffName:widget.fromTypeTwoStaffName fromTypeTwoStaffName:widget.fromTypeTwoStaffName
@ -109,8 +109,8 @@ class _AddFingerprintTypeManageTabbarState extends State<AddFingerprintTypeManag
} }
class ItemView { class ItemView {
const ItemView({required this.title, required this.seletType}); const ItemView({required this.title, required this.selectType});
final String title; final String title;
final String seletType; final String selectType;
} }

View File

@ -13,11 +13,11 @@ class AddFingerprintTypeLogic extends BaseGetXController{
var fingerprintType = 0; // :1;23:4 var fingerprintType = 0; // :1;23:4
var startDate = ""; var startDate = "";
var endDate = ""; var endDate = "";
if (state.seletType.value == "0") { if (state.selectType.value == "0") {
fingerprintType = 1; fingerprintType = 1;
startDate = "0"; startDate = "0";
endDate = "0"; endDate = "0";
} else if (state.seletType.value == "1") { } else if (state.selectType.value == "1") {
fingerprintType = 2; fingerprintType = 2;
if (state.beginTimeTimestamp.value.isEmpty) { if (state.beginTimeTimestamp.value.isEmpty) {
showToast("请选择开始时间"); showToast("请选择开始时间");
@ -41,7 +41,7 @@ class AddFingerprintTypeLogic extends BaseGetXController{
startDate = state.beginTimeTimestamp.value; startDate = state.beginTimeTimestamp.value;
endDate = state.endTimeTimestamp.value; endDate = state.endTimeTimestamp.value;
} else if (state.seletType.value == "2") { } else if (state.selectType.value == "2") {
if (state.effectiveDateTime.value <= 0) { if (state.effectiveDateTime.value <= 0) {
showToast("请选择生效时间"); showToast("请选择生效时间");
return; return;

View File

@ -15,14 +15,14 @@ import '../../../../translations/trans_lib.dart';
import 'addFingerprintType_logic.dart'; import 'addFingerprintType_logic.dart';
class AddFingerprintTypePage extends StatefulWidget { class AddFingerprintTypePage extends StatefulWidget {
final String seletType; // final String selectType; //
final int lockId; final int lockId;
final int fromType; // // 1 2 final int fromType; // // 1 2
final String fromTypeTwoStaffName; // final String fromTypeTwoStaffName; //
const AddFingerprintTypePage( const AddFingerprintTypePage(
{Key? key, {Key? key,
required this.seletType, required this.selectType,
required this.lockId, required this.lockId,
required this.fromType, required this.fromType,
required this.fromTypeTwoStaffName}) required this.fromTypeTwoStaffName})
@ -38,7 +38,7 @@ class _AddFingerprintTypePageState extends State<AddFingerprintTypePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
state.seletType.value = widget.seletType; state.selectType.value = widget.selectType;
state.lockId.value = widget.lockId; state.lockId.value = widget.lockId;
// state.nameController.text = widget.fromTypeTwoStaffName; // state.nameController.text = widget.fromTypeTwoStaffName;
@ -49,7 +49,7 @@ class _AddFingerprintTypePageState extends State<AddFingerprintTypePage> {
} }
Widget indexChangeWidget() { Widget indexChangeWidget() {
switch (int.parse(widget.seletType)) { switch (int.parse(widget.selectType)) {
case 0: case 0:
{ {
// //
@ -193,14 +193,14 @@ class _AddFingerprintTypePageState extends State<AddFingerprintTypePage> {
onClick: () async { onClick: () async {
var isDemoMode = await Storage.getBool(ifIsDemoModeOrNot); var isDemoMode = await Storage.getBool(ifIsDemoModeOrNot);
if (isDemoMode == false) { if (isDemoMode == false) {
// print("state.seletType:${state.seletType.value}"); // print("state.selectType:${state.selectType.value}");
if (state.nameController.text.isEmpty) { if (state.nameController.text.isEmpty) {
logic.showToast("请输入姓名"); logic.showToast("请输入姓名");
return; return;
} }
logic.checkFingerprintNameDuplicated(state.nameController.text); logic.checkFingerprintNameDuplicated(state.nameController.text);
} else { } else {
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}), }),

View File

@ -4,7 +4,7 @@ import 'package:get/get.dart';
class AddFingerprintState{ class AddFingerprintState{
final lockId = 0.obs; final lockId = 0.obs;
final seletType = "0".obs;// 0 1 2 final selectType = "0".obs;// 0 1 2
final fromType = 1.obs; // // 1 2 final fromType = 1.obs; // // 1 2
final isStressFingerprint = false.obs; final isStressFingerprint = false.obs;

View File

@ -50,7 +50,7 @@ class _FingerprintListPageState extends State<FingerprintListPage> with RouteAwa
if (isDemoMode == false) { if (isDemoMode == false) {
showDeletAlertDialog(context); showDeletAlertDialog(context);
} else { } else {
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}, },

View File

@ -1,6 +0,0 @@
import 'package:get/get.dart';
class LockEscalationState{
}

View File

@ -594,8 +594,7 @@ class LockDetailLogic extends BaseGetXController {
// token // token
void getLockNetToken() async { void getLockNetToken() async {
LockNetTokenEntity entity = await ApiRepository.to LockNetTokenEntity entity = await ApiRepository.to.getLockNetToken(lockId: state.keyInfos.value.lockId.toString());
.getLockNetToken(lockId: state.keyInfos.value.lockId.toString());
if (entity.errorCode!.codeIsSuccessful) { if (entity.errorCode!.codeIsSuccessful) {
state.lockNetToken = entity.data!.token!; state.lockNetToken = entity.data!.token!;
print("state.lockNetToken:${state.lockNetToken}"); print("state.lockNetToken:${state.lockNetToken}");

View File

@ -59,7 +59,7 @@ class _LockOperatingRecordPageState extends State<LockOperatingRecordPage> {
_openModalBottomSheet(); _openModalBottomSheet();
}else{ }else{
// Get.toNamed(Routers.seletLockTypePage); // Get.toNamed(Routers.selectLockTypePage);
logic.showToast("演示模式"); logic.showToast("演示模式");
} }
}, },

View File

@ -5,7 +5,6 @@ import 'package:flutter_reactive_ble/flutter_reactive_ble.dart';
import 'package:star_lock/blue/io_protocol/io_setSupportFunctionsWithParameters.dart'; import 'package:star_lock/blue/io_protocol/io_setSupportFunctionsWithParameters.dart';
import 'package:star_lock/tools/baseGetXController.dart'; import 'package:star_lock/tools/baseGetXController.dart';
import '../../../../blue/blue_manage.dart'; import '../../../../blue/blue_manage.dart';
import '../../../../blue/io_protocol/io_readSupportFunctionsWithParameters.dart';
import '../../../../blue/io_reply.dart'; import '../../../../blue/io_reply.dart';
import '../../../../blue/io_tool/io_tool.dart'; import '../../../../blue/io_tool/io_tool.dart';
import '../../../../blue/io_tool/manager_event_bus.dart'; import '../../../../blue/io_tool/manager_event_bus.dart';
@ -59,43 +58,43 @@ class AutomaticBlockingLogic extends BaseGetXController{
} }
// () // ()
if(reply is ReadSupportFunctionsWithParametersReply) { // if(reply is ReadSupportFunctionsWithParametersReply) {
_readSupportFunctionsWithParametersReply(reply); // _readSupportFunctionsWithParametersReply(reply);
} // }
}); });
} }
// //
Future<void> _readSupportFunctionsWithParametersReply(Reply reply) async { // Future<void> _readSupportFunctionsWithParametersReply(Reply reply) async {
int status = reply.data[2]; // int status = reply.data[2];
switch(status){ // switch(status){
case 0x00: // case 0x00:
// // //
print("${reply.commandType}数据解析成功"); // print("${reply.commandType}数据解析成功");
state.autoLockTime.value = reply.data[7].toString(); // state.autoLockTime.value = reply.data[7].toString();
break; // break;
case 0x06: // case 0x06:
// // //
print("${reply.commandType}需要鉴权"); // print("${reply.commandType}需要鉴权");
//
break; // break;
case 0x07: // case 0x07:
// // //
print("${reply.commandType}用户无权限"); // print("${reply.commandType}用户无权限");
//
break; // break;
case 0x09: // case 0x09:
// // //
print("${reply.commandType}权限校验错误"); // print("${reply.commandType}权限校验错误");
//
break; // break;
default: // default:
// // //
print("${reply.commandType}失败"); // print("${reply.commandType}失败");
//
break; // break;
} // }
} // }
// //
Future<void> _replySetSupportFunctionsWithParameters(Reply reply) async { Future<void> _replySetSupportFunctionsWithParameters(Reply reply) async {
@ -133,30 +132,30 @@ class AutomaticBlockingLogic extends BaseGetXController{
} }
// - // -
Future<void> _readSupportFunctionsWithParameters() async { // Future<void> _readSupportFunctionsWithParameters() async {
BlueManage().bludSendData(BlueManage().connectDeviceName, (DeviceConnectionState connectionState) async { // BlueManage().bludSendData(BlueManage().connectDeviceName, (DeviceConnectionState connectionState) async {
if (connectionState == DeviceConnectionState.connected) { // if (connectionState == DeviceConnectionState.connected) {
var privateKey = await Storage.getStringList(saveBluePrivateKey); // var privateKey = await Storage.getStringList(saveBluePrivateKey);
List<int> getPrivateKeyList = changeStringListToIntList(privateKey!); // List<int> getPrivateKeyList = changeStringListToIntList(privateKey!);
//
var token = await Storage.getStringList(saveBlueToken); // var token = await Storage.getStringList(saveBlueToken);
List<int> getTokenList = changeStringListToIntList(token!); // List<int> getTokenList = changeStringListToIntList(token!);
//
var publicKey = await Storage.getStringList(saveBluePublicKey); // var publicKey = await Storage.getStringList(saveBluePublicKey);
List<int> getPublicKeyList = changeStringListToIntList(publicKey!); // List<int> getPublicKeyList = changeStringListToIntList(publicKey!);
//
IoSenderManage.readSupportFunctionsWithParametersCommand( // IoSenderManage.readSupportFunctionsWithParametersCommand(
keyID: state.lockSetInfoData.value.lockBasicInfo!.keyId.toString(), // keyID: state.lockSetInfoData.value.lockBasicInfo!.keyId.toString(),
userID: await Storage.getUid(), // userID: await Storage.getUid(),
featureBit: 29, // featureBit: 29,
token: getTokenList, // token: getTokenList,
needAuthor: 1, // needAuthor: 1,
publicKey: getPublicKeyList, // publicKey: getPublicKeyList,
privateKey: getPrivateKeyList // privateKey: getPrivateKeyList
); // );
} // }
}); // });
} // }
// () // ()
Future<void> sendAutoLock() async { Future<void> sendAutoLock() async {
@ -228,7 +227,7 @@ class AutomaticBlockingLogic extends BaseGetXController{
super.onInit(); super.onInit();
print("onInit()"); print("onInit()");
_readSupportFunctionsWithParameters(); // _readSupportFunctionsWithParameters();
} }
@override @override

View File

@ -2,7 +2,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import '../../../lockMian/entity/lockListInfo_entity.dart';
import '../lockSet/lockSetInfo_entity.dart'; import '../lockSet/lockSetInfo_entity.dart';
class AutomaticBlockingState { class AutomaticBlockingState {

View File

@ -1,14 +1,12 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:star_lock/common/XSConstantMacro/XSConstantMacro.dart';
import '../../../../../appRouters.dart'; import '../../../../../appRouters.dart';
import '../../../../../app_settings/app_colors.dart'; import '../../../../../app_settings/app_colors.dart';
import '../../../../../tools/commonItem.dart'; import '../../../../../tools/commonItem.dart';
import '../../../../../tools/titleAppBar.dart'; import '../../../../../tools/titleAppBar.dart';
import '../../../../../translations/trans_lib.dart'; import '../../../../../translations/trans_lib.dart';
import '../../lockSet/lockSetInfo_entity.dart';
import 'basicInformation_logic.dart'; import 'basicInformation_logic.dart';
class BasicInformationPage extends StatefulWidget { class BasicInformationPage extends StatefulWidget {
@ -97,7 +95,7 @@ class _BasicInformationPageState extends State<BasicInformationPage> {
isHaveLine: true, isHaveLine: true,
isHaveDirection: true, isHaveDirection: true,
action: () async { action: () async {
Get.toNamed(Routers.lockSeletGroupingPage, arguments: { Get.toNamed(Routers.lockSelectGroupingPage, arguments: {
'lockSetInfoData': state.lockSetInfoData.value 'lockSetInfoData': state.lockSetInfoData.value
})! })!
.then((val) { .then((val) {

View File

@ -1,7 +1,6 @@
import 'package:get/get.dart'; import 'package:get/get.dart';
import '../../../../lockMian/entity/lockListInfo_entity.dart';
import '../../lockSet/lockSetInfo_entity.dart'; import '../../lockSet/lockSetInfo_entity.dart';
class BasicInformationState { class BasicInformationState {

View File

@ -3,10 +3,10 @@ import '../../../../../network/api_repository.dart';
import '../../../../../tools/baseGetXController.dart'; import '../../../../../tools/baseGetXController.dart';
import '../../../../../tools/eventBusEventManage.dart'; import '../../../../../tools/eventBusEventManage.dart';
import '../../../electronicKey/massSendElectronicKey/massSendLockGroupList/massSendLockGroupListEntity.dart'; import '../../../electronicKey/massSendElectronicKey/massSendLockGroupList/massSendLockGroupListEntity.dart';
import 'lockSeletGrouping_state.dart'; import 'lockSelectGrouping_state.dart';
class LockSeletGroupingLogic extends BaseGetXController { class LockSelectGroupingLogic extends BaseGetXController {
final LockSeletGroupingState state = LockSeletGroupingState(); final LockSelectGroupingState state = LockSelectGroupingState();
// //
Future<void> addLockGroupRequest() async { Future<void> addLockGroupRequest() async {

View File

@ -10,18 +10,18 @@ import '../../../../../tools/noData.dart';
import '../../../../../tools/submitBtn.dart'; import '../../../../../tools/submitBtn.dart';
import '../../../../../tools/titleAppBar.dart'; import '../../../../../tools/titleAppBar.dart';
import '../../../../../translations/trans_lib.dart'; import '../../../../../translations/trans_lib.dart';
import 'lockSeletGrouping_logic.dart'; import 'lockSelectGrouping_logic.dart';
class LockSeletGroupingPage extends StatefulWidget { class LockSelectGroupingPage extends StatefulWidget {
const LockSeletGroupingPage({Key? key}) : super(key: key); const LockSelectGroupingPage({Key? key}) : super(key: key);
@override @override
State<LockSeletGroupingPage> createState() => _LockSeletGroupingPageState(); State<LockSelectGroupingPage> createState() => _LockSelectGroupingPageState();
} }
class _LockSeletGroupingPageState extends State<LockSeletGroupingPage> { class _LockSelectGroupingPageState extends State<LockSelectGroupingPage> {
final logic = Get.put(LockSeletGroupingLogic()); final logic = Get.put(LockSelectGroupingLogic());
final state = Get.find<LockSeletGroupingLogic>().state; final state = Get.find<LockSelectGroupingLogic>().state;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {

View File

@ -6,14 +6,14 @@ import 'package:get/get.dart';
import '../../../electronicKey/massSendElectronicKey/massSendLockGroupList/massSendLockGroupListEntity.dart'; import '../../../electronicKey/massSendElectronicKey/massSendLockGroupList/massSendLockGroupListEntity.dart';
import '../../lockSet/lockSetInfo_entity.dart'; import '../../lockSet/lockSetInfo_entity.dart';
class LockSeletGroupingState { class LockSelectGroupingState {
var lockSetInfoData = LockSetInfoData().obs; var lockSetInfoData = LockSetInfoData().obs;
var lockBasicInfo = LockBasicInfo().obs; var lockBasicInfo = LockBasicInfo().obs;
var groupList = <GroupListItem>[].obs; var groupList = <GroupListItem>[].obs;
final TextEditingController changeNameController = TextEditingController(); final TextEditingController changeNameController = TextEditingController();
LockSeletGroupingState() { LockSelectGroupingState() {
var map = Get.arguments; var map = Get.arguments;
lockSetInfoData.value = map["lockSetInfoData"]; lockSetInfoData.value = map["lockSetInfoData"];
lockBasicInfo.value = lockSetInfoData.value.lockBasicInfo!; lockBasicInfo.value = lockSetInfoData.value.lockBasicInfo!;

View File

@ -2,7 +2,6 @@
import 'dart:async'; import 'dart:async';
import 'package:flutter_reactive_ble/flutter_reactive_ble.dart'; import 'package:flutter_reactive_ble/flutter_reactive_ble.dart';
import 'package:star_lock/blue/io_protocol/io_readSupportFunctionsNoParameters.dart';
import 'package:star_lock/blue/io_protocol/io_setSupportFunctionsNoParameters.dart'; import 'package:star_lock/blue/io_protocol/io_setSupportFunctionsNoParameters.dart';
import 'package:star_lock/tools/baseGetXController.dart'; import 'package:star_lock/tools/baseGetXController.dart';
import '../../../../blue/blue_manage.dart'; import '../../../../blue/blue_manage.dart';
@ -44,39 +43,39 @@ class BurglarAlarmLogic extends BaseGetXController{
} }
// () // ()
if(reply is ReadSupportFunctionsNoParametersReply) { // if(reply is ReadSupportFunctionsNoParametersReply) {
_readSupportFunctionsWithParametersReply(reply); // _readSupportFunctionsWithParametersReply(reply);
} // }
}); });
} }
// //
Future<void> _readSupportFunctionsWithParametersReply(Reply reply) async { // Future<void> _readSupportFunctionsWithParametersReply(Reply reply) async {
int status = reply.data[2]; // int status = reply.data[2];
switch(status){ // switch(status){
case 0x00: // case 0x00:
// // //
print("${reply.commandType}数据解析成功"); // print("${reply.commandType}数据解析成功");
state.burglarAlarmEnable.value = reply.data[6]; // state.burglarAlarmEnable.value = reply.data[6];
break; // break;
case 0x06: // case 0x06:
// // //
print("${reply.commandType}需要鉴权"); // print("${reply.commandType}需要鉴权");
break; // break;
case 0x07: // case 0x07:
// // //
print("${reply.commandType}用户无权限"); // print("${reply.commandType}用户无权限");
break; // break;
case 0x09: // case 0x09:
// // //
print("${reply.commandType}权限校验错误"); // print("${reply.commandType}权限校验错误");
break; // break;
default: // default:
// // //
print("${reply.commandType}失败"); // print("${reply.commandType}失败");
break; // break;
} // }
} // }
// //
Future<void> _replySetSupportFunctionsWithParameters(Reply reply) async { Future<void> _replySetSupportFunctionsWithParameters(Reply reply) async {
@ -114,30 +113,30 @@ class BurglarAlarmLogic extends BaseGetXController{
} }
// - // -
Future<void> _readSupportFunctionsNoParameters() async { // Future<void> _readSupportFunctionsNoParameters() async {
BlueManage().bludSendData(BlueManage().connectDeviceName, (DeviceConnectionState connectionState) async { // BlueManage().bludSendData(BlueManage().connectDeviceName, (DeviceConnectionState connectionState) async {
if (connectionState == DeviceConnectionState.connected) { // if (connectionState == DeviceConnectionState.connected) {
var privateKey = await Storage.getStringList(saveBluePrivateKey); // var privateKey = await Storage.getStringList(saveBluePrivateKey);
List<int> getPrivateKeyList = changeStringListToIntList(privateKey!); // List<int> getPrivateKeyList = changeStringListToIntList(privateKey!);
//
var token = await Storage.getStringList(saveBlueToken); // var token = await Storage.getStringList(saveBlueToken);
List<int> getTokenList = changeStringListToIntList(token!); // List<int> getTokenList = changeStringListToIntList(token!);
//
var publicKey = await Storage.getStringList(saveBluePublicKey); // var publicKey = await Storage.getStringList(saveBluePublicKey);
List<int> getPublicKeyList = changeStringListToIntList(publicKey!); // List<int> getPublicKeyList = changeStringListToIntList(publicKey!);
//
IoSenderManage.readSupportFunctionsNoParametersCommand( // IoSenderManage.readSupportFunctionsNoParametersCommand(
keyID: state.lockSetInfoData.value.lockBasicInfo!.keyId.toString(), // keyID: state.lockSetInfoData.value.lockBasicInfo!.keyId.toString(),
userID: await Storage.getUid(), // userID: await Storage.getUid(),
featureBit: 30, // featureBit: 30,
token: getTokenList, // token: getTokenList,
needAuthor: 1, // needAuthor: 1,
publicKey: getPublicKeyList, // publicKey: getPublicKeyList,
privateKey: getPrivateKeyList // privateKey: getPrivateKeyList
); // );
} // }
}); // });
} // }
// () // ()
Future<void> sendBurglarAlarm() async { Future<void> sendBurglarAlarm() async {
@ -197,7 +196,7 @@ class BurglarAlarmLogic extends BaseGetXController{
super.onInit(); super.onInit();
print("onInit()"); print("onInit()");
_readSupportFunctionsNoParameters(); // _readSupportFunctionsNoParameters();
} }
@override @override

View File

@ -1,4 +1,4 @@
import 'package:star_lock/main/lockDetail/lcokSet/catEyeSet/catEyeCustomMode/catEyeCustomMode_state.dart'; import 'package:star_lock/main/lockDetail/lockSet/catEyeSet/catEyeCustomMode/catEyeCustomMode_state.dart';
import 'package:star_lock/tools/baseGetXController.dart'; import 'package:star_lock/tools/baseGetXController.dart';
class CatEyeCustomModeLogic extends BaseGetXController { class CatEyeCustomModeLogic extends BaseGetXController {

View File

@ -4,7 +4,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:star_lock/appRouters.dart'; import 'package:star_lock/appRouters.dart';
import 'package:star_lock/app_settings/app_colors.dart'; import 'package:star_lock/app_settings/app_colors.dart';
import 'package:star_lock/main/lockDetail/lcokSet/catEyeSet/catEyeCustomMode/catEyeCustomMode_logic.dart'; import 'package:star_lock/main/lockDetail/lockSet/catEyeSet/catEyeCustomMode/catEyeCustomMode_logic.dart';
import 'package:star_lock/tools/commonItem.dart'; import 'package:star_lock/tools/commonItem.dart';
import 'package:star_lock/tools/custom_bottom_sheet.dart'; import 'package:star_lock/tools/custom_bottom_sheet.dart';
import 'package:star_lock/tools/titleAppBar.dart'; import 'package:star_lock/tools/titleAppBar.dart';

View File

@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:star_lock/appRouters.dart'; import 'package:star_lock/appRouters.dart';
import 'package:star_lock/main/lockDetail/lcokSet/catEyeSet/catEyeSet/catEyeSet_logic.dart'; import 'package:star_lock/main/lockDetail/lockSet/catEyeSet/catEyeSet/catEyeSet_logic.dart';
import 'package:star_lock/tools/commonItem.dart'; import 'package:star_lock/tools/commonItem.dart';
import 'package:star_lock/tools/custom_bottom_sheet.dart'; import 'package:star_lock/tools/custom_bottom_sheet.dart';

View File

@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:star_lock/appRouters.dart'; import 'package:star_lock/appRouters.dart';
import 'package:star_lock/tools/submitBtn.dart';
import '../../../../../app_settings/app_colors.dart'; import '../../../../../app_settings/app_colors.dart';
import '../../../../../tools/titleAppBar.dart'; import '../../../../../tools/titleAppBar.dart';

Some files were not shown because too many files have changed in this diff Show More