更新快检功能必传mac参数
This commit is contained in:
@@ -20,6 +20,7 @@ import 'package:vbvs_app/component/tool/ToggleColorContainer.dart';
|
||||
import 'package:vbvs_app/component/tool/TopSlideNotification.dart';
|
||||
import 'package:vbvs_app/controller/device/blueteeth_bind_controller.dart';
|
||||
import 'package:vbvs_app/controller/device/body_device_controller.dart';
|
||||
import 'package:vbvs_app/controller/device/device_type_controller.dart';
|
||||
import 'package:vbvs_app/controller/person/person_controller.dart';
|
||||
import 'package:vbvs_app/enum/BindType.dart';
|
||||
import 'package:vbvs_app/model/api_response.dart';
|
||||
@@ -118,7 +119,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
||||
// widget.device['bind_type'] == BindType.active.code ? 9 : 5;
|
||||
final itemCount = widget.device['bind_type'] == BindType.active.code
|
||||
? 9
|
||||
: (getWifiPermissionByOpType(widget.device) ? 6 : 5);
|
||||
: (getWifiPermissionByOpType(widget.device) ? 7 : 6);
|
||||
|
||||
final estimatedPopupHeight =
|
||||
(itemCount * estimatedItemHeight) + 40.rpx; // 加上padding
|
||||
@@ -1222,6 +1223,25 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
||||
child: CustomCard(
|
||||
borderRadius: AppConstants().button_container_radius,
|
||||
onTap: () async {
|
||||
// bool online = widget.device['status']['status'] == 1;
|
||||
// if (!online) {
|
||||
// NewTopSlideNotification.show(
|
||||
// text: "当前设备已离线,无法快检!".tr,
|
||||
// textColor: themeController.currentColor.sc9);
|
||||
// return;
|
||||
// }
|
||||
DeviceTypeController deviceTypeController =
|
||||
Get.find();
|
||||
await deviceTypeController
|
||||
.checkReportStatus(widget.device['mac']);
|
||||
// if (deviceTypeController.experience_status.value ==
|
||||
// 200 &&
|
||||
// !deviceTypeController.own.value) {
|
||||
// NewTopSlideNotification.show(
|
||||
// text: "设备正在快检中,请稍后再试!".tr,
|
||||
// textColor: themeController.currentColor.sc9);
|
||||
// return;
|
||||
// }
|
||||
await Get.toNamed("/healthCheckPage",
|
||||
arguments: widget.device);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user