|
@@ -1,5 +1,5 @@
|
1
|
1
|
import React, { useState, useRef } from 'react';
|
2
|
|
-import { Button, message, Table, Card } from 'antd';
|
|
2
|
+import { Button, message, Table, Popconfirm } from 'antd';
|
3
|
3
|
import router from 'umi/router';
|
4
|
4
|
import QueryTable from '@/components/QueryTable';
|
5
|
5
|
import AuthButton from '@/components/AuthButton';
|
|
@@ -154,9 +154,9 @@ export default function ChannelList(props) {
|
154
|
154
|
align: 'center',
|
155
|
155
|
render: (text, record) => (
|
156
|
156
|
<AuthButton name="channel.delete" noRight={null}>
|
157
|
|
- <Button type="link" onClick={() => onDelete(record)}>
|
158
|
|
- 删除
|
159
|
|
- </Button>
|
|
157
|
+ <Popconfirm title="确定要进行删除操作 ?" onConfirm={() => onDelete(record)}>
|
|
158
|
+ <Button type="link">删除</Button>
|
|
159
|
+ </Popconfirm>
|
160
|
160
|
</AuthButton>
|
161
|
161
|
),
|
162
|
162
|
},
|