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,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
     },

+ 6
- 6
src/pages/channel/independentList/index.jsx ファイルの表示

@@ -523,9 +523,9 @@ function body(props) {
523 523
                 </Button>
524 524
               </AuthButton>
525 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 529
               </AuthButton>
530 530
             </>
531 531
           }
@@ -583,9 +583,9 @@ function body(props) {
583 583
         </Form.Item>
584 584
         <Form.Item style={{ position: 'absolute', right: '38px' }}>
585 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 589
           {/* </AuthButton> */}
590 590
           <Button style={{ marginLeft: 8 }} onClick={handleReset}>
591 591
             重置