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

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

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