分享设备用户列表
This commit is contained in:
@@ -10,17 +10,20 @@ import 'package:vbvs_app/controller/mh_controller/mhdevice_share_controller.dart
|
||||
class ShareUserWidget extends GetView {
|
||||
int index;
|
||||
MHDeviceShareController repairListController;
|
||||
|
||||
ShareUserWidget({required this.index, required this.repairListController}) {}
|
||||
String mac;
|
||||
ShareUserWidget(
|
||||
{required this.index,
|
||||
required this.repairListController,
|
||||
required this.mac}) {}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var info = repairListController.model.shareUser![index];
|
||||
// info = info.add({'mac': mac});
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
repairListController.model.mainShare =
|
||||
repairListController.model.shareUser![index];
|
||||
Get.toNamed('/shareDeviceDetail');
|
||||
Get.toNamed('/shareDeviceDetail',
|
||||
arguments: {"mac": mac, "info": info});
|
||||
},
|
||||
child: Container(
|
||||
width: MediaQuery.sizeOf(context).width,
|
||||
@@ -62,7 +65,7 @@ class ShareUserWidget extends GetView {
|
||||
child: Align(
|
||||
alignment: const AlignmentDirectional(-1, 0),
|
||||
child: Text(
|
||||
'${info['userName']}',
|
||||
'${info[0]['v']}',
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
@@ -77,9 +80,9 @@ class ShareUserWidget extends GetView {
|
||||
child: Align(
|
||||
alignment: const AlignmentDirectional(-1, 0),
|
||||
child: Text(
|
||||
info['op_type'] == 1
|
||||
info[3]['opType'] == 1
|
||||
? '允许对方控制和查看该设备'.tr
|
||||
: info['op_type'] == 2
|
||||
: info[3]['opType'] == 2
|
||||
? '仅允许对方查看该设备'.tr
|
||||
: '',
|
||||
style: TextStyle(
|
||||
|
||||
Reference in New Issue
Block a user