|
|
|
|
@ -650,32 +650,41 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
});
|
|
|
|
|
// return;
|
|
|
|
|
let { currentDevice, ActiveModeItem } = this.state;
|
|
|
|
|
let params = {};
|
|
|
|
|
let nursingData = {
|
|
|
|
|
nursingData: JSON.stringify({
|
|
|
|
|
GearData: [...stepList],
|
|
|
|
|
}),
|
|
|
|
|
};
|
|
|
|
|
let params:any = {};
|
|
|
|
|
|
|
|
|
|
// let nursingData = JSON.stringify({
|
|
|
|
|
// GearData: [...stepList],
|
|
|
|
|
// });
|
|
|
|
|
params = {
|
|
|
|
|
instrumentId: currentDevice.id,
|
|
|
|
|
instrumentName: currentDevice.name,
|
|
|
|
|
modeId: ActiveModeItem.id,
|
|
|
|
|
modeName: ActiveModeItem.modeName,
|
|
|
|
|
nursingTime: s_to_hms(this.elapsedTime),
|
|
|
|
|
nursingData: JSON.stringify({
|
|
|
|
|
GearData: [...stepList],
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
params = { ...params, ...nursingData };
|
|
|
|
|
|
|
|
|
|
// params = { ...params, ...nursingData };
|
|
|
|
|
let res: any = await InstrumentInfo.apiNursingLog.addLog(
|
|
|
|
|
JSON.stringify(params)
|
|
|
|
|
JSON.stringify(
|
|
|
|
|
params
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
setTimeout(async() => {
|
|
|
|
|
this.setState({
|
|
|
|
|
isShowNursingSuccess: false,
|
|
|
|
|
});
|
|
|
|
|
go(
|
|
|
|
|
`/recoding/pages/moisture_test_report/moisture_test_report?data=${nursingData}&date=${s_to_hms(
|
|
|
|
|
this.elapsedTime
|
|
|
|
|
)}&modeId=${ActiveModeItem.id}`
|
|
|
|
|
);
|
|
|
|
|
let time = await s_to_hms(
|
|
|
|
|
this.elapsedTime
|
|
|
|
|
)
|
|
|
|
|
console.log(time,ActiveModeItem.id,currentDevice.id,'查看数据',this.elapsedTime);
|
|
|
|
|
|
|
|
|
|
// go(
|
|
|
|
|
// `/recoding/pages/moisture_test_report/moisture_test_report?data=${params.nursingData}&date=${time}&modeId=${ActiveModeItem.id}`
|
|
|
|
|
// );
|
|
|
|
|
go(`/recoding/pages/moisture_test_report/moisture_test_report?data=${params.nursingData}&date=${time}&modeId=${ActiveModeItem.id}&id=${currentDevice.id}`);
|
|
|
|
|
}, 2000);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@ -2458,7 +2467,10 @@ class IotCarePlanFR200 extends Component<any, any> {
|
|
|
|
|
<button onClick={this.updata.bind(this)} >添加数据 </button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<View className={classnames({ 'show': showEcharts })}><Echarts data={echartsData} ></Echarts></View>
|
|
|
|
|
{/* <View className={classnames({ 'show': showEcharts })}> */}
|
|
|
|
|
<View className='text'>
|
|
|
|
|
<Echarts data={echartsData} ></Echarts>
|
|
|
|
|
</View>
|
|
|
|
|
{/* {(ActiveModeItem.modeType === "face" ||
|
|
|
|
|
ActiveModeItem.modeType === "eyes") && <Echarts></Echarts>} */}
|
|
|
|
|
|
|
|
|
|
|