|
@@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef } from 'react'
|
|
|
import ShowTitleMenu from './components/ShowTitleMenu'
|
|
|
import { useRequest } from 'umi'
|
|
|
import { Plus, Delete } from '@icon-park/react'
|
|
|
-import { Table, Tag, Popconfirm, Popover, Button, Alert, message } from 'antd'
|
|
|
+import { Table, Tag, Popconfirm, Button, Alert, message } from 'antd'
|
|
|
import {
|
|
|
fetchAttendanceList,
|
|
|
unlinkAttendance,
|
|
@@ -146,18 +146,15 @@ const Attendance: React.FC = () => {
|
|
|
dataIndex: 'opreate',
|
|
|
width: '10%',
|
|
|
render: (_, record) => (
|
|
|
- // console.log(record.id)
|
|
|
- <Popover>
|
|
|
- <Popconfirm
|
|
|
- title="确认删除吗?"
|
|
|
- okText="确认"
|
|
|
- cancelText="取消"
|
|
|
- onConfirm={() => tryDeleteAttendance({ id: record.id })}>
|
|
|
- <span className="hover:text-hex-e7026e cursor-pointer">
|
|
|
- <Delete fill="#fd3995" />
|
|
|
- </span>
|
|
|
- </Popconfirm>
|
|
|
- </Popover>
|
|
|
+ <Popconfirm
|
|
|
+ title="确认删除吗?"
|
|
|
+ okText="确认"
|
|
|
+ cancelText="取消"
|
|
|
+ onConfirm={() => tryDeleteAttendance({ id: record.id })}>
|
|
|
+ <span className="hover:text-hex-e7026e cursor-pointer">
|
|
|
+ <Delete fill="#fd3995" />
|
|
|
+ </span>
|
|
|
+ </Popconfirm>
|
|
|
)
|
|
|
}
|
|
|
]
|