修改bug

master
qsj 2 years ago
parent 7e5b76ff5e
commit 8922944ccc

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

@ -212,6 +212,8 @@ export default class Index extends Component<any, any> {
if (res.data.code === 200) {
this.state.clockStatistics.map((item) => {
console.log(item,'iiiiiiii',id);
if (item.id === id) {
item.detail = res.data.data;
item.detail.map((obj) => {
@ -257,13 +259,27 @@ export default class Index extends Component<any, any> {
punchInInfo.clockImageList.splice(i, 1);
this.setState({ punchInInfo });
}
getRouteId() {
async getRouteId() {
let clockStatistics =this.state.clockStatistics
const searchParams = new URLSearchParams(window.location.search);
const id = searchParams.get("id");
const recordId = searchParams.get("recordId");
this.getStatistics(id);
// this.getRecord(id, recordId);
// console.log(recordId);
let res1 = await InstrumentInfo.apiClock.getLatestClockRecord();
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) {
const hour = time.slice(0, 2);

@ -22,7 +22,7 @@ class MoistureTestReport extends Component<any, any> {
this.state = {
name: "重新登录",
imgUrl: '',
reportShow:true,
reportShow: true,
reportData: {
curDate: '',
shuifenLevel: {
@ -60,7 +60,7 @@ class MoistureTestReport extends Component<any, any> {
onLoad(option) {
console.log(option);
let Bool = JSON.parse(option?.report)
if(!Bool){
if (!Bool) {
this.setState({
reportShow: Bool
})
@ -99,7 +99,7 @@ class MoistureTestReport extends Component<any, any> {
}
render() {
let { name, imgUrl, reportData, reportData1, reportShow,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 = {
@ -272,7 +272,10 @@ class MoistureTestReport extends Component<any, any> {
<View className='gear_recommend'>
<View className='gear_header flex aitems sb'>
<View className='gear_title common_title'></View>
<View className='gear_btn'></View>
{reportShow ? (
<View className='gear_btn'></View>
) : null}
</View>
<View className='gear_content flex aitems sb'>
<View className='left_content'>
@ -303,15 +306,15 @@ class MoistureTestReport extends Component<any, any> {
</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>
<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 >
);

@ -322,7 +322,7 @@ export default class Recording extends Component<any, any> {
modeName: res2.data.data.modeName,
data: nursingData,
};
let report = false;
let report = true;
go(
"/recoding/pages/face_report_one/face_report_one?id=" +
@ -336,7 +336,7 @@ export default class Recording extends Component<any, any> {
// 打开第二种类型
two = async (item) => {
console.log("打开第二种类型", item);
let report = false;
let report = true;
go(
"/recoding/pages/face_report/face_report?id=" +
item.id +
@ -724,7 +724,7 @@ export default class Recording extends Component<any, any> {
{clockStatistics.map((item) => (
<View className="month_statistics" key={item.id}>
<View className="flex aitems sb">
<View className="time">
<View className="month_item_date">
{item.year}{item.month}
</View>
<View

Loading…
Cancel
Save