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
34bd254a
Commit
34bd254a
authored
Feb 05, 2021
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除操作成功提示
Signed-off-by:
cellee
<
893264950@qq.com
>
parent
b7a6b4bb
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
26 additions
and
530 deletions
+26
-530
Facilitys copy.tsx
src/components/Facilitys/Facilitys copy.tsx
+1
-1
Facilitys.tsx
src/components/Facilitys/Facilitys.tsx
+1
-1
FileUpload.tsx
src/components/FileUpload/FileUpload.tsx
+16
-17
Contract.ts
src/models/CommunityManagement/Contract.ts
+1
-1
FacilityBookings.ts
src/models/CommunityManagement/FacilityBookings.ts
+1
-1
AccountAdds.tsx
src/pages/AccountManagement/account/AccountAdds.tsx
+1
-1
AccountDetail.tsx
src/pages/AccountManagement/account/AccountDetail.tsx
+0
-1
AccountEdit copy.tsx
src/pages/AccountManagement/account/AccountEdit copy.tsx
+0
-500
Adds2.tsx
src/pages/CommunityManagement/CellList/Adds2.tsx
+1
-1
Details.tsx
src/pages/CommunityManagement/CellList/Details.tsx
+0
-1
Bookings.tsx
src/pages/CommunityManagement/FacilityBookings/Bookings.tsx
+1
-1
FacilityTow.tsx
...ages/CommunityManagement/FacilityBookings/FacilityTow.tsx
+1
-2
ContractContent copy.tsx
src/pages/ContractManagement/ContractContent copy.tsx
+1
-1
ContractContent.tsx
src/pages/ContractManagement/ContractContent.tsx
+1
-1
No files found.
src/components/Facilitys/Facilitys copy.tsx
View file @
34bd254a
...
@@ -63,7 +63,7 @@ const Facilitys = (props: any) => {
...
@@ -63,7 +63,7 @@ const Facilitys = (props: any) => {
onChange
(
info
:
any
)
{
onChange
(
info
:
any
)
{
// console.log(info);
// console.log(info);
if
(
info
.
file
.
status
===
'done'
)
{
if
(
info
.
file
.
status
===
'done'
)
{
message
.
success
(
`
${
info
.
file
.
name
}
file uploaded successfully`
);
//
message.success(`${info.file.name} file uploaded successfully`);
// 拿到key 值 开始存储
// 拿到key 值 开始存储
let
key
=
info
.
fileList
[
0
].
response
.
data
.
identification
;
let
key
=
info
.
fileList
[
0
].
response
.
data
.
identification
;
let
list
=
FacilitysList
;
let
list
=
FacilitysList
;
...
...
src/components/Facilitys/Facilitys.tsx
View file @
34bd254a
...
@@ -60,7 +60,7 @@ const Facilitys = (props: any) => {
...
@@ -60,7 +60,7 @@ const Facilitys = (props: any) => {
onChange
(
info
:
any
)
{
onChange
(
info
:
any
)
{
// console.log(info);
// console.log(info);
if
(
info
.
file
.
status
===
'done'
)
{
if
(
info
.
file
.
status
===
'done'
)
{
message
.
success
(
`
${
info
.
file
.
name
}
file uploaded successfully`
);
//
message.success(`${info.file.name} file uploaded successfully`);
// 后台返回的值
// 后台返回的值
let
data
=
info
.
file
.
response
.
data
;
let
data
=
info
.
file
.
response
.
data
;
// 拿到key 值 开始存储
// 拿到key 值 开始存储
...
...
src/components/FileUpload/FileUpload.tsx
View file @
34bd254a
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Upload
,
Button
,
message
,
Row
,
Col
}
from
'antd'
;
import
{
Upload
,
Button
,
message
,
Row
,
Col
}
from
'antd'
;
import
{
UploadOutlined
}
from
'@ant-design/icons'
;
import
{
UploadOutlined
}
from
'@ant-design/icons'
;
// { imageType: "tosContract", extends: extend }
// { imageType: "tosContract", extends: extend }
//"/tos/image/upload"
//"/tos/image/upload"
import
{
Fromate2
}
from
'@/utils/method'
import
{
Fromate2
}
from
'@/utils/method'
;
const
FileUpload
=
(
props
:
any
)
=>
{
const
FileUpload
=
(
props
:
any
)
=>
{
const
{
value
,
onChange
}
=
props
;
const
{
value
,
onChange
}
=
props
const
[
fileList
,
setFileList
]
=
useState
([]);
const
[
fileList
,
setFileList
]
=
useState
([]);
const
uploadProps
=
{
const
uploadProps
=
{
accept
:
".pdf,"
,
accept
:
'.pdf,'
,
action
:
props
.
url
,
action
:
props
.
url
,
data
:
props
.
data
,
data
:
props
.
data
,
fileList
:
fileList
,
fileList
:
fileList
,
showUploadList
:
false
,
showUploadList
:
false
,
onChange
({
file
,
fileList
})
{
onChange
({
file
,
fileList
})
{
let
tmp
=
fileList
let
tmp
=
fileList
;
setFileList
(
tmp
.
filter
(
file
=>
!!
file
.
status
))
setFileList
(
tmp
.
filter
(
(
file
)
=>
!!
file
.
status
));
if
(
file
.
status
==
'done'
)
{
if
(
file
.
status
==
'done'
)
{
console
.
log
(
fileList
);
console
.
log
(
fileList
);
message
.
success
(
file
.
name
,
3
)
//
message.success(file.name, 3)
if
(
props
.
reg
!=
null
)
{
if
(
props
.
reg
!=
null
)
{
onChange
(
Fromate2
(
fileList
,
props
.
reg
))
onChange
(
Fromate2
(
fileList
,
props
.
reg
));
}
else
{
}
else
{
onChange
(
fileList
)
onChange
(
fileList
)
;
}
}
}
}
},
},
...
@@ -38,16 +36,17 @@ const FileUpload = (props: any) => {
...
@@ -38,16 +36,17 @@ const FileUpload = (props: any) => {
return
(
return
(
<>
<>
<
Row
gutter=
{
8
}
>
<
Row
gutter=
{
8
}
>
<
Col
><
div
style=
{
{
lineHeight
:
2
}
}
>
{
props
.
title
}
</
div
></
Col
>
<
Col
>
<
div
style=
{
{
lineHeight
:
2
}
}
>
{
props
.
title
}
</
div
>
</
Col
>
<
Col
>
<
Col
>
<
Upload
{
...
uploadProps
}
>
<
Upload
{
...
uploadProps
}
>
<
Button
>
<
Button
>
<
UploadOutlined
/>
Upload
<
UploadOutlined
/>
Upload
</
Button
>
</
Button
>
</
Upload
>
</
Upload
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
</>
</>
);
);
};
};
...
...
src/models/CommunityManagement/Contract.ts
View file @
34bd254a
...
@@ -65,7 +65,7 @@ export default {
...
@@ -65,7 +65,7 @@ export default {
break
;
break
;
case
27
:
case
27
:
{
{
message
.
success
(
'Save Success !'
);
//
message.success('Save Success !');
let
tmp
=
resp
;
let
tmp
=
resp
;
let
Data
=
null
;
let
Data
=
null
;
yield
put
({
type
:
'returnResult'
,
tmp
});
yield
put
({
type
:
'returnResult'
,
tmp
});
...
...
src/models/CommunityManagement/FacilityBookings.ts
View file @
34bd254a
...
@@ -147,7 +147,7 @@ export default {
...
@@ -147,7 +147,7 @@ export default {
case
6
:
case
6
:
case
17
:
case
17
:
{
{
message
.
success
(
'Success Operation!'
,
3
);
//
message.success('Success Operation!', 3);
history
.
push
(
'/CommunityManagement/FacilityBookings'
);
history
.
push
(
'/CommunityManagement/FacilityBookings'
);
}
}
break
;
break
;
...
...
src/pages/AccountManagement/account/AccountAdds.tsx
View file @
34bd254a
...
@@ -94,7 +94,7 @@ const Account = (props: any) => {
...
@@ -94,7 +94,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
(
false
);
setLoading
(
false
);
...
...
src/pages/AccountManagement/account/AccountDetail.tsx
View file @
34bd254a
...
@@ -508,7 +508,6 @@ const Account = (props: any) => {
...
@@ -508,7 +508,6 @@ const Account = (props: any) => {
<
div
className=
"label"
>
<
div
className=
"label"
>
{
user
&&
user
.
currentUser
.
tosUserLevel
!==
3
?
(
{
user
&&
user
.
currentUser
.
tosUserLevel
!==
3
?
(
<
Button
danger
style=
{
{
marginRight
:
15
}
}
onClick=
{
lockS
}
>
<
Button
danger
style=
{
{
marginRight
:
15
}
}
onClick=
{
lockS
}
>
<
PoweroffOutlined
/>
Close Account
Close Account
</
Button
>
</
Button
>
)
:
(
)
:
(
...
...
src/pages/AccountManagement/account/AccountEdit copy.tsx
deleted
100644 → 0
View file @
b7a6b4bb
This diff is collapsed.
Click to expand it.
src/pages/CommunityManagement/CellList/Adds2.tsx
View file @
34bd254a
...
@@ -108,7 +108,7 @@ const Adds = (props: any) => {
...
@@ -108,7 +108,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
]);
...
...
src/pages/CommunityManagement/CellList/Details.tsx
View file @
34bd254a
...
@@ -295,7 +295,6 @@ const Detail = (props: any) => {
...
@@ -295,7 +295,6 @@ const Detail = (props: any) => {
<
Button
<
Button
danger
danger
style=
{
{
marginRight
:
'15px'
}
}
style=
{
{
marginRight
:
'15px'
}
}
icon=
{
<
PoweroffOutlined
/>
}
loading=
{
false
}
loading=
{
false
}
onClick=
{
openModel
}
onClick=
{
openModel
}
>
>
...
...
src/pages/CommunityManagement/FacilityBookings/Bookings.tsx
View file @
34bd254a
...
@@ -114,7 +114,7 @@ const Bookings = (props: any) => {
...
@@ -114,7 +114,7 @@ const Bookings = (props: any) => {
}
else
{
}
else
{
// 提交成功
// 提交成功
ResultClear
();
// 清除结果
ResultClear
();
// 清除结果
message
.
success
(
'Success Operation!'
,
3
);
//
message.success('Success Operation!', 3);
history
.
push
(
'/CommunityManagement/FacilityBookings'
);
history
.
push
(
'/CommunityManagement/FacilityBookings'
);
}
}
}
}
...
...
src/pages/CommunityManagement/FacilityBookings/FacilityTow.tsx
View file @
34bd254a
...
@@ -144,7 +144,7 @@ const FacilityTow = (props: any) => {
...
@@ -144,7 +144,7 @@ const FacilityTow = (props: any) => {
// 设施删除结果
// 设施删除结果
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
FacilityDelete
)
{
if
(
FacilityDelete
)
{
message
.
success
(
'Closed Successfully!'
);
//
message.success('Closed Successfully!');
setIsModalVisible
(
false
);
setIsModalVisible
(
false
);
history
.
push
(
'/CommunityManagement/FacilityBookings'
);
history
.
push
(
'/CommunityManagement/FacilityBookings'
);
dispatch
({
type
:
'FacilityBookings/FacilityDel'
});
dispatch
({
type
:
'FacilityBookings/FacilityDel'
});
...
@@ -492,7 +492,6 @@ const FacilityTow = (props: any) => {
...
@@ -492,7 +492,6 @@ const FacilityTow = (props: any) => {
<>
<>
{
facilityDetail
&&
user
&&
user
.
currentUser
.
permission
.
includes
(
'58'
)
?
(
{
facilityDetail
&&
user
&&
user
.
currentUser
.
permission
.
includes
(
'58'
)
?
(
<
Button
danger
onClick=
{
showModal
}
>
<
Button
danger
onClick=
{
showModal
}
>
<
PoweroffOutlined
/>
Close The Selected Facility
Close The Selected Facility
</
Button
>
</
Button
>
)
:
(
)
:
(
...
...
src/pages/ContractManagement/ContractContent copy.tsx
View file @
34bd254a
...
@@ -178,7 +178,7 @@ const ContractContent = (props: any) => {
...
@@ -178,7 +178,7 @@ const ContractContent = (props: any) => {
setimgLoad
(
false
);
setimgLoad
(
false
);
}
}
if
(
file
.
status
===
'done'
)
{
if
(
file
.
status
===
'done'
)
{
message
.
success
(
file
.
name
+
' Upload Successful !'
);
//
message.success(file.name + ' Upload Successful !');
// 实现在线预览
// 实现在线预览
let
obj
=
{
let
obj
=
{
...
...
src/pages/ContractManagement/ContractContent.tsx
View file @
34bd254a
...
@@ -224,7 +224,7 @@ const ContractContent = (props: any) => {
...
@@ -224,7 +224,7 @@ const ContractContent = (props: any) => {
dispatchs
({
type
:
'setimgLoad'
,
payload
:
false
});
dispatchs
({
type
:
'setimgLoad'
,
payload
:
false
});
}
}
if
(
file
.
status
===
'done'
)
{
if
(
file
.
status
===
'done'
)
{
message
.
success
(
file
.
name
+
' Upload Successful !'
);
//
message.success(file.name + ' Upload Successful !');
let
data
=
file
.
response
.
data
;
let
data
=
file
.
response
.
data
;
// 实现在线预览
// 实现在线预览
...
...
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