Commit e0790dc5 by zhaochengxiang

授权和发布

parent b68839fe
...@@ -3,7 +3,7 @@ import { Modal, Form, Input } from 'antd'; ...@@ -3,7 +3,7 @@ import { Modal, Form, Input } from 'antd';
import LocalStorage from 'local-storage'; import LocalStorage from 'local-storage';
import { dispatchLatest } from '../../../../model'; import { dispatchLatest } from '../../../../model';
import { showNotifaction } from '../../../../util'; import { showNotifaction, showMessage } from '../../../../util';
const FC = (props) => { const FC = (props) => {
const { visible, onCancel, services } = props; const { visible, onCancel, services } = props;
...@@ -37,13 +37,10 @@ const FC = (props) => { ...@@ -37,13 +37,10 @@ const FC = (props) => {
}, },
data: services data: services
}, },
callback: data => { callback: () => {
reset(); reset();
if ((data||'') !== '') { showMessage('success', '授权成功!');
showNotifaction('授权提示', data, 5);
}
onCancel && onCancel(true); onCancel && onCancel(true);
}, },
error: () => { error: () => {
......
...@@ -3,7 +3,7 @@ import { Modal, Form, Input } from 'antd'; ...@@ -3,7 +3,7 @@ import { Modal, Form, Input } from 'antd';
import LocalStorage from 'local-storage'; import LocalStorage from 'local-storage';
import { dispatchLatest } from '../../../../model'; import { dispatchLatest } from '../../../../model';
import { showNotifaction } from '../../../../util'; import { showMessage, showNotifaction } from '../../../../util';
const FC = (props) => { const FC = (props) => {
const { visible, onCancel, ids } = props; const { visible, onCancel, ids } = props;
...@@ -37,13 +37,10 @@ const FC = (props) => { ...@@ -37,13 +37,10 @@ const FC = (props) => {
reason: values?.desc reason: values?.desc
} }
}, },
callback: data => { callback: () => {
reset(); reset();
if ((data||'') !== '') { showMessage('success', '发布成功!')
showNotifaction('发布提示', data, 5);
}
onCancel && onCancel(true); onCancel && onCancel(true);
}, },
error: () => { error: () => {
......
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