27 lines
762 B
Dart
27 lines
762 B
Dart
|
|
import 'package:get/get.dart';
|
|
import '../../../../main/lockDetail/electronicKey/massSendElectronicKey/massSendLockGroupList/massSendLockGroupListEntity.dart';
|
|
|
|
class GroupEditLockState {
|
|
var lockList = <LockListItem>[];
|
|
var type = 0;// 0添加 1删除
|
|
var selectGroupListItem = GroupListItem();
|
|
var ungrouped = GroupListItem();
|
|
GroupEditLockState() {
|
|
Map map = Get.arguments;
|
|
type = map["type"];
|
|
selectGroupListItem = map["groupListItem"];
|
|
ungrouped = map["ungrouped"];
|
|
if(type == 0){
|
|
lockList = ungrouped.lockList!;
|
|
}else{
|
|
lockList = selectGroupListItem.lockList!;
|
|
}
|
|
|
|
for(int i = 0; i<lockList.length; i++){
|
|
LockListItem lockListItem = lockList[i];
|
|
lockListItem.isChecked = false;
|
|
}
|
|
}
|
|
}
|