加Popconfirm

This commit is contained in:
unknown
2023-02-09 10:29:23 +08:00
parent efa9566c50
commit 4633c45a89
5 changed files with 64 additions and 10 deletions

View File

@ -1,6 +1,6 @@
import React, { PureComponent } from 'react';
import { history } from 'umi';
import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Empty, message } from 'antd';
import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Empty, message,Popconfirm } from 'antd';
// import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import { connect } from 'dva';
import './index.less';
@ -188,7 +188,18 @@ class manager extends PureComponent {
const { datevalue, messId, messageDetail, detailId, noticeDetail, questData, questVisible, mainDetail, } = this.state; //智慧客服state
return (
<>
<a className="talk" onClick={() => this.initChatUI()}>系统操作咨询<span>8:30</span><span>|</span><span>12:30</span><span>13:00</span><span>|</span><span>17:00</span><img src={talkPng} /></a>
<Popconfirm
title={()=>{
return <><p>您好系统操作咨询仅可以解决您在平台的操作问题如想了解发票保证金及项目相关问题请点击具体项目的咨询窗口进行咨询</p>
<p>是否还要继续咨询系统操作问题</p></>
}}
onConfirm={()=>this.initChatUI()}
okText="是"
cancelText="否"
>
<a className="talk">系统操作咨询<span>8:30</span><span>|</span><span>12:30</span><span>13:00</span><span>|</span><span>17:00</span><img src={talkPng} /></a>
</Popconfirm>
{/* <a className="talk" onClick={() => this.initChatUI()}>系统操作咨询︵<span>8:30</span><span>|</span><span>12:30</span><span>13:00</span><span>|</span><span>17:00</span>︶<img src={talkPng} /></a> */}
<div className="dashboard" style={{ height: innerHeight - 70, overflow: "hidden" }}>
<Row className="topt">
<Col span={8}><Card title="我的消息" bordered={false} className="cardtre" style={{ marginRight: "10px" }} extra={<div className="moret" onClick={() => history.push('/SystemMessage/message')}>更多<RightOutlined /></div>}>