被分享设备人员资料只可修改名称

This commit is contained in:
czz
2025-08-16 10:34:29 +08:00
parent 3713d95212
commit 79cbdb3fa2
4 changed files with 54 additions and 6 deletions

View File

@@ -52,7 +52,7 @@
"跳过": "Skip" "跳过": "Skip"
}, },
"蓝牙绑定": { "蓝牙绑定": {
"标题": "Bluetooth Binding", "标题": "Bluetooth",
"扫描": "Scanning Bluetooth devices...", "扫描": "Scanning Bluetooth devices...",
"信号": "Minimum signal strength", "信号": "Minimum signal strength",
"搜索提示": "Search devices", "搜索提示": "Search devices",

View File

@@ -54,8 +54,8 @@ class AppConstants {
//系统参数 //系统参数
//运行打包APP模式 //运行打包APP模式
int ent_type = APPPackageType.MHT.code; //1.默认太和 2.欢睡 3.眠花糖 // int ent_type = APPPackageType.MHT.code; //1.默认太和 2.欢睡 3.眠花糖
// int ent_type = APPPackageType.TH.code; //1.默认太和 2.欢睡 3.眠花糖 int ent_type = APPPackageType.TH.code; //1.默认太和 2.欢睡 3.眠花糖
int text_length = 8; int text_length = 8;
} }

View File

@@ -91,7 +91,7 @@ class _HomePageState extends State<HomePage> {
), ),
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
SizedBox(height: 11.rpx), SizedBox(height: 11.rpx),
ClickableContainer( ClickableContainer(

View File

@@ -101,7 +101,8 @@ class _UpdatePageState extends State<UpdatePersonPage> {
}), }),
), ),
Visibility( Visibility(
visible: widget.status == BindType.active.code, // visible: widget.status == BindType.active.code,
visible: true,
child: Positioned( child: Positioned(
right: 20.rpx, right: 20.rpx,
child: CustomCard( child: CustomCard(
@@ -179,7 +180,7 @@ class _UpdatePageState extends State<UpdatePersonPage> {
alignment: AlignmentDirectional(0, 0), alignment: AlignmentDirectional(0, 0),
child: TextFormField( child: TextFormField(
// controller: _model.textController1, // controller: _model.textController1,
// focusNode: _model.textFieldFocusNode1, // focusNode: _model.textFieldFocusNode1,
initialValue: personController.name.value, initialValue: personController.name.value,
onChanged: (Value) { onChanged: (Value) {
personController.name.value = Value; personController.name.value = Value;
@@ -269,6 +270,15 @@ class _UpdatePageState extends State<UpdatePersonPage> {
0; // gender == 0 时男生部分变灰 0; // gender == 0 时男生部分变灰
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
if (widget.status ==
BindType.share.code) {
TopSlideNotification.show(
context,
text: "被分享用户只能修改用户名称",
textColor: themeController
.currentColor.sc9);
return;
}
personController.gender.value = personController.gender.value =
1; // 点击时将 gender 设置为 1女生部分被选中 1; // 点击时将 gender 设置为 1女生部分被选中
}, },
@@ -318,6 +328,15 @@ class _UpdatePageState extends State<UpdatePersonPage> {
1; // gender == 1 时女生部分变灰 1; // gender == 1 时女生部分变灰
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
if (widget.status ==
BindType.share.code) {
TopSlideNotification.show(
context,
text: "被分享用户只能修改用户名称",
textColor: themeController
.currentColor.sc9);
return;
}
personController.gender.value = personController.gender.value =
0; // 点击时将 gender 设置为 0男生部分被选中 0; // 点击时将 gender 设置为 0男生部分被选中
}, },
@@ -379,6 +398,13 @@ class _UpdatePageState extends State<UpdatePersonPage> {
), ),
child: InkWell( child: InkWell(
onTap: () { onTap: () {
if (widget.status == BindType.share.code) {
TopSlideNotification.show(context,
text: "被分享用户只能修改用户名称",
textColor:
themeController.currentColor.sc9);
return;
}
FocusScope.of(context) FocusScope.of(context)
.requestFocus(FocusNode()); .requestFocus(FocusNode());
Future.delayed(Duration(milliseconds: 250), Future.delayed(Duration(milliseconds: 250),
@@ -433,6 +459,13 @@ class _UpdatePageState extends State<UpdatePersonPage> {
), ),
child: InkWell( child: InkWell(
onTap: () { onTap: () {
if (widget.status == BindType.share.code) {
TopSlideNotification.show(context,
text: "被分享用户只能修改用户名称",
textColor:
themeController.currentColor.sc9);
return;
}
final currentHeight = final currentHeight =
personController.height.value; personController.height.value;
final initialHeight = currentHeight != null final initialHeight = currentHeight != null
@@ -494,6 +527,13 @@ class _UpdatePageState extends State<UpdatePersonPage> {
), ),
child: InkWell( child: InkWell(
onTap: () { onTap: () {
if (widget.status == BindType.share.code) {
TopSlideNotification.show(context,
text: "被分享用户只能修改用户名称",
textColor:
themeController.currentColor.sc9);
return;
}
FocusScope.of(context) FocusScope.of(context)
.requestFocus(FocusNode()); .requestFocus(FocusNode());
Future.delayed( Future.delayed(
@@ -571,6 +611,14 @@ class _UpdatePageState extends State<UpdatePersonPage> {
label: name, label: name,
selected: isSelected, selected: isSelected,
onTap: () { onTap: () {
if (widget.status ==
BindType.share.code) {
TopSlideNotification.show(context,
text: "被分享用户只能修改用户名称",
textColor: themeController
.currentColor.sc9);
return;
}
if (isSelected) { if (isSelected) {
selectedIds.remove(id); selectedIds.remove(id);
} else { } else {