修改bug

master
qsj 2 years ago
parent 7e5b76ff5e
commit 8922944ccc

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

@ -212,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) => {
@ -257,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);

@ -272,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'>

@ -322,7 +322,7 @@ export default class Recording extends Component<any, any> {
modeName: res2.data.data.modeName, modeName: res2.data.data.modeName,
data: nursingData, data: nursingData,
}; };
let report = false; let report = true;
go( go(
"/recoding/pages/face_report_one/face_report_one?id=" + "/recoding/pages/face_report_one/face_report_one?id=" +
@ -336,7 +336,7 @@ export default class Recording extends Component<any, any> {
// 打开第二种类型 // 打开第二种类型
two = async (item) => { two = async (item) => {
console.log("打开第二种类型", item); console.log("打开第二种类型", item);
let report = false; let report = true;
go( go(
"/recoding/pages/face_report/face_report?id=" + "/recoding/pages/face_report/face_report?id=" +
item.id + item.id +
@ -724,7 +724,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