Commit 38295bfd authored by cellee's avatar cellee

去除所有成功提示

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent 4a459f3b
...@@ -86,15 +86,15 @@ export default { ...@@ -86,15 +86,15 @@ export default {
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^': '' }, pathRewrite: { '^': '' },
}, },
'/tos/': {
target: 'http://47.74.233.180:8651',
changeOrigin: true,
pathRewrite: { '^': '' },
},
// '/tos/': { // '/tos/': {
// target: 'http://192.168.1.28:8651', // target: 'http://47.74.233.180:8651',
// changeOrigin: true, // changeOrigin: true,
// pathRewrite: { '^': '' }, // pathRewrite: { '^': '' },
// }, // },
'/tos/': {
target: 'http://192.168.1.28:8651',
changeOrigin: true,
pathRewrite: { '^': '' },
},
}, },
}; };
...@@ -73,7 +73,7 @@ const Account = (props: any) => { ...@@ -73,7 +73,7 @@ const Account = (props: any) => {
if (SubResult != null) { if (SubResult != null) {
if (SubResult.statr == 0 && SubResult.desc == 0) { if (SubResult.statr == 0 && SubResult.desc == 0) {
// 保存成功, 清掉原来数据 并且跳转 // 保存成功, 清掉原来数据 并且跳转
message.success('Submitted Successfully !'); // message.success('Submitted Successfully !');
dispatch({ type: module + '/ReData' }); dispatch({ type: module + '/ReData' });
dispatch({ type: module + '/AccountClear' }); dispatch({ type: module + '/AccountClear' });
history.go(-1); history.go(-1);
...@@ -390,7 +390,7 @@ const Account = (props: any) => { ...@@ -390,7 +390,7 @@ const Account = (props: any) => {
// 监听改变状态提交结果 // 监听改变状态提交结果
useEffect(() => { useEffect(() => {
if (Result != null) { if (Result != null) {
message.success('Successful Operation !'); // message.success('Successful Operation !');
setOver(false); setOver(false);
// 清除结果 // 清除结果
dispatch({ type: 'Account/ResultClear' }); dispatch({ type: 'Account/ResultClear' });
......
...@@ -83,7 +83,7 @@ const Account = (props: any) => { ...@@ -83,7 +83,7 @@ const Account = (props: any) => {
if (SubResult != null) { if (SubResult != null) {
if (SubResult.statr == 0 && SubResult.desc == 0) { if (SubResult.statr == 0 && SubResult.desc == 0) {
// 保存成功, 清掉原来数据 并且跳转 // 保存成功, 清掉原来数据 并且跳转
message.success('Submitted Successfully !'); // message.success('Submitted Successfully !');
dispatch({ type: module + '/ReData' }); dispatch({ type: module + '/ReData' });
dispatch({ type: module + '/AccountClear' }); dispatch({ type: module + '/AccountClear' });
setLoading(true); setLoading(true);
......
...@@ -110,7 +110,7 @@ const Adds = (props: any) => { ...@@ -110,7 +110,7 @@ const Adds = (props: any) => {
dispatch({ type: 'Init/addCommunityget', playload: { Result: new Array(Result.data) } }); dispatch({ type: 'Init/addCommunityget', playload: { Result: new Array(Result.data) } });
} }
// 提示跳转 // 提示跳转
message.success(`Information saved successfully!`); // message.success(`Information saved successfully!`);
history.push('/CommunityManagement/CellList'); history.push('/CommunityManagement/CellList');
} }
}, [Result, Data]); }, [Result, Data]);
...@@ -223,7 +223,7 @@ const Adds = (props: any) => { ...@@ -223,7 +223,7 @@ const Adds = (props: any) => {
// 上传提示 // 上传提示
function uploadMsg(file: any) { function uploadMsg(file: any) {
if (file.status === 'done') { if (file.status === 'done') {
message.success(`${file.name} File Uploaded Successfully`); // message.success(`${file.name} File Uploaded Successfully`);
} else if (file.status === 'error') { } else if (file.status === 'error') {
message.error(`${file.name} File Upload Failed.`); message.error(`${file.name} File Upload Failed.`);
} }
......
...@@ -191,7 +191,7 @@ const Adds = (props: any) => { ...@@ -191,7 +191,7 @@ const Adds = (props: any) => {
// 上传提示 // 上传提示
function uploadMsg(file: any) { function uploadMsg(file: any) {
if (file.status === 'done') { if (file.status === 'done') {
message.success(`${file.name} File Uploaded Successfully`); // message.success(`${file.name} File Uploaded Successfully`);
} else if (file.status === 'error') { } else if (file.status === 'error') {
message.error(`${file.name} File Upload Failed.`); message.error(`${file.name} File Upload Failed.`);
} }
......
...@@ -94,7 +94,7 @@ const Add = (props: any) => { ...@@ -94,7 +94,7 @@ const Add = (props: any) => {
}; };
// 把内容存进去 // 把内容存进去
SA(DetailPage(page), module, dispatch); SA(DetailPage(page), module, dispatch);
message.success('Released Successfully'); // message.success('Released Successfully');
history.push('/CommunityManagement/CommunityAnnouncement'); history.push('/CommunityManagement/CommunityAnnouncement');
} }
}, [Result]); }, [Result]);
......
...@@ -141,7 +141,7 @@ const ContractContent = (props: any) => { ...@@ -141,7 +141,7 @@ const ContractContent = (props: any) => {
}); });
if (file.status == 'done') { if (file.status == 'done') {
message.success(file.name, 3); // message.success(file.name, 3);
} }
}, },
}; };
......
/*
* @Author: your name
* @Date: 2021-01-25 11:17:37
* @LastEditTime: 2021-02-06 11:06:32
* @LastEditors: your name
* @Description: In User Settings Edit
* @FilePath: \tostumi\src\pages\UserManagement\LIFEUserManagement\ResultPageFailed.tsx
*/
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Result, Button, message } from 'antd'; import { Result, Button, message } from 'antd';
...@@ -21,7 +29,7 @@ const ResultPageFailed = () => { ...@@ -21,7 +29,7 @@ const ResultPageFailed = () => {
if (flag) { if (flag) {
setFlag(false); setFlag(false);
} else { } else {
message.success('The file has been downloaded successfully'); // message.success('The file has been downloaded successfully');
} }
}; };
......
...@@ -56,7 +56,7 @@ const AccoutingContent = (props: { ...@@ -56,7 +56,7 @@ const AccoutingContent = (props: {
dispatch({ type: 'ServiceProvider/ResultClear' }); dispatch({ type: 'ServiceProvider/ResultClear' });
setLoading(false); setLoading(false);
if (Result) { if (Result) {
message.success('Logout successful!'); // message.success('Logout successful!');
history.goBack(); history.goBack();
} else { } else {
message.error('Logout failed. Please try again!'); message.error('Logout failed. Please try again!');
...@@ -73,7 +73,7 @@ const AccoutingContent = (props: { ...@@ -73,7 +73,7 @@ const AccoutingContent = (props: {
const copyStatus = document.execCommand('Copy'); // 执行copy操作 const copyStatus = document.execCommand('Copy'); // 执行copy操作
// 对成功与否定进行提示 // 对成功与否定进行提示
if (copyStatus) { if (copyStatus) {
message.success('URL copy successfully!'); // message.success('URL copy successfully!');
} else { } else {
message.error('Copy Failure,Please copy manually'); message.error('Copy Failure,Please copy manually');
} }
......
...@@ -106,7 +106,7 @@ const Detail = (props: any) => { ...@@ -106,7 +106,7 @@ const Detail = (props: any) => {
dispatch({ type: 'ServiceProvider/ResultClear' }); dispatch({ type: 'ServiceProvider/ResultClear' });
setLoding(false); setLoding(false);
if (Result) { if (Result) {
message.success('Logout successful!'); // message.success('Logout successful!');
history.goBack(); history.goBack();
} else { } else {
message.error('Logout failed. Please try again!', 3); message.error('Logout failed. Please try again!', 3);
......
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