|
|
|
|
@ -22,6 +22,7 @@ class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
this.state = {
|
|
|
|
|
name: "重新登录",
|
|
|
|
|
imgUrl: '',
|
|
|
|
|
reportShow:true,
|
|
|
|
|
reportData: {
|
|
|
|
|
curDate: '',
|
|
|
|
|
shuifenLevel: {
|
|
|
|
|
@ -58,10 +59,16 @@ class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
onLoad(option) {
|
|
|
|
|
console.log(option);
|
|
|
|
|
|
|
|
|
|
let Bool = JSON.parse(option?.report)
|
|
|
|
|
if(!Bool){
|
|
|
|
|
this.setState({
|
|
|
|
|
reportShow: Bool
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
let data = JSON.parse(option.data)
|
|
|
|
|
let { reportData } = this.state
|
|
|
|
|
reportData.curDate = option.date
|
|
|
|
|
reportData.curDate = option.report
|
|
|
|
|
data.GearData.map(item => {
|
|
|
|
|
if (item.name == '额头') {
|
|
|
|
|
reportData.shuifenLevel.head = item.forehead
|
|
|
|
|
@ -92,7 +99,7 @@ class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let { name, imgUrl, reportData, reportData1, isClock, xinde, imglist, id, show, modeId, echartsData, showEcharts } = this.state
|
|
|
|
|
let { name, imgUrl, reportData, reportData1, reportShow,isClock, xinde, imglist, id, show, modeId, echartsData, showEcharts } = this.state
|
|
|
|
|
|
|
|
|
|
const getStatusData = (level) => {
|
|
|
|
|
var bgCssData = {
|
|
|
|
|
@ -295,13 +302,16 @@ class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<View className='go_clock_in flex sb aitems' >
|
|
|
|
|
<View className='go_clock_btn' onClick={this.toNursing.bind(this)}>继续护理</View>
|
|
|
|
|
<View className='jump_box flex aitems' onClick={this.toIndex}>
|
|
|
|
|
<View className='txt'>主页</View>
|
|
|
|
|
<Image src='@/img/fr200/right.png' mode='aspectFill'></Image>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
{reportShow ? (
|
|
|
|
|
<View className='go_clock_in flex sb aitems' >
|
|
|
|
|
<View className='go_clock_btn' onClick={this.toNursing.bind(this)}>继续护理</View>
|
|
|
|
|
<View className='jump_box flex aitems' onClick={this.toIndex}>
|
|
|
|
|
<View className='txt'>主页</View>
|
|
|
|
|
<Image src='@/img/fr200/right.png' mode='aspectFill'></Image>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
) : null}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Block >
|
|
|
|
|
);
|
|
|
|
|
|