merge 合并代码

master
blak-kong 2 years ago
commit ffb4910983

@ -748,12 +748,12 @@ class IotCarePlanFR200 extends Component<any, any> {
eDate, eDate,
}; };
setStorageSync("moistureEachtsData", JSON.stringify(echartsData)); setStorageSync("moistureEachtsData", JSON.stringify(echartsData));
let report = true;
// go(`/recoding/pages/moisture_test_report/moisture_test_report?data=${allData.nursingData}&date=${allData.createTime}&modeId=${allData.modeId}&id=${allData.instrumentId}&echartsData=${JSON.stringify(echartsData)}`); // go(`/recoding/pages/moisture_test_report/moisture_test_report?data=${allData.nursingData}&date=${allData.createTime}&modeId=${allData.modeId}&id=${allData.instrumentId}&echartsData=${JSON.stringify(echartsData)}`);
go( go(
`/recoding/pages/moisture_test_report/moisture_test_report?data=${nursingData}&date=${formattedDate}&modeId=${ActiveModeItemId}&id=${currentDeviceId}&echartsData=${JSON.stringify( `/recoding/pages/moisture_test_report/moisture_test_report?data=${nursingData}&date=${formattedDate}&modeId=${ActiveModeItemId}&id=${currentDeviceId}&echartsData=${JSON.stringify(
echartsData echartsData
)}` )}&report=${report}`
); );
} }
@ -2671,7 +2671,7 @@ class IotCarePlanFR200 extends Component<any, any> {
showFullscreenBtn={false} showFullscreenBtn={false}
onLoadedMetaData={this.GetVideosTime} onLoadedMetaData={this.GetVideosTime}
/> />
{/* <Button onClick={this.executePromises}>点击按钮</Button> */}
{errorTips && ( {errorTips && (
<Block> <Block>
<View className="msg-tips"> <View className="msg-tips">

@ -139,6 +139,10 @@ page {
height: 100% !important; height: 100% !important;
border-radius: 20rpx; border-radius: 20rpx;
} }
.showImg:last-child{
width: 40rpx !important;
height: 40rpx !important;
}
} }
.info4 { .info4 {
position: relative; position: relative;

@ -82,6 +82,7 @@ page {
.text-title{ .text-title{
font-size: 18rpx; font-size: 18rpx;
color: #999999; color: #999999;
margin: 8rpx 0rpx;
} }
.main { .main {
border-radius: 30rpx; border-radius: 30rpx;
@ -179,6 +180,10 @@ page {
height: 100% !important; height: 100% !important;
border-radius: 20rpx; border-radius: 20rpx;
} }
.showImg:last-child{
width: 40rpx !important;
height: 40rpx !important;
}
} }
.info4 { .info4 {
position: relative; position: relative;
@ -309,18 +314,18 @@ page {
// background-color: red; // background-color: red;
} }
.content { // .content {
display: flex; // display: flex;
flex-flow: column; // flex-flow: column;
justify-content: space-between; // justify-content: space-between;
background-color: #f8f8f8; // background-color: #f8f8f8;
border-radius: 30rpx; // border-radius: 30rpx;
padding: 21rpx; // padding: 21rpx;
border-radius: 20rpx; // border-radius: 20rpx;
width: 457rpx; // width: 457rpx;
height: 195rpx; // height: 195rpx;
} // }
.content_top{ .content_top{
height: 140rpx; height: 140rpx;

@ -17,7 +17,6 @@ import { InstrumentInfo } from "@/utils/Interface";
// 引入ecahrts图表 // 引入ecahrts图表
// import EchartsForm from '@/moduleIOT/pages/iotCarePlan/components/Echart_face' // import EchartsForm from '@/moduleIOT/pages/iotCarePlan/components/Echart_face'
import EchartsForm from '../../../moduleIOT/pages/iotCarePlan/components/Echart_face' import EchartsForm from '../../../moduleIOT/pages/iotCarePlan/components/Echart_face'
import Echarts1 from '../../../moduleIOT/pages/iotCarePlan/components/Echart'
/** 自定义组件 **/ /** 自定义组件 **/
@ -213,6 +212,8 @@ export default class Index extends Component<any, any> {
if (res.data.code === 200) { if (res.data.code === 200) {
this.state.clockStatistics.map((item) => { this.state.clockStatistics.map((item) => {
console.log(item,'iiiiiiii',id);
if (item.id === id) { if (item.id === id) {
item.detail = res.data.data; item.detail = res.data.data;
item.detail.map((obj) => { item.detail.map((obj) => {
@ -258,13 +259,27 @@ export default class Index extends Component<any, any> {
punchInInfo.clockImageList.splice(i, 1); punchInInfo.clockImageList.splice(i, 1);
this.setState({ punchInInfo }); this.setState({ punchInInfo });
} }
getRouteId() { async getRouteId() {
let clockStatistics =this.state.clockStatistics
const searchParams = new URLSearchParams(window.location.search); const searchParams = new URLSearchParams(window.location.search);
const id = searchParams.get("id"); const id = searchParams.get("id");
const recordId = searchParams.get("recordId"); const recordId = searchParams.get("recordId");
this.getStatistics(id); this.getStatistics(id);
// this.getRecord(id, recordId); let res1 = await InstrumentInfo.apiClock.getLatestClockRecord();
// console.log(recordId);
let obj:any ={}
obj.detail = res1.data.data;
obj.updateTime = getdates(res1.data.data.updateTime).replace(/-/g, ".");
let arr:any =[]
arr.push(obj)
this.setState({ clockStatistics:arr });
setTimeout(function() {
}, )
} }
getTime(time) { getTime(time) {
const hour = time.slice(0, 2); const hour = time.slice(0, 2);
@ -348,11 +363,10 @@ export default class Index extends Component<any, any> {
<View className='statistic_title'>{statistics.nursingTime}</View> <View className='statistic_title'>{statistics.nursingTime}</View>
<View className='statistic_desc'></View> <View className='statistic_desc'></View>
</View> </View>
{/* </block> */}
</View> </View>
<View className='main m-x-30'> <View className='main m-x-30'>
<View className='products_item' style='border: none'> <View className='products_item' style='border: none'>
<View className='products_middle flex'> <View className='products_middle flex'>
<View className='left'> <View className='left'>
<Image <Image
@ -385,7 +399,7 @@ export default class Index extends Component<any, any> {
<View className='main_title'>-{recordData.modeName}</View> <View className='main_title'>-{recordData.modeName}</View>
<View className='eacharts'> <View className='eacharts'>
<EchartsForm EchartsData={EchartsData}></EchartsForm> <EchartsForm EchartsData={EchartsData}></EchartsForm>
{/* <Echarts1></Echarts1> */}
</View> </View>
</View> </View>

@ -22,6 +22,7 @@ class MoistureTestReport extends Component<any, any> {
this.state = { this.state = {
name: "重新登录", name: "重新登录",
imgUrl: '', imgUrl: '',
reportShow: true,
reportData: { reportData: {
curDate: '', curDate: '',
shuifenLevel: { shuifenLevel: {
@ -58,10 +59,16 @@ class MoistureTestReport extends Component<any, any> {
onLoad(option) { onLoad(option) {
console.log(option); console.log(option);
let Bool = JSON.parse(option?.report)
if (!Bool) {
this.setState({
reportShow: Bool
})
}
let data = JSON.parse(option.data) let data = JSON.parse(option.data)
let { reportData } = this.state let { reportData } = this.state
reportData.curDate = option.date reportData.curDate = option.date
reportData.curDate = option.report
data.GearData.map(item => { data.GearData.map(item => {
if (item.name == '额头') { if (item.name == '额头') {
reportData.shuifenLevel.head = item.forehead reportData.shuifenLevel.head = item.forehead
@ -92,7 +99,7 @@ class MoistureTestReport extends Component<any, any> {
} }
render() { 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) => { const getStatusData = (level) => {
var bgCssData = { var bgCssData = {
@ -265,7 +272,10 @@ class MoistureTestReport extends Component<any, any> {
<View className='gear_recommend'> <View className='gear_recommend'>
<View className='gear_header flex aitems sb'> <View className='gear_header flex aitems sb'>
<View className='gear_title common_title'></View> <View className='gear_title common_title'></View>
{reportShow ? (
<View className='gear_btn'></View> <View className='gear_btn'></View>
) : null}
</View> </View>
<View className='gear_content flex aitems sb'> <View className='gear_content flex aitems sb'>
<View className='left_content'> <View className='left_content'>
@ -295,6 +305,7 @@ class MoistureTestReport extends Component<any, any> {
</View> </View>
</View> </View>
{reportShow ? (
<View className='go_clock_in flex sb aitems' > <View className='go_clock_in flex sb aitems' >
<View className='go_clock_btn' onClick={this.toNursing.bind(this)}></View> <View className='go_clock_btn' onClick={this.toNursing.bind(this)}></View>
<View className='jump_box flex aitems' onClick={this.toIndex}> <View className='jump_box flex aitems' onClick={this.toIndex}>
@ -302,6 +313,8 @@ class MoistureTestReport extends Component<any, any> {
<Image src='@/img/fr200/right.png' mode='aspectFill'></Image> <Image src='@/img/fr200/right.png' mode='aspectFill'></Image>
</View> </View>
</View> </View>
) : null}
</Block > </Block >
); );

@ -403,18 +403,13 @@ export default class Recording extends Component<any, any> {
gears.push(level); gears.push(level);
}); });
echartsData = { echartsData = {
gears, gears, eDate
eDate, }
}; setStorageSync('moistureEachtsData', JSON.stringify(echartsData))
setStorageSync("moistureEachtsData", JSON.stringify(echartsData)); let report =false
go(`/recoding/pages/moisture_test_report/moisture_test_report?data=${allData.nursingData}&date=${allData.createTime}&modeId=${allData.modeId}&id=${allData.instrumentId}&echartsData=${JSON.stringify(echartsData)}&report=${report }`);
go(
`/recoding/pages/moisture_test_report/moisture_test_report?data=${
allData.nursingData
}&date=${allData.createTime}&modeId=${allData.modeId}&id=${
allData.instrumentId
}&echartsData=${JSON.stringify(echartsData)}`
);
} }
// 打开其他类型 // 打开其他类型
@ -738,7 +733,7 @@ export default class Recording extends Component<any, any> {
{clockStatistics.map((item) => ( {clockStatistics.map((item) => (
<View className="month_statistics" key={item.id}> <View className="month_statistics" key={item.id}>
<View className="flex aitems sb"> <View className="flex aitems sb">
<View className="time"> <View className="month_item_date">
{item.year}{item.month} {item.year}{item.month}
</View> </View>
<View <View

Loading…
Cancel
Save