|
@ -4,7 +4,7 @@ import moment from 'moment'; |
|
|
import { RouteRequest } from '@peace/utils'; |
|
|
import { RouteRequest } from '@peace/utils'; |
|
|
import { RouteTable } from '$utils' |
|
|
import { RouteTable } from '$utils' |
|
|
|
|
|
|
|
|
import { Tabs, Form, Input, Space, Button, Table, Popconfirm } from 'antd'; |
|
|
import { Tabs, Form, Input, Space, Button, Table, Popconfirm, message } from 'antd'; |
|
|
const { Search } = Input; |
|
|
const { Search } = Input; |
|
|
|
|
|
|
|
|
import EditModal from '../components/editModal'; |
|
|
import EditModal from '../components/editModal'; |
|
@ -65,19 +65,22 @@ function ServiceManagement ({ loading, clientHeight, actions, dispatch, }) { |
|
|
}}>编辑</a> |
|
|
}}>编辑</a> |
|
|
|
|
|
|
|
|
{/* {record?.enabled ? */} |
|
|
{/* {record?.enabled ? */} |
|
|
<Popconfirm |
|
|
{record?.resourceConsumptions?.length > 0 ? <a onClick={() => { |
|
|
title="是否确认删除该业务规则?" |
|
|
message.warning('已有关联数据,无法删除') |
|
|
onConfirm={() => { |
|
|
}}>删除</a> |
|
|
dispatch(dataService.delBusinessRules(record.id)).then(res => { |
|
|
: <Popconfirm |
|
|
if (res.success) { |
|
|
title="是否确认删除该服务?" |
|
|
setQuery({ limit: 10, page: 0 }); |
|
|
onConfirm={() => { |
|
|
resourceData({ limit: 10, page: 0, keyword }) |
|
|
dispatch(dataService.delServiceManagement(record.id)).then(res => { |
|
|
} |
|
|
if (res.success) { |
|
|
}) |
|
|
setQuery({ limit: 10, page: 0 }); |
|
|
}} |
|
|
resourceData({ limit: 10, page: 0, keyword }) |
|
|
> |
|
|
} |
|
|
<a >删除</a> |
|
|
}) |
|
|
</Popconfirm> |
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
<a >删除</a> |
|
|
|
|
|
</Popconfirm>} |
|
|
|
|
|
|
|
|
{/* // } */} |
|
|
{/* // } */} |
|
|
{record?.enabled ? |
|
|
{record?.enabled ? |
|
|