|
@@ -1,5 +1,6 @@
|
|
|
import 'package:fis_common/extensions/index.dart';
|
|
|
import 'package:fis_i18n/i18n.dart';
|
|
|
+import 'package:fis_jsonrpc/services/authentication.m.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:flyinsonolite/consultation/records/controllers/acceptconsultationcontroller.dart';
|
|
|
import 'package:flyinsonolite/consultation/records/views/acceptconsultationdialog.dart';
|
|
@@ -71,8 +72,13 @@ class ConsultationInfoView extends GetView<ConsultationDetailController> {
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
children: [
|
|
|
//开始会诊
|
|
|
- Obx(() => controller
|
|
|
- .consultationDetail.value!.isInitiateShow
|
|
|
+ Obx(() => controller.consultationDetail.value!
|
|
|
+ .isInitiateShow &&
|
|
|
+ ((Storage.platform == Platform.Windows &&
|
|
|
+ controller.consultationDetail
|
|
|
+ .value!.deviceCode ==
|
|
|
+ Storage.usDeviceCode) ||
|
|
|
+ Storage.platform != Platform.Windows)
|
|
|
? FISLinearGradientElevatedButtonAsync(
|
|
|
() async {
|
|
|
if (Storage.isConsultating.value) {
|
|
@@ -81,13 +87,9 @@ class ConsultationInfoView extends GetView<ConsultationDetailController> {
|
|
|
return;
|
|
|
}
|
|
|
await controller.startConsultationAsyn();
|
|
|
- },
|
|
|
- i18nBook.realTimeConsultation
|
|
|
- .starttConsultation.t,
|
|
|
- Storage.currentTheme.dialogStyle
|
|
|
- .buttonGradient,
|
|
|
- textStyle: Storage
|
|
|
- .currentTheme.normalTextStyle
|
|
|
+ }, i18nBook.realTimeConsultation.starttConsultation.t,
|
|
|
+ Storage.currentTheme.dialogStyle.buttonGradient,
|
|
|
+ textStyle: Storage.currentTheme.normalTextStyle
|
|
|
.copyWith(
|
|
|
fontSize: Storage.currentTheme
|
|
|
.normalTextStyle.fontSize!.s))
|
|
@@ -99,8 +101,13 @@ class ConsultationInfoView extends GetView<ConsultationDetailController> {
|
|
|
)
|
|
|
: const SizedBox()),
|
|
|
//进入会诊
|
|
|
- Obx(() => controller
|
|
|
- .consultationDetail.value!.isJoinInShow
|
|
|
+ Obx(() => controller.consultationDetail.value!
|
|
|
+ .isJoinInShow &&
|
|
|
+ ((Storage.platform == Platform.Windows &&
|
|
|
+ controller.consultationDetail
|
|
|
+ .value!.deviceCode ==
|
|
|
+ Storage.usDeviceCode) ||
|
|
|
+ Storage.platform != Platform.Windows)
|
|
|
? FISLinearGradientElevatedButtonAsync(
|
|
|
() async {
|
|
|
if (Storage.isConsultating.value) {
|
|
@@ -110,13 +117,9 @@ class ConsultationInfoView extends GetView<ConsultationDetailController> {
|
|
|
}
|
|
|
await controller.startConsultationAsyn(
|
|
|
isJoin: true);
|
|
|
- },
|
|
|
- i18nBook.realTimeConsultation
|
|
|
- .joinConsultation.t,
|
|
|
- Storage.currentTheme.dialogStyle
|
|
|
- .buttonGradient,
|
|
|
- textStyle: Storage
|
|
|
- .currentTheme.normalTextStyle
|
|
|
+ }, i18nBook.realTimeConsultation.joinConsultation.t,
|
|
|
+ Storage.currentTheme.dialogStyle.buttonGradient,
|
|
|
+ textStyle: Storage.currentTheme.normalTextStyle
|
|
|
.copyWith(
|
|
|
fontSize: Storage.currentTheme
|
|
|
.normalTextStyle.fontSize!.s))
|