更新睡眠报告页面和控制页面无设备的显示
This commit is contained in:
@@ -213,8 +213,8 @@ class _BluetoothPageState extends State<BluetoothPage> {
|
||||
"/mhtCalibrationAfterPage",
|
||||
arguments: obsData,
|
||||
),
|
||||
_buildMenuButton(
|
||||
context, '体征传感器'.tr, "/vitalSignsSensorPage",
|
||||
_buildMenuButton(context, '体征传感器'.tr,
|
||||
"/vitalSignsSensorPage",
|
||||
arguments: obsData),
|
||||
_buildMenuButton(
|
||||
context,
|
||||
@@ -231,7 +231,9 @@ class _BluetoothPageState extends State<BluetoothPage> {
|
||||
if (!isBind) ...[
|
||||
_buildMenuButton(
|
||||
context,
|
||||
obsData['bind_type'] == 1 ? '解绑'.tr : '删除'.tr,
|
||||
obsData['bind_type'] == 1
|
||||
? '解绑'.tr
|
||||
: '删除'.tr,
|
||||
"",
|
||||
onTap: () async {
|
||||
// await deviceListController
|
||||
@@ -251,7 +253,7 @@ class _BluetoothPageState extends State<BluetoothPage> {
|
||||
// ef.log("[h5]通知列表更新报错:$e");
|
||||
// }
|
||||
// Get.toNamed("/mianPageBottomChange");
|
||||
if (obsData['bind_type'] == 1) {
|
||||
if (obsData['bind_type'] == 1) {
|
||||
// 解绑弹窗
|
||||
showUnbindConfirmDialog(
|
||||
context: context,
|
||||
@@ -266,6 +268,8 @@ class _BluetoothPageState extends State<BluetoothPage> {
|
||||
Get.find();
|
||||
homeController.selectDevcie.value =
|
||||
"";
|
||||
await homeController
|
||||
.getPersonList();
|
||||
try {
|
||||
WebviewTestController
|
||||
webviewTestController =
|
||||
@@ -313,7 +317,9 @@ class _BluetoothPageState extends State<BluetoothPage> {
|
||||
if (isBind) ...[
|
||||
_buildMenuButton(
|
||||
context,
|
||||
obsData['bind_type'] == 1 ? '解绑'.tr : '删除'.tr,
|
||||
obsData['bind_type'] == 1
|
||||
? '解绑'.tr
|
||||
: '删除'.tr,
|
||||
"",
|
||||
onTap: () {
|
||||
if (obsData['bind_type'] == 1) {
|
||||
|
||||
Reference in New Issue
Block a user