| | |
| | | hasProfile = true |
| | | } else if (card.funcType === 'megvii') { |
| | | hasProfile = true |
| | | } else if (card.payMode === 'system') { |
| | | hasProfile = true |
| | | } |
| | | |
| | | let btnElement = null |
| | | let _style = resetStyle(card.style) |
| | | let _class = '' |
| | | let show = card.show |
| | | if (type === 'datacard') { |
| | | if (type === 'datacard' || type === 'dualdatacard') { |
| | | _style = null |
| | | _class = 'swiper swiper-' + card.color |
| | | show = 'button' |
| | |
| | | ) |
| | | } |
| | | |
| | | let updateTime = null |
| | | if (card.updateTime && card.updateTime.indexOf(window.GLOB.curDate) > -1) { |
| | | updateTime = card.updateTime.substr(11) |
| | | } |
| | | |
| | | return ( |
| | | <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={ |
| | | <div className="mk-popover-control"> |
| | | <EditOutlined className="edit" onClick={() => editCard(id)} /> |
| | | <CopyOutlined className="copy" onClick={() => copyCard(id)} /> |
| | | <CloseOutlined className="close" onClick={() => delCard(id)} /> |
| | | {type !== 'datacard' && type !== 'basetable' ? <FontColorsOutlined className="style" title="调整样式" onClick={() => changeStyle(id)}/> : ''} |
| | | {!card.$fixed ? <CopyOutlined className="copy" onClick={() => copyCard(id)} /> : null} |
| | | {!card.$fixed ? <CloseOutlined className="close" onClick={() => delCard(id)} /> : null} |
| | | {type !== 'datacard' && type !== 'basetable' && !card.$fixed ? <FontColorsOutlined className="style" title="调整样式" onClick={() => changeStyle(id)}/> : ''} |
| | | {hasProfile ? <ProfileOutlined className="profile" title="验证" onClick={() => profileCard(id)} /> : null} |
| | | {updateTime} |
| | | </div> |
| | | } trigger="hover"> |
| | | <div className="page-card" style={{ opacity: opacity}}> |