zlisen 3 年前
父节点
当前提交
589ef45cb6
共有 2 个文件被更改,包括 10 次插入10 次删除
  1. 4
    4
      src/pages/channel/Channel/List/index.jsx
  2. 6
    6
      src/pages/channel/independentList/index.jsx

+ 4
- 4
src/pages/channel/Channel/List/index.jsx 查看文件

1
 import React, { useState, useRef } from 'react';
1
 import React, { useState, useRef } from 'react';
2
-import { Button, message, Table, Card } from 'antd';
2
+import { Button, message, Table, Popconfirm } from 'antd';
3
 import router from 'umi/router';
3
 import router from 'umi/router';
4
 import QueryTable from '@/components/QueryTable';
4
 import QueryTable from '@/components/QueryTable';
5
 import AuthButton from '@/components/AuthButton';
5
 import AuthButton from '@/components/AuthButton';
154
       align: 'center',
154
       align: 'center',
155
       render: (text, record) => (
155
       render: (text, record) => (
156
         <AuthButton name="channel.delete" noRight={null}>
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
         </AuthButton>
160
         </AuthButton>
161
       ),
161
       ),
162
     },
162
     },

+ 6
- 6
src/pages/channel/independentList/index.jsx 查看文件

523
                 </Button>
523
                 </Button>
524
               </AuthButton>
524
               </AuthButton>
525
               <AuthButton name="channel.disable" noRight={null}>
525
               <AuthButton name="channel.disable" noRight={null}>
526
-                <Button type="link" onClick={() => onDelete(record)}>
527
-                  删除
528
-                </Button>
526
+                <Popconfirm title="确定要进行删除操作 ?" onConfirm={() => onDelete(record)}>
527
+                  <Button type="link">删除</Button>
528
+                </Popconfirm>
529
               </AuthButton>
529
               </AuthButton>
530
             </>
530
             </>
531
           }
531
           }
583
         </Form.Item>
583
         </Form.Item>
584
         <Form.Item style={{ position: 'absolute', right: '38px' }}>
584
         <Form.Item style={{ position: 'absolute', right: '38px' }}>
585
           {/* <AuthButton name="admin.major.search" noRight={null}> */}
585
           {/* <AuthButton name="admin.major.search" noRight={null}> */}
586
-            <Button type="primary" htmlType="submit">
587
-              搜索
588
-            </Button>
586
+          <Button type="primary" htmlType="submit">
587
+            搜索
588
+          </Button>
589
           {/* </AuthButton> */}
589
           {/* </AuthButton> */}
590
           <Button style={{ marginLeft: 8 }} onClick={handleReset}>
590
           <Button style={{ marginLeft: 8 }} onClick={handleReset}>
591
             重置
591
             重置