Commit 318b6f4c by zhaochengxiang

服务下线改成停用

parent 4815ba90
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
width: 100%; width: 100%;
height: 44px; height: 44px;
padding: 0 15px; padding: 0 15px;
background-color: #464d6e; background-color: #c7000b;
align-items: center; align-items: center;
position: fixed; position: fixed;
justify-content: space-between; justify-content: space-between;
......
...@@ -775,7 +775,7 @@ const ModelTable = (props) => { ...@@ -775,7 +775,7 @@ const ModelTable = (props) => {
const offlineService = (record) => { const offlineService = (record) => {
modal.confirm({ modal.confirm({
title: '提示!', title: '提示!',
content: '您确定要下线该服务吗?', content: '您确定要停用该服务吗?',
onOk: () => { onOk: () => {
dispatch({ dispatch({
type: 'pds.offlineDataService', type: 'pds.offlineDataService',
...@@ -785,7 +785,7 @@ const ModelTable = (props) => { ...@@ -785,7 +785,7 @@ const ModelTable = (props) => {
} }
}, },
callback: () => { callback: () => {
showMessage('success', '下线成功'); showMessage('success', '停用成功');
onChange && onChange(); onChange && onChange();
} }
}) })
......
...@@ -592,7 +592,7 @@ const ModelTree = (props) => { ...@@ -592,7 +592,7 @@ const ModelTree = (props) => {
treeData={treeData} treeData={treeData}
selectedKeys={[item?item.key:'']} selectedKeys={[item?item.key:'']}
titleRender={(nodeData) => { titleRender={(nodeData) => {
return <span title={nodeData?.remark||''} className='cursor-pointer-contextmenu'>{(nodeData.status===-1)?`${nodeData?.name}_已下线`:nodeData?.name||''}</span>; return <span title={nodeData?.remark||''} className='cursor-pointer-contextmenu'>{(nodeData.status===-1)?`${nodeData?.name}_已停用`:nodeData?.name||''}</span>;
}} }}
onRightClick={({event, node}) => { onRightClick={({event, node}) => {
if (viewSelectedKey==='dir') { if (viewSelectedKey==='dir') {
......
...@@ -40,7 +40,7 @@ const FC = (props) => { ...@@ -40,7 +40,7 @@ const FC = (props) => {
callback: () => { callback: () => {
reset(); reset();
showMessage('success', '下线成功') showMessage('success', '停用成功')
onCancel && onCancel(true); onCancel && onCancel(true);
}, },
error: () => { error: () => {
...@@ -62,7 +62,7 @@ const FC = (props) => { ...@@ -62,7 +62,7 @@ const FC = (props) => {
<Modal <Modal
forceRender forceRender
visible={visible} visible={visible}
title='服务下线' title='服务停用'
width={520} width={520}
confirmLoading={confirmLoading} confirmLoading={confirmLoading}
onCancel={() => { onCancel={() => {
...@@ -76,9 +76,9 @@ const FC = (props) => { ...@@ -76,9 +76,9 @@ const FC = (props) => {
form={form} form={form}
> >
<Form.Item <Form.Item
label="下线原因" label="停用原因"
name="desc" name="desc"
// rules={[{ required: true, message: '请填写下线原因' }]} // rules={[{ required: true, message: '请填写停用原因' }]}
> >
<Input.TextArea rows={6} /> <Input.TextArea rows={6} />
</Form.Item> </Form.Item>
......
...@@ -727,7 +727,7 @@ class Model extends React.Component { ...@@ -727,7 +727,7 @@ class Model extends React.Component {
{ {
(getDataModelerRole(app?.user)!==DataModelerRoleReader) && isOnlyEnding && (getDataModelerRole(app?.user)!==DataModelerRoleReader) && isOnlyEnding &&
<Tooltip title={(selectModelerIds||[]).length===0?'请先选择服务':''}> <Tooltip title={(selectModelerIds||[]).length===0?'请先选择服务':''}>
<Button onClick={this.onOfflineBtnClick} disabled={(selectModelerIds||[]).length===0}>下线</Button> <Button onClick={this.onOfflineBtnClick} disabled={(selectModelerIds||[]).length===0}>停用</Button>
</Tooltip> </Tooltip>
} }
</Space> </Space>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment