回看报告不显示打卡

master
qsj 2 years ago
parent b846139769
commit 1d1cb0210b

@ -21,6 +21,7 @@ export default class Index extends Component<any, any> {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {
reportShow:true,
name: "template模板页", name: "template模板页",
statistics: {}, statistics: {},
recordList: [], recordList: [],
@ -250,7 +251,15 @@ delImg(i) {
return minute + "分" + second + "秒"; return minute + "分" + second + "秒";
} }
} }
async onLoad() { async onLoad(options) {
let Bool = JSON.parse(options?.report)
console.log('传过来的东西',options,Bool);
if(!Bool ){
this.setState({
reportShow:Bool
})
}
this.getRouteId(); this.getRouteId();
this.getClockStatistics() this.getClockStatistics()
} }
@ -266,7 +275,7 @@ delImg(i) {
}; };
render() { render() {
let { name, statistics, recordList, recordData, show,clockStatistics,punchInInfo,monthTime } = this.state; let { name, statistics, recordList, recordData, show,clockStatistics,punchInInfo,monthTime,reportShow } = this.state;
return ( return (
<Block> <Block>
<Navbar isBack titleSlot="护理报告"></Navbar> <Navbar isBack titleSlot="护理报告"></Navbar>
@ -385,17 +394,18 @@ delImg(i) {
</View> </View>
))} ))}
</View> </View>
{reportShow ? (
<View className="footer flex aitems"> <View className="footer flex aitems">
<View className="btn" onClick={this.setShow.bind(this, true)}></View> <View className="btn" onClick={this.setShow.bind(this, true)}></View>
<View className="text flex aitems"> <View className="text flex aitems">
<View onClick={this.GoIndex}></View> <View onClick={this.GoIndex}></View>
<Image <Image
src={require("../../img/right.png")} src={require("../../img/right.png")}
mode="aspectFill" mode="aspectFill"
></Image> ></Image>
</View> </View>
</View> </View>
): null}
<Popup show={show} onClose={() => this.setState({ show: false })}> <Popup show={show} onClose={() => this.setState({ show: false })}>
<View className="popBox"> <View className="popBox">
<Image <Image

@ -293,7 +293,8 @@ export default class Recording extends Component<any, any> {
}; };
// 跳转到护理报告 // 跳转到护理报告
toReport(id, recordId) { toReport(id, recordId) {
go("/pages/face_report/face_report?id=" + id + "&recordId=" + recordId); let report =false
go("/pages/face_report/face_report?id=" + id + "&recordId=" + recordId+ "&report=" + report );
} }
// 上传图片 // 上传图片
handleChooseImage() { handleChooseImage() {

Loading…
Cancel
Save