|
|
|
@ -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>
|
|
|
|
|