临时提交

master
qsj 2 years ago
parent b2f8a48528
commit fbe919b21e

@ -1,5 +1,14 @@
@import url(./WL200.less); @import url(./WL200.less);
.text {
// writing-mode: vertical-lr;
// text-orientation: upright;
// white-space: nowrap;
// font-size: 18px;
// font-weight: bold;
// background-color: #c2e5f3;
// color: #fff;
// width: 100%;
}
.show { .show {
display: none; display: none;
} }

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

@ -7,6 +7,16 @@
padding: 35rpx 25rpx 25rpx 35rpx; padding: 35rpx 25rpx 25rpx 35rpx;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
// writing-mode: vertical-lr;
// text-orientation: upright;
// white-space: nowrap;
// font-size: 18px;
// font-weight: bold;
// background-color: #c2e5f3;
// color: #fff;
// width: 100%;
} }
.fullscreen { .fullscreen {

@ -21,6 +21,7 @@ function Index({ data }: Props) {
animation: false, animation: false,
grid: { grid: {
// 让图表占满容器 // 让图表占满容器
// containLabel: true,
top: "28rpx", top: "28rpx",
left: "18rpx", left: "18rpx",
right: "28rpx", right: "28rpx",

Loading…
Cancel
Save