|
|
|
|
@ -3,16 +3,15 @@ import dayjs from "dayjs";
|
|
|
|
|
import classnames from "classnames";
|
|
|
|
|
import { debounce } from "lodash";
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line import/no-named-as-default
|
|
|
|
|
import React, {
|
|
|
|
|
Component,
|
|
|
|
|
PropsWithChildren,
|
|
|
|
|
useEffect,
|
|
|
|
|
useState,
|
|
|
|
|
} from "react";
|
|
|
|
|
|
|
|
|
|
import Echarts from "./components/Echart/index";
|
|
|
|
|
import Gears from "./components/Gears/index";
|
|
|
|
|
/*** redux ***/
|
|
|
|
|
import { connect } from "react-redux";
|
|
|
|
|
/*** redux end ***/
|
|
|
|
|
import {
|
|
|
|
|
Block,
|
|
|
|
|
View,
|
|
|
|
|
@ -23,9 +22,27 @@ import {
|
|
|
|
|
Button,
|
|
|
|
|
} from "@tarojs/components";
|
|
|
|
|
|
|
|
|
|
/*** redux ***/
|
|
|
|
|
import { connect } from "react-redux";
|
|
|
|
|
/*** redux end ***/
|
|
|
|
|
import {
|
|
|
|
|
notifyBLECharacteristicValueChange,
|
|
|
|
|
sendCommand,
|
|
|
|
|
} from "@/utils/bluetoothWXAPI";
|
|
|
|
|
import {
|
|
|
|
|
deviceCommandSamples,
|
|
|
|
|
bleCommandSamples,
|
|
|
|
|
} from "@/components/bluetoot/connection/wl200";
|
|
|
|
|
|
|
|
|
|
import { minSecToS, s_to_ms, s_to_hms, sleep, s_to_s } from "@/utils/util";
|
|
|
|
|
// import { DeviceToolKit as DeviceToolKitWE100 } from "@flossom-npm/iot-translater-we100";
|
|
|
|
|
import {
|
|
|
|
|
DeviceToolKit as DeviceToolKitWM,
|
|
|
|
|
TResponseFromDevice as TResponseFromDeviceWM,
|
|
|
|
|
} from "@flossom-npm/iot-translater";
|
|
|
|
|
import commandMap from "@/utils/commandMap";
|
|
|
|
|
import { Popup } from "@antmjs/vantui";
|
|
|
|
|
import { fr200BleCommand } from "@/components/bluetoot/connection/fr200";
|
|
|
|
|
|
|
|
|
|
import { go, getStorageSync, setStorageSync, msg } from "@/utils/traoAPI";
|
|
|
|
|
import { InstrumentInfo } from "@/utils/Interface";
|
|
|
|
|
|
|
|
|
|
/* 公共组件 */
|
|
|
|
|
import Navbar from "@/components/navbar/navbar";
|
|
|
|
|
@ -45,28 +62,13 @@ import Footer from "./components/Footer/FR200";
|
|
|
|
|
import WaterTest from "./components/WaterTest/index";
|
|
|
|
|
/* 本页组件 END */
|
|
|
|
|
|
|
|
|
|
import { go, getStorageSync, setStorageSync, msg } from "@/utils/traoAPI";
|
|
|
|
|
import { InstrumentInfo } from "@/utils/Interface";
|
|
|
|
|
import Echarts from "./components/Echart";
|
|
|
|
|
import Gears from "./components/Gears";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import "./FR200.less";
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
notifyBLECharacteristicValueChange,
|
|
|
|
|
sendCommand,
|
|
|
|
|
} from "@/utils/bluetoothWXAPI";
|
|
|
|
|
import {
|
|
|
|
|
deviceCommandSamples,
|
|
|
|
|
bleCommandSamples,
|
|
|
|
|
} from "@/components/bluetoot/connection/wl200";
|
|
|
|
|
|
|
|
|
|
import { minSecToS, s_to_ms, s_to_hms, sleep, s_to_s } from "@/utils/util";
|
|
|
|
|
// import { DeviceToolKit as DeviceToolKitWE100 } from "@flossom-npm/iot-translater-we100";
|
|
|
|
|
import {
|
|
|
|
|
DeviceToolKit as DeviceToolKitWM,
|
|
|
|
|
TResponseFromDevice as TResponseFromDeviceWM,
|
|
|
|
|
} from "@flossom-npm/iot-translater";
|
|
|
|
|
import commandMap from "@/utils/commandMap";
|
|
|
|
|
import { Popup } from "@antmjs/vantui";
|
|
|
|
|
import { fr200BleCommand } from "@/components/bluetoot/connection/fr200";
|
|
|
|
|
|
|
|
|
|
const deviceToolKitInstanceFR200 = new DeviceToolKitWM("FR200");
|
|
|
|
|
let deviceToolKitInstance = deviceToolKitInstanceFR200;
|
|
|
|
|
@ -220,6 +222,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
// isFirstEntryMode: false, // 模式首次打开
|
|
|
|
|
|
|
|
|
|
isShowHistoryMsg: false, // 是否显示正在同步历史
|
|
|
|
|
showEcharts: false,
|
|
|
|
|
echartsData: '' //传给echarts图表的数据
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -272,10 +277,11 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
this.initData();
|
|
|
|
|
this.getInstrumentClockSummary();
|
|
|
|
|
this.getInstrumentClockDetail();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentDidMount() {}
|
|
|
|
|
componentDidMount() { }
|
|
|
|
|
|
|
|
|
|
componentWillUnmount() {}
|
|
|
|
|
componentWillUnmount() { }
|
|
|
|
|
|
|
|
|
|
componentDidShow() {
|
|
|
|
|
console.log("页面显示了");
|
|
|
|
|
@ -423,6 +429,10 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
this.modeCurrentFun(res.data.data[0]);
|
|
|
|
|
}, 100);
|
|
|
|
|
}
|
|
|
|
|
let res1 = res.data.data.find(e => e.id == this.state.activeModeID)
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.modeCurrentFun(res1);
|
|
|
|
|
}, 100);
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({ ModeList: [] });
|
|
|
|
|
}
|
|
|
|
|
@ -501,6 +511,15 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
currentWorkModeType,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
// 设置时间组合
|
|
|
|
|
if (data.serviceData.length > 0) {
|
|
|
|
|
this.setServiceTimeData();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 开发中,暂时允许直接切换
|
|
|
|
|
// 每次切换模式时清空一下历史数据
|
|
|
|
|
this.changeItemUpdateFR200NursingHistory();
|
|
|
|
|
@ -672,9 +691,27 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
this.showTips("检测到您的设备没有紧贴肌肤,请紧贴肌肤后重新尝试");
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
look() {
|
|
|
|
|
let that = this
|
|
|
|
|
// this.setState({ showEcharts: !this.state.showEcharts });
|
|
|
|
|
let stop = 0
|
|
|
|
|
let time = setInterval(function () {
|
|
|
|
|
stop++
|
|
|
|
|
let random = Math.random();
|
|
|
|
|
that.setState({ echartsData: random })
|
|
|
|
|
if (stop >= 20) {
|
|
|
|
|
clearInterval(time)
|
|
|
|
|
}
|
|
|
|
|
}, 1000)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
updata() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 绘制能量图
|
|
|
|
|
drawProwerPicture() {}
|
|
|
|
|
drawProwerPicture() { }
|
|
|
|
|
|
|
|
|
|
/** 切换光照 */
|
|
|
|
|
onSwitchChange = async () => {
|
|
|
|
|
@ -1675,6 +1712,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
console.log("保存setFR200NursingHistory");
|
|
|
|
|
};
|
|
|
|
|
/** 更新WL200护理历史运行时间 */
|
|
|
|
|
|
|
|
|
|
updateFR200NursingHistory = (data: any = null, jsonStatus = null) => {
|
|
|
|
|
this.FR200NursingHistory = Taro.getStorageSync("FR200NursingHistory");
|
|
|
|
|
|
|
|
|
|
@ -1692,6 +1730,8 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
if (!params.dataArray) params.dataArray = [];
|
|
|
|
|
params.dataArray.push(jsonStatus);
|
|
|
|
|
params.jsonStatus = jsonStatus;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Taro.setStorageSync("FR200NursingHistory", params);
|
|
|
|
|
@ -1700,7 +1740,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
// 基础模式可在这里调用函数更新图标Echarts
|
|
|
|
|
// 最新一条数据jsonStatus
|
|
|
|
|
// 注意事项:只拿working状态
|
|
|
|
|
// todo
|
|
|
|
|
// todo
|
|
|
|
|
} else {
|
|
|
|
|
this.setFR200NursingHistory(jsonStatus);
|
|
|
|
|
}
|
|
|
|
|
@ -2011,11 +2051,11 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
let report = true;
|
|
|
|
|
go(
|
|
|
|
|
"/recoding/pages/face_report_one/face_report_one?id=" +
|
|
|
|
|
id +
|
|
|
|
|
"&report=" +
|
|
|
|
|
report +
|
|
|
|
|
"&obj=" +
|
|
|
|
|
JSON.stringify(obj)
|
|
|
|
|
id +
|
|
|
|
|
"&report=" +
|
|
|
|
|
report +
|
|
|
|
|
"&obj=" +
|
|
|
|
|
JSON.stringify(obj)
|
|
|
|
|
);
|
|
|
|
|
} else if ("moistureTest" === nursingData.workMode) {
|
|
|
|
|
console.log("水分测试");
|
|
|
|
|
@ -2027,6 +2067,10 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
"&report=" +
|
|
|
|
|
report
|
|
|
|
|
);
|
|
|
|
|
// go(
|
|
|
|
|
// "/recoding/pages/face_report/face_report?id=" +
|
|
|
|
|
// this.state.currentDevice.id
|
|
|
|
|
// );
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@ -2177,6 +2221,10 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
isShowHistoryMsg,
|
|
|
|
|
isModeLock,
|
|
|
|
|
TestModeStepIndex,
|
|
|
|
|
showEcharts,
|
|
|
|
|
echartsData,
|
|
|
|
|
isShowReReadRecordConnect,
|
|
|
|
|
currentServiceData
|
|
|
|
|
} = this.state;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
@ -2192,19 +2240,19 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isModeLock}
|
|
|
|
|
zIndex={10020}
|
|
|
|
|
myClassName="level-up"
|
|
|
|
|
title="提示"
|
|
|
|
|
content="该模式即将上线,敬请期待"
|
|
|
|
|
confirmButtonText="我知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
myClassName='level-up'
|
|
|
|
|
title='提示'
|
|
|
|
|
content='该模式即将上线,敬请期待'
|
|
|
|
|
confirmButtonText='我知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
close={this.onModeLockClose}
|
|
|
|
|
confirm={this.onModeLockClose}
|
|
|
|
|
/>
|
|
|
|
|
<PopupInstrumentUploadTips
|
|
|
|
|
isShow={isFirstTipShow}
|
|
|
|
|
zIndex={10020}
|
|
|
|
|
myClassName="level-up"
|
|
|
|
|
title="打卡介绍"
|
|
|
|
|
myClassName='level-up'
|
|
|
|
|
title='打卡介绍'
|
|
|
|
|
data={nurseInfo}
|
|
|
|
|
close={this.onTipShowClose}
|
|
|
|
|
confirm={this.onTipShowClose}
|
|
|
|
|
@ -2216,11 +2264,11 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
isLarge
|
|
|
|
|
isClose
|
|
|
|
|
isShow={isEndCarePlan}
|
|
|
|
|
title="提示"
|
|
|
|
|
content="是否结束护理"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
cancelButtonText="取消"
|
|
|
|
|
confirmButtonText="确定"
|
|
|
|
|
title='提示'
|
|
|
|
|
content='是否结束护理'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
cancelButtonText='取消'
|
|
|
|
|
confirmButtonText='确定'
|
|
|
|
|
close={this.cancelEndBtn}
|
|
|
|
|
confirm={this.confirmEndBtn}
|
|
|
|
|
/>
|
|
|
|
|
@ -2228,7 +2276,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
isLarge
|
|
|
|
|
isClose
|
|
|
|
|
isShow={isSwitchActiveMode}
|
|
|
|
|
title="护理模式切换"
|
|
|
|
|
title='护理模式切换'
|
|
|
|
|
content={
|
|
|
|
|
<ModeListView
|
|
|
|
|
ModeID={ModeID}
|
|
|
|
|
@ -2242,9 +2290,9 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
onModeLockOpen={this.onModeLockOpen}
|
|
|
|
|
/>
|
|
|
|
|
}
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
cancelButtonText="取消"
|
|
|
|
|
confirmButtonText="确定"
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
cancelButtonText='取消'
|
|
|
|
|
confirmButtonText='确定'
|
|
|
|
|
close={this.cancelModeSwitchBtn}
|
|
|
|
|
confirm={this.confirmModeSwitchBtn}
|
|
|
|
|
/>
|
|
|
|
|
@ -2254,7 +2302,7 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
isShow={isShowStepTips}
|
|
|
|
|
isLarge
|
|
|
|
|
isFirstEntry={false}
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
data={ActiveModeItem.openSourceData}
|
|
|
|
|
close={this.closeStepTips}
|
|
|
|
|
/>
|
|
|
|
|
@ -2263,10 +2311,10 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
<PopupAlert
|
|
|
|
|
isShow={isNotEnoughTime}
|
|
|
|
|
isClose
|
|
|
|
|
title="提示"
|
|
|
|
|
content="您的本次护理时间不足,请重新护理"
|
|
|
|
|
confirmButtonText="确认"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
title='提示'
|
|
|
|
|
content='您的本次护理时间不足,请重新护理'
|
|
|
|
|
confirmButtonText='确认'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
close={this.closeNotEnoughTime}
|
|
|
|
|
confirm={this.closeNotEnoughTime}
|
|
|
|
|
/>
|
|
|
|
|
@ -2275,11 +2323,11 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
isShow={isShowErrorTipsText}
|
|
|
|
|
isClose
|
|
|
|
|
zIndex={10020}
|
|
|
|
|
myClassName="level-up"
|
|
|
|
|
title="提示"
|
|
|
|
|
myClassName='level-up'
|
|
|
|
|
title='提示'
|
|
|
|
|
content={errorTipsText}
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
close={this.closeErrorTipsText}
|
|
|
|
|
confirm={this.closeErrorTipsText}
|
|
|
|
|
/>
|
|
|
|
|
@ -2288,17 +2336,17 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
isShow={isShowTipsSave}
|
|
|
|
|
isClose
|
|
|
|
|
zIndex={10020}
|
|
|
|
|
myClassName="level-up"
|
|
|
|
|
title="提示"
|
|
|
|
|
myClassName='level-up'
|
|
|
|
|
title='提示'
|
|
|
|
|
content={
|
|
|
|
|
<Block>
|
|
|
|
|
<View>当前模式已护理部分时间</View>
|
|
|
|
|
<View>是否保存护理记录</View>
|
|
|
|
|
</Block>
|
|
|
|
|
}
|
|
|
|
|
cancelButtonText="取消"
|
|
|
|
|
confirmButtonText="确认"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
cancelButtonText='取消'
|
|
|
|
|
confirmButtonText='确认'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
close={this.closeTipsSave}
|
|
|
|
|
cancel={this.cancelTipsSave}
|
|
|
|
|
confirm={this.confirmTipsSave}
|
|
|
|
|
@ -2307,11 +2355,11 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
<PopupStatus
|
|
|
|
|
isShow={isShowNursingSuccess}
|
|
|
|
|
isClose
|
|
|
|
|
title="您已结束本次护理"
|
|
|
|
|
type="success"
|
|
|
|
|
content="正在上传护理记录……"
|
|
|
|
|
confirmButtonText="知道了"
|
|
|
|
|
textAlgin="center"
|
|
|
|
|
title='您已结束本次护理'
|
|
|
|
|
type='success'
|
|
|
|
|
content='正在上传护理记录……'
|
|
|
|
|
confirmButtonText='知道了'
|
|
|
|
|
textAlgin='center'
|
|
|
|
|
close={() => {
|
|
|
|
|
/*不需要做处理*/
|
|
|
|
|
}}
|
|
|
|
|
@ -2322,57 +2370,69 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
deviceInfo={currentDevice}
|
|
|
|
|
close={this.connectionClose}
|
|
|
|
|
isDisconnect={!isConnectionBlutoot}
|
|
|
|
|
offlineChange={() => {}}
|
|
|
|
|
offlineChange={() => { }}
|
|
|
|
|
pairingChange={this.pairingChange}
|
|
|
|
|
upgradeFun={() => {}}
|
|
|
|
|
upgradeFun={() => { }}
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<Popup
|
|
|
|
|
show={isShowHistoryMsg}
|
|
|
|
|
className="custom-popup"
|
|
|
|
|
className='custom-popup'
|
|
|
|
|
overlay={false}
|
|
|
|
|
>
|
|
|
|
|
<View className="sync-history-msg">正在同步护理记录...</View>
|
|
|
|
|
<View className='sync-history-msg'>正在同步护理记录...</View>
|
|
|
|
|
</Popup>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<View>
|
|
|
|
|
<View className="iot-main">
|
|
|
|
|
<View className="banner-box">
|
|
|
|
|
<View className='iot-main'>
|
|
|
|
|
<View className='banner-box'>
|
|
|
|
|
<View>
|
|
|
|
|
<Video
|
|
|
|
|
className="video-or-image"
|
|
|
|
|
src={ActiveModeItem.modeVideo}
|
|
|
|
|
loop
|
|
|
|
|
id="myVideo"
|
|
|
|
|
objectFit="cover"
|
|
|
|
|
enablePlayGesture
|
|
|
|
|
showFullscreenBtn={false}
|
|
|
|
|
onLoadedMetaData={this.GetVideosTime}
|
|
|
|
|
/>
|
|
|
|
|
{!isShowNurse && (
|
|
|
|
|
<Video
|
|
|
|
|
className='video-or-image'
|
|
|
|
|
src={ActiveModeItem.modeVideo}
|
|
|
|
|
loop
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{isShowNurse && (
|
|
|
|
|
<Block>
|
|
|
|
|
{isStopNurse ? (
|
|
|
|
|
<Image
|
|
|
|
|
className='video-or-image'
|
|
|
|
|
src={currentServiceData.stopSource}
|
|
|
|
|
/>
|
|
|
|
|
) : (
|
|
|
|
|
<Image
|
|
|
|
|
className='video-or-image'
|
|
|
|
|
src={currentServiceData.startSource}
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
</Block>
|
|
|
|
|
)}
|
|
|
|
|
{errorTips && (
|
|
|
|
|
<Block>
|
|
|
|
|
<View className="msg-tips">
|
|
|
|
|
<View className='msg-tips'>
|
|
|
|
|
<Image
|
|
|
|
|
className="msg-tips-img"
|
|
|
|
|
className='msg-tips-img'
|
|
|
|
|
src={require("@/img/tips.png")}
|
|
|
|
|
/>
|
|
|
|
|
<View className="msg-tips-content">{errorTips}</View>
|
|
|
|
|
<View className='msg-tips-content'>{errorTips}</View>
|
|
|
|
|
</View>
|
|
|
|
|
</Block>
|
|
|
|
|
)}
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<View className="iot-device">
|
|
|
|
|
<View className="item">
|
|
|
|
|
<Text className="device-time">
|
|
|
|
|
<View className='iot-device'>
|
|
|
|
|
<View className='item'>
|
|
|
|
|
<Text className='device-time'>
|
|
|
|
|
护理时间:
|
|
|
|
|
<Text className="time">{currentTime}</Text>
|
|
|
|
|
<Text className='time'>{currentTime}</Text>
|
|
|
|
|
</Text>
|
|
|
|
|
</View>
|
|
|
|
|
<View className="line" />
|
|
|
|
|
<View className='line' />
|
|
|
|
|
<ElectricityView
|
|
|
|
|
Electricity={Electricity}
|
|
|
|
|
matrixElectricity={matrixElectricity}
|
|
|
|
|
@ -2394,25 +2454,22 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
onModeLockOpen={this.onModeLockOpen}
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
<button onClick={this.look.bind(this)} >显示echarts </button>
|
|
|
|
|
<button onClick={this.updata.bind(this)} >添加数据 </button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<View className={classnames({ 'show': showEcharts })}><Echarts data={echartsData} ></Echarts></View>
|
|
|
|
|
{/* {(ActiveModeItem.modeType === "face" ||
|
|
|
|
|
ActiveModeItem.modeType === "eyes") && (
|
|
|
|
|
<Block>
|
|
|
|
|
<Echarts></Echarts>
|
|
|
|
|
</Block>
|
|
|
|
|
)} */}
|
|
|
|
|
{/* <View style="display:none;">
|
|
|
|
|
<Echarts></Echarts>
|
|
|
|
|
</View> */}
|
|
|
|
|
ActiveModeItem.modeType === "eyes") && <Echarts></Echarts>} */}
|
|
|
|
|
|
|
|
|
|
{(ActiveModeItem.modeType === "maskPenetration" ||
|
|
|
|
|
ActiveModeItem.modeType === "essence") && (
|
|
|
|
|
<Gears
|
|
|
|
|
onEmitMinus={this.handleMinus}
|
|
|
|
|
onEmitAdd={this.handleAdd}
|
|
|
|
|
GearData={GearData}
|
|
|
|
|
></Gears>
|
|
|
|
|
)}
|
|
|
|
|
<Gears
|
|
|
|
|
onEmitMinus={this.handleMinus}
|
|
|
|
|
onEmitAdd={this.handleAdd}
|
|
|
|
|
GearData={GearData}
|
|
|
|
|
></Gears>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{ActiveModeItem.modeType === "moistureTest" && (
|
|
|
|
|
<WaterTest
|
|
|
|
|
|