更新安卓通知栏提示
This commit is contained in:
@@ -12,6 +12,7 @@ import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:vbvs_app/common/util/requestWithLog.dart';
|
||||
import 'package:vbvs_app/component/tool/TopSlideNotification.dart';
|
||||
import 'package:vbvs_app/model/api_response.dart';
|
||||
import 'package:vbvs_app/pages/main_bottom/component/main_page_b_bottom_change.dart';
|
||||
|
||||
part 'mht_home_controller.g.dart'; // 由json_serializable自动生成的部分
|
||||
|
||||
@@ -59,6 +60,15 @@ class MHTHomeController extends GetControllerEx<MHTHomeModel> {
|
||||
|
||||
bool initDeviceFlag = false;
|
||||
|
||||
RxMap selectedReportData = {}.obs;
|
||||
RxInt refreshReportTrigger = 0.obs;
|
||||
|
||||
void openReport(Map<String, dynamic> data) {
|
||||
selectedReportData.value = data;
|
||||
refreshReportTrigger.value++; // 每次+1,触发监听
|
||||
MainPageBBottomChange.jumpTo(1); // 切到报告页
|
||||
}
|
||||
|
||||
Future<ApiResponse> getDeviceNum() async {
|
||||
try {
|
||||
ApiResponse apiResponse = ApiResponse(code: -1, msg: "设备列表请求失败".tr);
|
||||
|
||||
Reference in New Issue
Block a user