Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maple
TOSTUMI
Commits
38295bfd
Commit
38295bfd
authored
Feb 06, 2021
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除所有成功提示
Signed-off-by:
cellee
<
893264950@qq.com
>
parent
4a459f3b
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
26 additions
and
18 deletions
+26
-18
proxy.ts
config/proxy.ts
+6
-6
AccountDetail.tsx
src/pages/AccountManagement/account/AccountDetail.tsx
+2
-2
AccountEdit.tsx
src/pages/AccountManagement/account/AccountEdit.tsx
+1
-1
Adds.tsx
src/pages/CommunityManagement/CellList/Adds.tsx
+2
-2
Adds2.tsx
src/pages/CommunityManagement/CellList/Adds2.tsx
+1
-1
Add.tsx
src/pages/CommunityManagement/CommunityAnnouncement/Add.tsx
+1
-1
ContractDetail.tsx
src/pages/ContractManagement/ContractDetail.tsx
+1
-1
ResultPageFailed.tsx
...es/UserManagement/LIFEUserManagement/ResultPageFailed.tsx
+9
-1
AccoutingContent.tsx
...Management/ServiceProviderManagement/AccoutingContent.tsx
+2
-2
Detail.tsx
...pages/UserManagement/ServiceProviderManagement/Detail.tsx
+1
-1
No files found.
config/proxy.ts
View file @
38295bfd
...
@@ -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
:
{
'^'
:
''
},
},
},
},
};
};
src/pages/AccountManagement/account/AccountDetail.tsx
View file @
38295bfd
...
@@ -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'
});
...
...
src/pages/AccountManagement/account/AccountEdit.tsx
View file @
38295bfd
...
@@ -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
);
...
...
src/pages/CommunityManagement/CellList/Adds.tsx
View file @
38295bfd
...
@@ -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.`
);
}
}
...
...
src/pages/CommunityManagement/CellList/Adds2.tsx
View file @
38295bfd
...
@@ -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.`
);
}
}
...
...
src/pages/CommunityManagement/CommunityAnnouncement/Add.tsx
View file @
38295bfd
...
@@ -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
]);
...
...
src/pages/ContractManagement/ContractDetail.tsx
View file @
38295bfd
...
@@ -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);
}
}
},
},
};
};
...
...
src/pages/UserManagement/LIFEUserManagement/ResultPageFailed.tsx
View file @
38295bfd
/*
* @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');
}
}
};
};
...
...
src/pages/UserManagement/ServiceProviderManagement/AccoutingContent.tsx
View file @
38295bfd
...
@@ -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'
);
}
}
...
...
src/pages/UserManagement/ServiceProviderManagement/Detail.tsx
View file @
38295bfd
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment