From a757a8e74e135838f9a2a95b8f5c726c14938942 Mon Sep 17 00:00:00 2001 From: kklldog Date: Tue, 5 Apr 2022 17:40:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=A0=E9=99=A4=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react-ui-antd/src/pages/Services/index.less | 3 +++ .../react-ui-antd/src/pages/Services/index.tsx | 16 +++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/AgileConfig.Server.UI/react-ui-antd/src/pages/Services/index.less b/AgileConfig.Server.UI/react-ui-antd/src/pages/Services/index.less index e69de29b..569102b1 100644 --- a/AgileConfig.Server.UI/react-ui-antd/src/pages/Services/index.less +++ b/AgileConfig.Server.UI/react-ui-antd/src/pages/Services/index.less @@ -0,0 +1,3 @@ +.linkDanger { + color: #ff4d4f; +} \ No newline at end of file diff --git a/AgileConfig.Server.UI/react-ui-antd/src/pages/Services/index.tsx b/AgileConfig.Server.UI/react-ui-antd/src/pages/Services/index.tsx index 458d22ae..5d33fb8f 100644 --- a/AgileConfig.Server.UI/react-ui-antd/src/pages/Services/index.tsx +++ b/AgileConfig.Server.UI/react-ui-antd/src/pages/Services/index.tsx @@ -7,6 +7,7 @@ import React, { useRef, useState } from 'react'; import { getIntl, getLocale } from 'umi'; import { ServiceItem } from './data'; import { addService, queryService } from './service'; +import styles from './index.less'; const handleAdd = async (fields: ServiceItem) => { const intl = getIntl(getLocale()); @@ -99,15 +100,24 @@ const services: React.FC = () => { dataIndex: 'alive', valueEnum: { 0: { - text: '离线', + text: '异常', status: 'Default' }, 1: { - text: '在线', - status: 'Processing' + text: '健康', + status: 'Success' } }, width: 120 + }, + { + title: '操作', + valueType: 'option', + render: (text, record, _, action) => [ + + 删除 + + ] } ]; return (