import React, {Component} from "react"; import '../css/signincdi.css'; import {Progress, message} from 'antd'; import QRCode from 'qrcode.react'; import axios from 'axios'; function clearSlct() { if ("getSelection" in window) { window.getSelection().removeAllRanges(); } else { document.selection.empty(); } ; } function jsCopy(s) { clearSlct(); const copyEle = document.getElementById(s); copyEle.select(); const copyStatus = document.execCommand("Copy"); // 对成功与否定进行提示 copyStatuss(copyStatus) } function copyStatuss(copyStatus) { if (copyStatus) { message.success('复制成功'); } else { message.error('复制失败'); } } //条目 class Detailss extends Component { //条目组件 constructor(props) { super(props); this.state = {} } componentDidMount() { } componentDidUpdate = (prevProps) => { } render() { const isAdmin = this.props.isAdmin(); let item = this.props.headdata; let defaultActiveKey = this.props.defaultActiveKey; let jdt; try { jdt = item.normal_count / item.all_count * 100; } catch (e) { jdt = 100; } return (

this.props.qiandaoxiangq(false)}> this.props.qiandaoxiangq(false)}>

{item && item.name}

签到人数:
已签到 {item && item.normal_count ? item.normal_count : 0} / 应签到 {item && item.all_count ? item.all_count : 0}
签到发起人:
{item && item.author.user_name}
签到方式:
{item && item.mode ? item.mode === "QRCODE" ? "二维码签到" : item.mode === "NUMBER" ? "数字签到" : item.mode === "QUICK" ? "快捷签到" : "" : ""}
开始结束时间:
{item && item.attendance_date} {item && item.start_time}-{item && item.end_time}
{ defaultActiveKey === "1" ?
{ item && item.mode === "NUMBER" ?

{ jsCopy("file_path" + 1) }}> 复制签到码

{item&&item.code}

签到码:

: item && item.mode === "QRCODE" ?
扫码签到
: "" }
: "" }
) } } export default Detailss;