更新特殊处理测试账号
This commit is contained in:
@@ -6,7 +6,6 @@ import 'package:ef/ef.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:flutterflow_ui/flutterflow_ui.dart';
|
||||
import 'package:vbvs_app/common/color/ServiceConstant.dart';
|
||||
import 'package:vbvs_app/common/color/appConstants.dart';
|
||||
import 'package:vbvs_app/common/color/app_uri_status.dart';
|
||||
import 'package:vbvs_app/common/util/FitTool.dart';
|
||||
@@ -275,7 +274,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
||||
),
|
||||
];
|
||||
|
||||
if (widget.device['bind_type'] == BindType.active.code) {
|
||||
if (widget.device['bind_type'] == BindType.active.code && !AppConstants.is_test_account) {
|
||||
items.addAll([
|
||||
_buildMenuItem(
|
||||
text: "WIFI配置".tr,
|
||||
@@ -1266,91 +1265,92 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
children: [
|
||||
Expanded(
|
||||
child: CustomCard(
|
||||
borderRadius: AppConstants().button_container_radius,
|
||||
onTap: () async {
|
||||
if (widget.device['person'] != null) {
|
||||
personController.currentPersonId.value =
|
||||
widget.device['_id'];
|
||||
personController.name.value =
|
||||
widget.device['person']['name'];
|
||||
personController.update_person_mac.value =
|
||||
widget.device['mac'];
|
||||
personController.gender.value =
|
||||
widget.device['person']['gender'] ?? 1;
|
||||
personController.weight?.value =
|
||||
widget.device['person']['weight'] == null
|
||||
? ''
|
||||
: widget.device['person']['weight']
|
||||
.toString();
|
||||
// Expanded(
|
||||
// child: CustomCard(
|
||||
// borderRadius: AppConstants().button_container_radius,
|
||||
// onTap: () async {
|
||||
// if (widget.device['person'] != null) {
|
||||
// personController.currentPersonId.value =
|
||||
// widget.device['_id'];
|
||||
// personController.name.value =
|
||||
// widget.device['person']['name'];
|
||||
// personController.update_person_mac.value =
|
||||
// widget.device['mac'];
|
||||
// personController.gender.value =
|
||||
// widget.device['person']['gender'] ?? 1;
|
||||
// personController.weight?.value =
|
||||
// widget.device['person']['weight'] == null
|
||||
// ? ''
|
||||
// : widget.device['person']['weight']
|
||||
// .toString();
|
||||
|
||||
personController.height.value =
|
||||
widget.device['person']['height'] == null
|
||||
? ''
|
||||
: widget.device['person']['height']
|
||||
.toString();
|
||||
// personController.height.value =
|
||||
// widget.device['person']['height'] == null
|
||||
// ? ''
|
||||
// : widget.device['person']['height']
|
||||
// .toString();
|
||||
|
||||
personController.selectedDiseaseIds.value =
|
||||
widget.device['person']['disease'] ?? [];
|
||||
personController.birthday.value =
|
||||
widget.device['person']['birthday'] ?? '';
|
||||
personController.dateTime =
|
||||
MyUtils.formatBirthdayTime(
|
||||
widget.device['person']['birthday']);
|
||||
} else {
|
||||
personController.update_person_mac.value =
|
||||
widget.device['mac'];
|
||||
personController.currentPersonId.value =
|
||||
widget.device['_id'];
|
||||
personController.name.value = "";
|
||||
personController.gender.value = 1;
|
||||
personController.dateTime = null;
|
||||
personController.height.value = "";
|
||||
personController.weight.value = "";
|
||||
personController.diseaseList.value = [];
|
||||
}
|
||||
await Get.toNamed("/updatePersonPage",
|
||||
arguments: widget.device['bind_type']);
|
||||
bodyDeviceController.getDeviceList();
|
||||
},
|
||||
colors: [
|
||||
themeController.currentColor.sc1,
|
||||
themeController.currentColor.sc2,
|
||||
],
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
0.rpx, 0.rpx, 0.rpx, 0.rpx),
|
||||
child: Container(
|
||||
alignment: Alignment.center,
|
||||
height: MediaQuery.sizeOf(context).height * 0.0037,
|
||||
constraints: BoxConstraints(
|
||||
minWidth: 143.rpx,
|
||||
minHeight: 61.rpx,
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
"体征检测设备.人员资料".tr,
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontFamily: 'Inter',
|
||||
fontSize:
|
||||
AppConstants().normal_text_fontSize,
|
||||
letterSpacing: 0.0,
|
||||
),
|
||||
),
|
||||
].divide(SizedBox(width: 17.rpx)),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
width: 20.rpx,
|
||||
),
|
||||
// personController.selectedDiseaseIds.value =
|
||||
// widget.device['person']['disease'] ?? [];
|
||||
// personController.birthday.value =
|
||||
// widget.device['person']['birthday'] ?? '';
|
||||
// personController.dateTime =
|
||||
// MyUtils.formatBirthdayTime(
|
||||
// widget.device['person']['birthday']);
|
||||
// } else {
|
||||
// personController.update_person_mac.value =
|
||||
// widget.device['mac'];
|
||||
// personController.currentPersonId.value =
|
||||
// widget.device['_id'];
|
||||
// personController.name.value = "";
|
||||
// personController.gender.value = 1;
|
||||
// personController.dateTime = null;
|
||||
// personController.height.value = "";
|
||||
// personController.weight.value = "";
|
||||
// personController.diseaseList.value = [];
|
||||
// }
|
||||
// await Get.toNamed("/updatePersonPage",
|
||||
// arguments: widget.device['bind_type']);
|
||||
// bodyDeviceController.getDeviceList();
|
||||
// },
|
||||
// colors: [
|
||||
// themeController.currentColor.sc1,
|
||||
// themeController.currentColor.sc2,
|
||||
// ],
|
||||
// child: Padding(
|
||||
// padding: EdgeInsetsDirectional.fromSTEB(
|
||||
// 0.rpx, 0.rpx, 0.rpx, 0.rpx),
|
||||
// child: Container(
|
||||
// alignment: Alignment.center,
|
||||
// height: MediaQuery.sizeOf(context).height * 0.0037,
|
||||
// constraints: BoxConstraints(
|
||||
// minWidth: 143.rpx,
|
||||
// minHeight: 61.rpx,
|
||||
// ),
|
||||
// child: Row(
|
||||
// mainAxisSize: MainAxisSize.max,
|
||||
// mainAxisAlignment: MainAxisAlignment.center,
|
||||
// children: [
|
||||
// Text(
|
||||
// "体征检测设备.人员资料".tr,
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontFamily: 'Inter',
|
||||
// fontSize:
|
||||
// AppConstants().normal_text_fontSize,
|
||||
// letterSpacing: 0.0,
|
||||
// ),
|
||||
// ),
|
||||
// ].divide(SizedBox(width: 17.rpx)),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
|
||||
// SizedBox(
|
||||
// width: 20.rpx,
|
||||
// ),
|
||||
Expanded(
|
||||
// 使用 Expanded 来占据屏幕宽度的一半
|
||||
child: CustomCard(
|
||||
|
||||
Reference in New Issue
Block a user