开始作业,
暂停作业, 停止作业, 回复作业, ---初步待使用
This commit is contained in:
@@ -8,6 +8,12 @@ enum DeviceOperationType {
|
||||
updateName, // 修改设备名称
|
||||
}
|
||||
|
||||
enum AppState {
|
||||
none, //无作业状态
|
||||
routePlanning, //正在规划路径
|
||||
}
|
||||
|
||||
|
||||
|
||||
class DevicesState extends Equatable {
|
||||
final List<DeviceEntity> devices; // 名下所有设备列表
|
||||
@@ -20,6 +26,7 @@ class DevicesState extends Equatable {
|
||||
final DeviceOperationType operationType; // 标记当前操作类型
|
||||
final List<Map<String, dynamic>>? pathData;
|
||||
final List<DeviceAddPathPointModel>? generatedPath; // 新增字段
|
||||
final AppState appState;
|
||||
|
||||
|
||||
|
||||
@@ -34,6 +41,7 @@ class DevicesState extends Equatable {
|
||||
this.operationType = DeviceOperationType.none, // 默认无操作
|
||||
this.pathData,
|
||||
this.generatedPath,
|
||||
this.appState = AppState.none,
|
||||
});
|
||||
|
||||
// 使用 copyWith 方便局部更新状态
|
||||
|
||||
Reference in New Issue
Block a user