|
|
|
|
@ -20,9 +20,10 @@ import {
|
|
|
|
|
Video,
|
|
|
|
|
Input,
|
|
|
|
|
Button,
|
|
|
|
|
PageMeta,
|
|
|
|
|
} from "@tarojs/components";
|
|
|
|
|
|
|
|
|
|
import { sendCommand } from "@/utils/bluetoothWXAPI";
|
|
|
|
|
import { sendCommand, closeBLEConnection } from "@/utils/bluetoothWXAPI";
|
|
|
|
|
import {
|
|
|
|
|
deviceCommandSamples,
|
|
|
|
|
bleCommandSamples,
|
|
|
|
|
@ -98,6 +99,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
this.state = {
|
|
|
|
|
isFullScreen: true,
|
|
|
|
|
textshow: false,
|
|
|
|
|
textscreen: "portrait",
|
|
|
|
|
name: "FR200",
|
|
|
|
|
title: "FR200", // 页面标题
|
|
|
|
|
// 当前设备
|
|
|
|
|
@ -180,13 +184,14 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
ModeList: [],
|
|
|
|
|
ModeType: "all", // all 1基础护理 2专区护理 3专研促渗 4敏期护理 5智能测肤
|
|
|
|
|
ActiveModeItem: {
|
|
|
|
|
modeType: "",
|
|
|
|
|
openSourceData: [],
|
|
|
|
|
}, // 当前选中模式
|
|
|
|
|
SwitchActiveModeItem: {}, // 切换选中模式
|
|
|
|
|
SwitchActiveModeItem: {
|
|
|
|
|
modeType: "",
|
|
|
|
|
}, // 切换选中模式
|
|
|
|
|
ModeID: "mode_", // 模式KEY
|
|
|
|
|
activeModeID: "", // 当前选中模式ID:用于高亮
|
|
|
|
|
ModeStepIndex: 0, // 当前护理功效步骤:每个步骤时间不定,所以时间另外计算,根据步骤显示
|
|
|
|
|
ModeStepTimeArray: [], // 护理功效时间步骤,用于切换显示GIF
|
|
|
|
|
|
|
|
|
|
// TestModeStepIndex: 0, // 水分测试步骤
|
|
|
|
|
EssenceStepIndex: 0, // 精华促渗步骤
|
|
|
|
|
@ -197,12 +202,6 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
MaskModeBuzzingIndex: 0, // 面膜蜂鸣
|
|
|
|
|
MaskModeVibrateIndex: 0, // 面膜震动
|
|
|
|
|
|
|
|
|
|
currentServiceData: {
|
|
|
|
|
// 当前展示的开启暂停GIF: 因为时间判断不方便,所以单独领出来
|
|
|
|
|
startSource: "",
|
|
|
|
|
stopSource: "",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 倒计时
|
|
|
|
|
isShowCountdown: false, // 倒计时弹窗
|
|
|
|
|
countdown: 3,
|
|
|
|
|
@ -347,7 +346,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
bluetoothContainer: any = null;
|
|
|
|
|
isFullScreen: boolean = false;
|
|
|
|
|
isFullScreen: boolean = true;
|
|
|
|
|
// 不涉及渲染的页面变量
|
|
|
|
|
isRuning: any = true; // 设备默认运行中:fr200贴脸就会自动开始工作
|
|
|
|
|
jsonStatus: any = {}; // 同步设备返回数据,用于结束
|
|
|
|
|
@ -382,7 +381,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
"intelligence",
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/** 基础版:脸部/眼部/PRO 设备使用时,会自动开启暂停 */
|
|
|
|
|
/** 基础版:脸部/眼部/PRO 设备使用时,会自动开启,不能暂停 */
|
|
|
|
|
BaseModeType: string[] = [
|
|
|
|
|
"face",
|
|
|
|
|
"eyes",
|
|
|
|
|
@ -436,10 +435,10 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
title: obj.name,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
await this.GetModeList(obj.id);
|
|
|
|
|
await this.GetModeList(obj?.id);
|
|
|
|
|
|
|
|
|
|
// 如果不存在设备模式值,则判断为首次进入,弹窗提示
|
|
|
|
|
let isFirstTipShow = getStorageSync("first_instrument_" + obj.id);
|
|
|
|
|
let isFirstTipShow = getStorageSync("first_instrument_" + obj?.id);
|
|
|
|
|
if (!isFirstTipShow) {
|
|
|
|
|
this.firstNurseInfo();
|
|
|
|
|
}
|
|
|
|
|
@ -449,7 +448,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
const platform = Taro.getSystemInfoSync().platform;
|
|
|
|
|
if (platform !== "devtools") {
|
|
|
|
|
// 仅手机端初始化蓝牙
|
|
|
|
|
this.init();
|
|
|
|
|
// this.init();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -515,19 +514,25 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (this.state.activeModeID != "") {
|
|
|
|
|
let res1 = res.data.data.find((e) => e.id == this.state.activeModeID);
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.modeCurrentFun(res1);
|
|
|
|
|
}, 100);
|
|
|
|
|
let res1 = res.data.data.find(
|
|
|
|
|
(e) => e?.id == this.state.activeModeID
|
|
|
|
|
);
|
|
|
|
|
if (res1) {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.modeCurrentFun(res1);
|
|
|
|
|
}, 100);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.modeCurrentFun(res.data.data[0]);
|
|
|
|
|
}, 100);
|
|
|
|
|
}
|
|
|
|
|
let res1 = res.data.data.find((e) => e.id == this.state.activeModeID);
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.modeCurrentFun(res1);
|
|
|
|
|
}, 100);
|
|
|
|
|
let res1 = res.data.data.find((e) => e?.id == this.state.activeModeID);
|
|
|
|
|
if (res1) {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.modeCurrentFun(res1);
|
|
|
|
|
}, 100);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({ ModeList: [] });
|
|
|
|
|
}
|
|
|
|
|
@ -588,21 +593,20 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
// 根据模式,动态设置底部按钮样式
|
|
|
|
|
let currentWorkModeType = 1;
|
|
|
|
|
if (data.modeType === "moistureTest") {
|
|
|
|
|
if (data?.modeType === "moistureTest") {
|
|
|
|
|
currentWorkModeType = 3;
|
|
|
|
|
} else if (
|
|
|
|
|
data.modeType === "maskPenetration" ||
|
|
|
|
|
data.modeType === "essence" ||
|
|
|
|
|
data.modeType === "led"
|
|
|
|
|
data?.modeType === "maskPenetration" ||
|
|
|
|
|
data?.modeType === "essence" ||
|
|
|
|
|
data?.modeType === "led"
|
|
|
|
|
) {
|
|
|
|
|
currentWorkModeType = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
ActiveModeItem: data,
|
|
|
|
|
activeModeID: data.id,
|
|
|
|
|
ModeID: "mode_" + data.id,
|
|
|
|
|
ModeStepIndex: 0,
|
|
|
|
|
activeModeID: data?.id,
|
|
|
|
|
ModeID: "mode_" + data?.id,
|
|
|
|
|
waterStepIndex: 0, // 水分测试步骤
|
|
|
|
|
EssenceStepIndex: 0, // 精华促渗步骤
|
|
|
|
|
MaskModeStepIndex: 0, // 面膜促渗步骤
|
|
|
|
|
@ -618,9 +622,10 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
this.changeItemUpdateFR200NursingHistory();
|
|
|
|
|
this.stepNext(); // 仅切换模式,不执行开始逻辑
|
|
|
|
|
|
|
|
|
|
// FR200水分测试不可自动运行,需手动点击开始测试,手动启动检测
|
|
|
|
|
// FR200 水分测试和促渗不可自动运行,需手动点击开始测试,手动启动检测
|
|
|
|
|
// 其他模式可以自动运行
|
|
|
|
|
if (data.modeType !== "moistureTest") {
|
|
|
|
|
let notStartArr = ["moistureTest", "maskPenetration", "essence"];
|
|
|
|
|
if (!notStartArr.includes(data?.modeType)) {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.onNursingTap("switch");
|
|
|
|
|
}, 800);
|
|
|
|
|
@ -680,8 +685,8 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
switchModeCurrentFun = async (data) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
SwitchActiveModeItem: data,
|
|
|
|
|
activeModeID: data.id,
|
|
|
|
|
ModeID: "mode_" + data.id,
|
|
|
|
|
activeModeID: data?.id,
|
|
|
|
|
ModeID: "mode_" + data?.id,
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
// 打开模式切换弹窗
|
|
|
|
|
@ -730,7 +735,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.onNursingTap();
|
|
|
|
|
// // 倒计时弹窗: 倒计时完成后,自动开始,并判断弹窗
|
|
|
|
|
// let downNum = CountDownTime[this.state.ActiveModeItem.modeType] || 3;
|
|
|
|
|
// let downNum = CountDownTime[this.state.ActiveModeItem?.modeType] || 3;
|
|
|
|
|
// this.showCountdownFun(downNum, () => {});
|
|
|
|
|
}, 500);
|
|
|
|
|
|
|
|
|
|
@ -748,9 +753,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
let params: any = {};
|
|
|
|
|
|
|
|
|
|
params = {
|
|
|
|
|
instrumentId: currentDevice.id,
|
|
|
|
|
instrumentId: currentDevice?.id,
|
|
|
|
|
instrumentName: currentDevice.name,
|
|
|
|
|
modeId: ActiveModeItem.id,
|
|
|
|
|
modeId: ActiveModeItem?.id,
|
|
|
|
|
modeName: ActiveModeItem.modeName,
|
|
|
|
|
nursingTime: s_to_hms(this.elapsedTime),
|
|
|
|
|
nursingData: JSON.stringify({
|
|
|
|
|
@ -777,8 +782,8 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
this.moistureTest(
|
|
|
|
|
params.nursingData,
|
|
|
|
|
formattedDate,
|
|
|
|
|
ActiveModeItem.id,
|
|
|
|
|
currentDevice.id
|
|
|
|
|
ActiveModeItem?.id,
|
|
|
|
|
currentDevice?.id
|
|
|
|
|
);
|
|
|
|
|
}, 2000);
|
|
|
|
|
};
|
|
|
|
|
@ -851,6 +856,10 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
this.showTips("检测到您的设备没有紧贴肌肤,请紧贴肌肤后重新尝试");
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
ontextshow() {
|
|
|
|
|
let textshow = this.state.textshow;
|
|
|
|
|
this.setState({ textshow: !textshow });
|
|
|
|
|
}
|
|
|
|
|
updata() {
|
|
|
|
|
let that = this;
|
|
|
|
|
let stop = 0;
|
|
|
|
|
@ -884,7 +893,16 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
full() {
|
|
|
|
|
this.changeFull();
|
|
|
|
|
let landscape = this.state.textscreen;
|
|
|
|
|
if (landscape === "landscape") {
|
|
|
|
|
this.setState({ textscreen: "portrait" });
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({ textscreen: "landscape" });
|
|
|
|
|
}
|
|
|
|
|
// return 'landscape'
|
|
|
|
|
this.setState({ isFullScreen: !this.state.isFullScreen });
|
|
|
|
|
console.log(this.state.textscreen, 1111);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 切换光照 */
|
|
|
|
|
@ -892,7 +910,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
let { isStopNurse, ActiveModeItem } = this.state;
|
|
|
|
|
|
|
|
|
|
console.log("切换光照,", ActiveModeItem);
|
|
|
|
|
if (ActiveModeItem.modeType === "led") {
|
|
|
|
|
if (ActiveModeItem?.modeType === "led") {
|
|
|
|
|
this.onSwitchChangeLED();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -947,7 +965,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
*/
|
|
|
|
|
openStepTips = () => {
|
|
|
|
|
let isFirstEntryModeNot = getStorageSync(
|
|
|
|
|
"isFirstEntryMode_" + this.state.currentDevice.id
|
|
|
|
|
"isFirstEntryMode_" + this.state.currentDevice?.id
|
|
|
|
|
);
|
|
|
|
|
// 1.如果没有持久化不再提示,每次进入都会弹窗提示
|
|
|
|
|
if (!isFirstEntryModeNot) {
|
|
|
|
|
@ -959,7 +977,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
};
|
|
|
|
|
closeStepTips = (data) => {
|
|
|
|
|
if (data.isLocal) {
|
|
|
|
|
setStorageSync("isFirstEntryMode_" + this.state.currentDevice.id, true); // 关闭首次进入弹窗
|
|
|
|
|
setStorageSync("isFirstEntryMode_" + this.state.currentDevice?.id, true); // 关闭首次进入弹窗
|
|
|
|
|
}
|
|
|
|
|
this.setState({ isShowStepTips: false });
|
|
|
|
|
};
|
|
|
|
|
@ -1075,7 +1093,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
let nowModeItem;
|
|
|
|
|
if (nWorkMode) {
|
|
|
|
|
nowModeItem = ModeList.find((item) => {
|
|
|
|
|
return item.modeType === nWorkMode;
|
|
|
|
|
return item?.modeType === nWorkMode;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
opts.workStatus = nWorkStatus;
|
|
|
|
|
@ -1215,9 +1233,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 根据不同的模式,切换步骤到下一步
|
|
|
|
|
if (ActiveModeItem.modeType === "essence") {
|
|
|
|
|
if (ActiveModeItem?.modeType === "essence") {
|
|
|
|
|
this.essencePenetrationNext();
|
|
|
|
|
} else if (ActiveModeItem.modeType === "maskPenetration") {
|
|
|
|
|
} else if (ActiveModeItem?.modeType === "maskPenetration") {
|
|
|
|
|
this.maskPenetrationNext();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
@ -1378,7 +1396,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
const { ActiveModeItem, currentGear } = this.state;
|
|
|
|
|
let sendParams: any = {
|
|
|
|
|
...deviceCommandSamples.pause,
|
|
|
|
|
workMode: ActiveModeItem.modeType, // 使用模式
|
|
|
|
|
workMode: ActiveModeItem?.modeType, // 使用模式
|
|
|
|
|
workStatus: "working",
|
|
|
|
|
gear: currentGear,
|
|
|
|
|
};
|
|
|
|
|
@ -1427,7 +1445,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
let sendParams: any = {
|
|
|
|
|
...deviceCommandSamples.pause,
|
|
|
|
|
workMode: ActiveModeItem.modeType, // 使用模式
|
|
|
|
|
workMode: ActiveModeItem?.modeType, // 使用模式
|
|
|
|
|
workStatus: "working",
|
|
|
|
|
gear: gear,
|
|
|
|
|
};
|
|
|
|
|
@ -1452,7 +1470,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
let sendParams: any = {
|
|
|
|
|
...deviceCommandSamples.pause,
|
|
|
|
|
workMode: ActiveModeItem.modeType, // 使用模式
|
|
|
|
|
workMode: ActiveModeItem?.modeType, // 使用模式
|
|
|
|
|
workStatus: "working",
|
|
|
|
|
gear: currentGear,
|
|
|
|
|
};
|
|
|
|
|
@ -1499,13 +1517,13 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
let sendParams: any = {
|
|
|
|
|
...deviceCommandSamples.pause,
|
|
|
|
|
workMode: ActiveModeItem.modeType, // 使用模式
|
|
|
|
|
workMode: ActiveModeItem?.modeType, // 使用模式
|
|
|
|
|
workStatus: newWorkStatus,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 水分测试需要特殊处理
|
|
|
|
|
// 水分测试准备 水分测试工作 水分测试启动
|
|
|
|
|
if (ActiveModeItem.modeType === "moistureTest") {
|
|
|
|
|
if (ActiveModeItem?.modeType === "moistureTest") {
|
|
|
|
|
let that = this;
|
|
|
|
|
sendParams.testStatus = "standby"; // 切换为准备
|
|
|
|
|
|
|
|
|
|
@ -1523,8 +1541,8 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
// 面膜促渗和精华促渗
|
|
|
|
|
if (
|
|
|
|
|
ActiveModeItem.modeType === "maskPenetration" ||
|
|
|
|
|
ActiveModeItem.modeType === "essence"
|
|
|
|
|
ActiveModeItem?.modeType === "maskPenetration" ||
|
|
|
|
|
ActiveModeItem?.modeType === "essence"
|
|
|
|
|
) {
|
|
|
|
|
sendParams.gear = this.state.currentGear; // 点击开始再开始
|
|
|
|
|
}
|
|
|
|
|
@ -1702,7 +1720,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
// 仪器缓存模式,判断是否存在于现有模式中
|
|
|
|
|
let recordModeItem = ModeList.find((item) => {
|
|
|
|
|
return item.id == FR200NursingHistory.modeId;
|
|
|
|
|
return item?.id == FR200NursingHistory.modeId;
|
|
|
|
|
});
|
|
|
|
|
if (!FR200NursingHistory || !recordModeItem) {
|
|
|
|
|
console.log("仪器有数据, 但是缓存没有数据, 忽略");
|
|
|
|
|
@ -1723,7 +1741,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
!workStatus
|
|
|
|
|
) {
|
|
|
|
|
// 判断id是否一致, 一致的话则生成护理报表
|
|
|
|
|
if (jsonStatus.id == FR200NursingHistory.id) {
|
|
|
|
|
if (jsonStatus?.id == FR200NursingHistory?.id) {
|
|
|
|
|
console.log("id一致, 设备没有运行/已完成/待机");
|
|
|
|
|
let totalSeconds = jsonStatus.totalSeconds; // 从仪器上获取的使用时间
|
|
|
|
|
|
|
|
|
|
@ -1744,9 +1762,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
: s_to_hms(this.elapsedTime);
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
instrumentId: currentDevice.id,
|
|
|
|
|
instrumentId: currentDevice?.id,
|
|
|
|
|
instrumentName: currentDevice.name,
|
|
|
|
|
modeId: ActiveModeItem.id,
|
|
|
|
|
modeId: ActiveModeItem?.id,
|
|
|
|
|
modeName: ActiveModeItem.modeName,
|
|
|
|
|
nursingTime: timeValue,
|
|
|
|
|
};
|
|
|
|
|
@ -1757,9 +1775,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
} else {
|
|
|
|
|
// ID不一致,同步异常,统一提交一分钟
|
|
|
|
|
let params = {
|
|
|
|
|
instrumentId: currentDevice.id,
|
|
|
|
|
instrumentId: currentDevice?.id,
|
|
|
|
|
instrumentName: currentDevice.name,
|
|
|
|
|
modeId: ActiveModeItem.id,
|
|
|
|
|
modeId: ActiveModeItem?.id,
|
|
|
|
|
modeName: ActiveModeItem.modeName,
|
|
|
|
|
nursingTime: "00:01:00",
|
|
|
|
|
};
|
|
|
|
|
@ -1772,7 +1790,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
console.log("id一致, 设备运行中或暂停");
|
|
|
|
|
// 5.判断设备状态-运行中
|
|
|
|
|
// 同步时间
|
|
|
|
|
if (jsonStatus.id == FR200NursingHistory.id) {
|
|
|
|
|
if (jsonStatus?.id == FR200NursingHistory?.id) {
|
|
|
|
|
if (FR200NursingHistory.currentTime) {
|
|
|
|
|
this.isRuning = true;
|
|
|
|
|
this.resetTimer();
|
|
|
|
|
@ -1800,8 +1818,8 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
videoTime: this.FR200NursingHistory.videoTime,
|
|
|
|
|
tempModeCurrent: ActiveModeItem,
|
|
|
|
|
ActiveModeItem: ActiveModeItem,
|
|
|
|
|
activeModeID: ActiveModeItem.id,
|
|
|
|
|
ModeID: "mode_" + ActiveModeItem.id,
|
|
|
|
|
activeModeID: ActiveModeItem?.id,
|
|
|
|
|
ModeID: "mode_" + ActiveModeItem?.id,
|
|
|
|
|
currentTime: this.FR200NursingHistory.currentTime,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@ -1812,9 +1830,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
const params = {
|
|
|
|
|
createDate: dayjs().format("YYYY-MM-DD"),
|
|
|
|
|
workMode: jsonStatus.workMode,
|
|
|
|
|
instrumentId: currentDevice.id,
|
|
|
|
|
instrumentId: currentDevice?.id,
|
|
|
|
|
instrumentName: currentDevice.name,
|
|
|
|
|
modeId: ActiveModeItem.id,
|
|
|
|
|
modeId: ActiveModeItem?.id,
|
|
|
|
|
modeName: ActiveModeItem.modeName,
|
|
|
|
|
id: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
|
|
|
|
neededTotalSeconds: jsonStatus.neededTotalSeconds,
|
|
|
|
|
@ -1844,7 +1862,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
params.dataArray.push(jsonStatus);
|
|
|
|
|
params.jsonStatus = jsonStatus;
|
|
|
|
|
params.workMode = jsonStatus?.workMode;
|
|
|
|
|
params.modeId = this.state.ActiveModeItem.id;
|
|
|
|
|
params.modeId = this.state.ActiveModeItem?.id;
|
|
|
|
|
params.modeName = this.state.ActiveModeItem.modeName;
|
|
|
|
|
|
|
|
|
|
console.log(jsonStatus, 555555555555);
|
|
|
|
|
@ -1852,7 +1870,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
} else {
|
|
|
|
|
params.jsonStatus = jsonStatus;
|
|
|
|
|
params.workMode = jsonStatus?.workMode;
|
|
|
|
|
params.modeId = data.id;
|
|
|
|
|
params.modeId = data?.id;
|
|
|
|
|
params.modeName = data.modeName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -2002,9 +2020,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
params = data;
|
|
|
|
|
} else {
|
|
|
|
|
params = {
|
|
|
|
|
instrumentId: currentDevice.id,
|
|
|
|
|
instrumentId: currentDevice?.id,
|
|
|
|
|
instrumentName: currentDevice.name,
|
|
|
|
|
modeId: ActiveModeItem.id,
|
|
|
|
|
modeId: ActiveModeItem?.id,
|
|
|
|
|
modeName: ActiveModeItem.modeName,
|
|
|
|
|
nursingTime: s_to_hms(this.elapsedTime),
|
|
|
|
|
};
|
|
|
|
|
@ -2019,7 +2037,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
console.log("PostNursingLogClock", res2);
|
|
|
|
|
if (res2.data.code === 200) {
|
|
|
|
|
let params = {
|
|
|
|
|
instrumentId: currentDevice.id,
|
|
|
|
|
instrumentId: currentDevice?.id,
|
|
|
|
|
};
|
|
|
|
|
// 上传护理完成的仪器ID
|
|
|
|
|
let res = await InstrumentInfo.apiClock.addClockInstrument(params);
|
|
|
|
|
@ -2037,9 +2055,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
this.goFaceReport(
|
|
|
|
|
res1,
|
|
|
|
|
ActiveModeItem.id,
|
|
|
|
|
ActiveModeItem?.id,
|
|
|
|
|
res2.data.data,
|
|
|
|
|
currentDevice.id
|
|
|
|
|
currentDevice?.id
|
|
|
|
|
); // 跳转
|
|
|
|
|
}, 2000);
|
|
|
|
|
}
|
|
|
|
|
@ -2230,13 +2248,13 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
firstNurseInfo = async () => {
|
|
|
|
|
let { currentDevice } = this.state;
|
|
|
|
|
let res = await InstrumentInfo.firstNurseInfo({
|
|
|
|
|
instrumentId: currentDevice.id,
|
|
|
|
|
instrumentId: currentDevice?.id,
|
|
|
|
|
});
|
|
|
|
|
console.log(res, "接口");
|
|
|
|
|
|
|
|
|
|
if (res.data.code === 200) {
|
|
|
|
|
let isFirstTipShow = getStorageSync(
|
|
|
|
|
"first_instrument_" + currentDevice.id
|
|
|
|
|
"first_instrument_" + currentDevice?.id
|
|
|
|
|
);
|
|
|
|
|
console.log(isFirstTipShow, "查看返回值");
|
|
|
|
|
|
|
|
|
|
@ -2246,7 +2264,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
this.setState({ nurseInfo: res.data.data, isFirstTipShow: true });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setStorageSync("first_instrument_" + currentDevice.id, true);
|
|
|
|
|
setStorageSync("first_instrument_" + currentDevice?.id, true);
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({ nurseInfo: res.data.data });
|
|
|
|
|
}
|
|
|
|
|
@ -2256,7 +2274,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
this.setState({ isFirstTipShow: true });
|
|
|
|
|
};
|
|
|
|
|
onTipShowClose = async () => {
|
|
|
|
|
setStorageSync("first_instrument_" + this.state.currentDevice.id, true);
|
|
|
|
|
setStorageSync("first_instrument_" + this.state.currentDevice?.id, true);
|
|
|
|
|
this.setState({ isFirstTipShow: false });
|
|
|
|
|
};
|
|
|
|
|
/** 初次护理信息弹窗 END */
|
|
|
|
|
@ -2305,9 +2323,30 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
}, 100);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
changeFull() {
|
|
|
|
|
console.log("changeFull");
|
|
|
|
|
let { isFullScreen } = this.state;
|
|
|
|
|
/* eslint-enable */
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
if (typeof wx !== "undefined" && wx.setPageOrientation) {
|
|
|
|
|
if (isFullScreen) {
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
wx.setPageOrientation({
|
|
|
|
|
orientation: "landscape",
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
wx.setPageOrientation({
|
|
|
|
|
orientation: "portrait",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let {
|
|
|
|
|
title,
|
|
|
|
|
textshow,
|
|
|
|
|
isConnectShow,
|
|
|
|
|
GearData,
|
|
|
|
|
waterStepList,
|
|
|
|
|
@ -2317,7 +2356,6 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
isStopNurse,
|
|
|
|
|
ModeList,
|
|
|
|
|
ModeType,
|
|
|
|
|
ModeStepIndex,
|
|
|
|
|
ActiveModeItem,
|
|
|
|
|
currentWorkModeType,
|
|
|
|
|
isSwitchActiveMode,
|
|
|
|
|
@ -2335,6 +2373,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
isNotEnoughTime,
|
|
|
|
|
isShowNursingSuccess,
|
|
|
|
|
currentDevice,
|
|
|
|
|
textscreen,
|
|
|
|
|
isConnectionBlutoot,
|
|
|
|
|
isShowTipsSave,
|
|
|
|
|
isFirstTipShow,
|
|
|
|
|
@ -2347,93 +2386,174 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
showEcharts,
|
|
|
|
|
echartsData,
|
|
|
|
|
isShowReReadRecordConnect,
|
|
|
|
|
currentServiceData,
|
|
|
|
|
series,
|
|
|
|
|
isFullScreen,
|
|
|
|
|
} = this.state;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Block>
|
|
|
|
|
<Navbar
|
|
|
|
|
titleSlot={title}
|
|
|
|
|
isBack
|
|
|
|
|
isCustomBack
|
|
|
|
|
customBack={this.customBack}
|
|
|
|
|
/>
|
|
|
|
|
{!isFullScreen && (
|
|
|
|
|
<View>
|
|
|
|
|
<View catchMove>
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isModeLock}
|
|
|
|
|
zIndex={10020}
|
|
|
|
|
myClassName="level-up"
|
|
|
|
|
title="提示"
|
|
|
|
|
content="该模式即将上线,敬请期待"
|
|
|
|
|
confirmButtonText="我知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.onModeLockClose}
|
|
|
|
|
confirm={this.onModeLockClose}
|
|
|
|
|
/>
|
|
|
|
|
<PopupInstrumentUploadTips
|
|
|
|
|
isShow={isFirstTipShow}
|
|
|
|
|
zIndex={10020}
|
|
|
|
|
myClassName="level-up"
|
|
|
|
|
title="打卡介绍"
|
|
|
|
|
data={nurseInfo}
|
|
|
|
|
close={this.onTipShowClose}
|
|
|
|
|
confirm={this.onTipShowClose}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<PopupCountdown isShow={isShowCountdown} countdown={countdown} />
|
|
|
|
|
{isFullScreen && (
|
|
|
|
|
<Navbar
|
|
|
|
|
titleSlot={title}
|
|
|
|
|
isBack
|
|
|
|
|
isCustomBack
|
|
|
|
|
customBack={this.customBack}
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<PopupConfirm
|
|
|
|
|
<View>
|
|
|
|
|
<View catchMove>
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isModeLock}
|
|
|
|
|
zIndex={10020}
|
|
|
|
|
myClassName="level-up"
|
|
|
|
|
title="提示"
|
|
|
|
|
content="该模式即将上线,敬请期待"
|
|
|
|
|
confirmButtonText="我知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.onModeLockClose}
|
|
|
|
|
confirm={this.onModeLockClose}
|
|
|
|
|
/>
|
|
|
|
|
<PopupInstrumentUploadTips
|
|
|
|
|
isShow={isFirstTipShow}
|
|
|
|
|
zIndex={10020}
|
|
|
|
|
myClassName="level-up"
|
|
|
|
|
title="打卡介绍"
|
|
|
|
|
data={nurseInfo}
|
|
|
|
|
close={this.onTipShowClose}
|
|
|
|
|
confirm={this.onTipShowClose}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<PopupCountdown isShow={isShowCountdown} countdown={countdown} />
|
|
|
|
|
|
|
|
|
|
<PopupConfirm
|
|
|
|
|
isLarge
|
|
|
|
|
isClose
|
|
|
|
|
isShow={isEndCarePlan}
|
|
|
|
|
title="提示"
|
|
|
|
|
content="是否结束护理"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
cancelButtonText="取消"
|
|
|
|
|
confirmButtonText="确定"
|
|
|
|
|
close={this.cancelEndBtn}
|
|
|
|
|
confirm={this.confirmEndBtn}
|
|
|
|
|
/>
|
|
|
|
|
<PopupConfirm
|
|
|
|
|
isLarge
|
|
|
|
|
isClose
|
|
|
|
|
isShow={isSwitchActiveMode}
|
|
|
|
|
title="护理模式切换"
|
|
|
|
|
content={
|
|
|
|
|
<ModeListView
|
|
|
|
|
ModeID={ModeID}
|
|
|
|
|
activeModeID={activeModeID}
|
|
|
|
|
isPop
|
|
|
|
|
isShowNurse={isShowNurse}
|
|
|
|
|
ModeList={ModeList}
|
|
|
|
|
ModeType={ModeType}
|
|
|
|
|
onEmit={this.switchModeCurrentFun}
|
|
|
|
|
onEmitShowAll={this.openModeSwitch}
|
|
|
|
|
onModeLockOpen={this.onModeLockOpen}
|
|
|
|
|
/>
|
|
|
|
|
}
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
cancelButtonText="取消"
|
|
|
|
|
confirmButtonText="确定"
|
|
|
|
|
close={this.cancelModeSwitchBtn}
|
|
|
|
|
confirm={this.confirmModeSwitchBtn}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{ActiveModeItem.openSourceData.length > 0 && (
|
|
|
|
|
<PopupStepTips
|
|
|
|
|
isShow={isShowStepTips}
|
|
|
|
|
isLarge
|
|
|
|
|
isClose
|
|
|
|
|
isShow={isEndCarePlan}
|
|
|
|
|
title="提示"
|
|
|
|
|
content="是否结束护理"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
cancelButtonText="取消"
|
|
|
|
|
confirmButtonText="确定"
|
|
|
|
|
close={this.cancelEndBtn}
|
|
|
|
|
confirm={this.confirmEndBtn}
|
|
|
|
|
isFirstEntry={false}
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
data={ActiveModeItem.openSourceData}
|
|
|
|
|
close={this.closeStepTips}
|
|
|
|
|
/>
|
|
|
|
|
<PopupConfirm
|
|
|
|
|
isLarge
|
|
|
|
|
isClose
|
|
|
|
|
isShow={isSwitchActiveMode}
|
|
|
|
|
title="护理模式切换"
|
|
|
|
|
content={
|
|
|
|
|
<ModeListView
|
|
|
|
|
ModeID={ModeID}
|
|
|
|
|
activeModeID={activeModeID}
|
|
|
|
|
isPop
|
|
|
|
|
isShowNurse={isShowNurse}
|
|
|
|
|
ModeList={ModeList}
|
|
|
|
|
ModeType={ModeType}
|
|
|
|
|
onEmit={this.switchModeCurrentFun}
|
|
|
|
|
onEmitShowAll={this.openModeSwitch}
|
|
|
|
|
onModeLockOpen={this.onModeLockOpen}
|
|
|
|
|
/>
|
|
|
|
|
}
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
cancelButtonText="取消"
|
|
|
|
|
confirmButtonText="确定"
|
|
|
|
|
close={this.cancelModeSwitchBtn}
|
|
|
|
|
confirm={this.confirmModeSwitchBtn}
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isNotEnoughTime}
|
|
|
|
|
isClose
|
|
|
|
|
title="提示"
|
|
|
|
|
content="您的本次护理时间不足,请重新护理"
|
|
|
|
|
confirmButtonText="确认"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.closeNotEnoughTime}
|
|
|
|
|
confirm={this.closeNotEnoughTime}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isShowErrorTipsText}
|
|
|
|
|
isClose
|
|
|
|
|
zIndex={10020}
|
|
|
|
|
myClassName="level-up"
|
|
|
|
|
title="提示"
|
|
|
|
|
content={errorTipsText}
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.closeErrorTipsText}
|
|
|
|
|
confirm={this.closeErrorTipsText}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<PopupConfirm
|
|
|
|
|
isShow={isShowTipsSave}
|
|
|
|
|
isClose
|
|
|
|
|
zIndex={10020}
|
|
|
|
|
myClassName="level-up"
|
|
|
|
|
title="提示"
|
|
|
|
|
content={
|
|
|
|
|
<Block>
|
|
|
|
|
<View>当前模式已护理部分时间</View>
|
|
|
|
|
<View>是否保存护理记录</View>
|
|
|
|
|
</Block>
|
|
|
|
|
}
|
|
|
|
|
cancelButtonText="取消"
|
|
|
|
|
confirmButtonText="确认"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={this.closeTipsSave}
|
|
|
|
|
cancel={this.cancelTipsSave}
|
|
|
|
|
confirm={this.confirmTipsSave}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<PopupStatus
|
|
|
|
|
isShow={isShowNursingSuccess}
|
|
|
|
|
isClose
|
|
|
|
|
title="您已结束本次护理"
|
|
|
|
|
type="success"
|
|
|
|
|
content="正在上传护理记录……"
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
close={() => {
|
|
|
|
|
/*不需要做处理*/
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{isConnectShow && (
|
|
|
|
|
<ConnectionBluetoot
|
|
|
|
|
deviceInfo={currentDevice}
|
|
|
|
|
close={this.connectionClose}
|
|
|
|
|
isDisconnect={!isConnectionBlutoot}
|
|
|
|
|
offlineChange={() => {}}
|
|
|
|
|
pairingChange={this.pairingChange}
|
|
|
|
|
upgradeFun={() => {}}
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<Popup
|
|
|
|
|
show={isShowHistoryMsg}
|
|
|
|
|
className="custom-popup"
|
|
|
|
|
overlay={false}
|
|
|
|
|
>
|
|
|
|
|
<View className="sync-history-msg">正在同步护理记录...</View>
|
|
|
|
|
</Popup>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<Popup
|
|
|
|
|
show={isShowHistoryMsg}
|
|
|
|
|
className="custom-popup"
|
|
|
|
|
overlay={false}
|
|
|
|
|
>
|
|
|
|
|
<View className="sync-history-msg">正在同步护理记录...</View>
|
|
|
|
|
</Popup>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<View>
|
|
|
|
|
<View className="iot-main">
|
|
|
|
|
<View>
|
|
|
|
|
<View className="iot-main">
|
|
|
|
|
{isFullScreen && (
|
|
|
|
|
<View className="banner-box">
|
|
|
|
|
<View>
|
|
|
|
|
<Video
|
|
|
|
|
@ -2463,7 +2583,8 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
<View className="fr200-iot-device">
|
|
|
|
|
<View className="item">
|
|
|
|
|
<Text className="device-time">
|
|
|
|
|
倒计时:<Text className="time">{currentTime}</Text>
|
|
|
|
|
倒计时:
|
|
|
|
|
<Text className="time">{currentTime}</Text>
|
|
|
|
|
</Text>
|
|
|
|
|
</View>
|
|
|
|
|
<View className="line" />
|
|
|
|
|
@ -2477,37 +2598,29 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
/>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{ModeList.length > 0 && isFullScreen && (
|
|
|
|
|
<ModeListView
|
|
|
|
|
isPop={false}
|
|
|
|
|
isShowNurse={isShowNurse}
|
|
|
|
|
ModeList={ModeList}
|
|
|
|
|
ModeType={ModeType}
|
|
|
|
|
ModeID={ModeID}
|
|
|
|
|
activeModeID={activeModeID}
|
|
|
|
|
onEmit={this.modeCurrentFun}
|
|
|
|
|
onEmitShowAll={this.openModeSwitch}
|
|
|
|
|
onModeLockOpen={this.onModeLockOpen}
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
<button onClick={this.updata.bind(this)}>模拟数据更新 </button>
|
|
|
|
|
<View className={classnames({ show: showEcharts })}>
|
|
|
|
|
<Echarts series={series} full={this.full.bind(this)}></Echarts>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
{ModeList.length > 0 && (
|
|
|
|
|
<ModeListView
|
|
|
|
|
isPop={false}
|
|
|
|
|
isShowNurse={isShowNurse}
|
|
|
|
|
ModeList={ModeList}
|
|
|
|
|
ModeType={ModeType}
|
|
|
|
|
ModeID={ModeID}
|
|
|
|
|
activeModeID={activeModeID}
|
|
|
|
|
onEmit={this.modeCurrentFun}
|
|
|
|
|
onEmitShowAll={this.openModeSwitch}
|
|
|
|
|
onModeLockOpen={this.onModeLockOpen}
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
<button onClick={this.updata.bind(this)}>模拟数据更新 </button>
|
|
|
|
|
{/* <button onClick={this.updata.bind(this)}>添加数据 </button> */}
|
|
|
|
|
|
|
|
|
|
<View className={classnames({ show: showEcharts })}>
|
|
|
|
|
<Echarts
|
|
|
|
|
series={series}
|
|
|
|
|
full={this.full.bind(this)}
|
|
|
|
|
></Echarts>
|
|
|
|
|
|
|
|
|
|
<EchartsFullScean
|
|
|
|
|
series={series}
|
|
|
|
|
full={this.full}
|
|
|
|
|
></EchartsFullScean>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
{(ActiveModeItem.modeType === "maskPenetration" ||
|
|
|
|
|
ActiveModeItem.modeType === "essence") && (
|
|
|
|
|
{(ActiveModeItem?.modeType === "maskPenetration" ||
|
|
|
|
|
ActiveModeItem?.modeType === "essence") &&
|
|
|
|
|
isFullScreen && (
|
|
|
|
|
<Gears
|
|
|
|
|
onEmitMinus={this.handleMinus}
|
|
|
|
|
onEmitAdd={this.handleAdd}
|
|
|
|
|
@ -2515,15 +2628,16 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
></Gears>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{ActiveModeItem.modeType === "moistureTest" && (
|
|
|
|
|
<WaterTest
|
|
|
|
|
isRuningTest={isRuningTest}
|
|
|
|
|
stepList={waterStepList}
|
|
|
|
|
stepIndex={waterStepIndex}
|
|
|
|
|
></WaterTest>
|
|
|
|
|
)}
|
|
|
|
|
</View>
|
|
|
|
|
{ActiveModeItem?.modeType === "moistureTest" && isFullScreen && (
|
|
|
|
|
<WaterTest
|
|
|
|
|
isRuningTest={isRuningTest}
|
|
|
|
|
stepList={waterStepList}
|
|
|
|
|
stepIndex={waterStepIndex}
|
|
|
|
|
></WaterTest>
|
|
|
|
|
)}
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
{isFullScreen && (
|
|
|
|
|
<Footer
|
|
|
|
|
currentWorkModeType={currentWorkModeType}
|
|
|
|
|
isRuningTest={isRuningTest}
|
|
|
|
|
@ -2533,19 +2647,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
onEmitEndPlan={this.onEndPlan}
|
|
|
|
|
onsuccess={this.onsuccess}
|
|
|
|
|
/>
|
|
|
|
|
</View>
|
|
|
|
|
)}
|
|
|
|
|
</View>
|
|
|
|
|
)}
|
|
|
|
|
{isFullScreen && (
|
|
|
|
|
<View>
|
|
|
|
|
<button onClick={this.updata.bind(this)}>模拟数据更新 </button>
|
|
|
|
|
|
|
|
|
|
<EchartsFullScean
|
|
|
|
|
series={series}
|
|
|
|
|
full={this.full}
|
|
|
|
|
></EchartsFullScean>
|
|
|
|
|
</View>
|
|
|
|
|
)}
|
|
|
|
|
</View>
|
|
|
|
|
</Block>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|