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
232ce6f0
Commit
232ce6f0
authored
Dec 01, 2020
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退出登录清除用户信息,公告图片问题,文案更改,分页样式统一,样式更改
Signed-off-by:
cellee
<
893264950@qq.com
>
parent
a9d78365
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
59 additions
and
39 deletions
+59
-39
config.ts
config/config.ts
+24
-12
AvatarDropdown.tsx
src/components/GlobalHeader/AvatarDropdown.tsx
+16
-14
index.jsx
src/components/SelectOptions/index.jsx
+1
-1
Add.tsx
src/pages/CommunityManagement/CommunityAnnouncement/Add.tsx
+8
-6
CommunityAnnouncement.tsx
...anagement/CommunityAnnouncement/CommunityAnnouncement.tsx
+1
-1
Detail copy.tsx
...CommunityManagement/CommunityAnnouncement/Detail copy.tsx
+1
-1
VisitorRecord.tsx
...pages/CommunityManagement/VisitorRecord/VisitorRecord.tsx
+4
-2
VisitorRecord.tsx
...pages/CommunityManagement/visitorRecord/VisitorRecord.tsx
+4
-2
No files found.
config/config.ts
View file @
232ce6f0
...
...
@@ -42,6 +42,7 @@ export default defineConfig({
name
:
'login'
,
path
:
'/user/login'
,
component
:
'./user/login'
,
title
:
'login'
,
},
{
name
:
'login'
,
...
...
@@ -70,14 +71,14 @@ export default defineConfig({
},
{
path
:
'/'
,
redirect
:
'/runTest'
,
},
{
path
:
'/runTest'
,
name
:
'monitoringcenter'
,
icon
:
'PieChartOutlined'
,
component
:
'./runTest/Template'
,
redirect
:
'/UserManagement/LIFEUserManagement'
,
},
// {
// path: '/runTest',
// name: 'monitoringcenter',
// icon: 'PieChartOutlined',
// component: './runTest/Template',
// },
{
path
:
'/UserManagement'
,
name
:
'usemanagement'
,
...
...
@@ -246,6 +247,7 @@ export default defineConfig({
{
path
:
'./Detail'
,
component
:
'./ContractManagement/ContractDetail'
},
{
path
:
'./Edit'
,
component
:
'./ContractManagement/ContractContent'
},
{
path
:
'./Add'
,
component
:
'./ContractManagement/ContractContent'
},
{
path
:
'*'
,
component
:
'@/pages/404'
},
],
},
{
...
...
@@ -260,6 +262,7 @@ export default defineConfig({
{
path
:
'./'
,
component
:
'./CommunityManagement/CellList/CellList'
},
{
path
:
'./Add'
,
component
:
'./CommunityManagement/CellList/Adds'
},
{
path
:
'./Detail'
,
component
:
'./CommunityManagement/CellList/Details'
},
{
path
:
'*'
,
component
:
'@/pages/404'
},
],
},
{
...
...
@@ -280,6 +283,7 @@ export default defineConfig({
path
:
'./Detail'
,
component
:
'./CommunityManagement/CommunityAnnouncement/Detail'
,
},
{
path
:
'*'
,
component
:
'@/pages/404'
},
],
},
{
...
...
@@ -314,6 +318,7 @@ export default defineConfig({
path
:
'./FacilityApply'
,
component
:
'./CommunityManagement/FacilityBookings/Bookings'
,
},
{
path
:
'*'
,
component
:
'@/pages/404'
},
],
},
{
...
...
@@ -321,8 +326,10 @@ export default defineConfig({
name
:
'visitorrecord'
,
routes
:
[
{
path
:
'./'
,
component
:
'./CommunityManagement/VisitorRecord/VisitorRecord'
},
{
path
:
'*'
,
component
:
'@/pages/404'
},
],
},
{
path
:
'*'
,
component
:
'@/pages/404'
},
],
},
{
...
...
@@ -347,6 +354,7 @@ export default defineConfig({
{
path
:
'./Add'
,
component
:
'./AccountManagement/account/AccountAdds'
},
{
path
:
'./Detail'
,
component
:
'./AccountManagement/account/AccountDetail'
},
{
path
:
'./reset'
,
component
:
'./AccountManagement/account/AccountReset'
},
{
path
:
'*'
,
component
:
'@/pages/404'
},
],
},
...
...
@@ -360,20 +368,24 @@ export default defineConfig({
name
:
'languagesettings'
,
component
:
'./AccountManagement/LanguageSettings/LanguageSettings'
,
},
{
path
:
'*'
,
component
:
'@/pages/404'
,
},
],
},
{
component
:
'./404'
,
path
:
'*'
,
component
:
'@/pages/404'
,
},
],
},
{
component
:
'./404'
,
},
],
},
{
component
:
'./404'
,
path
:
'*'
,
component
:
'@/pages/404'
,
},
{
component
:
'./403'
,
...
...
src/components/GlobalHeader/AvatarDropdown.tsx
View file @
232ce6f0
import
{
LogoutOutlined
,
SettingOutlined
,
UserOutlined
}
from
'@ant-design/icons'
;
import
{
Avatar
,
Menu
,
Spin
}
from
'antd'
;
import
{
ClickParam
}
from
'antd/es/menu'
;
import
{
setCookie
}
from
'@/utils/method'
;
import
React
from
'react'
;
import
{
history
,
ConnectProps
,
connect
}
from
'umi'
;
import
{
ConnectState
}
from
'@/models/connect'
;
...
...
@@ -27,21 +28,22 @@ class AvatarDropdown extends React.Component<GlobalHeaderRightProps> {
// 清掉所有localStorage缓存
localStorage
.
clear
();
// 清掉本域名所有cookie
//
let keys = document.cookie.match(/[^ =;]+(?==)/g);
//
if (keys) {
//
for (var i = keys.length; i--; ) {
// document.cookie = keys[i] + '=0;path=/;expires=' + new Date(0).toUTCString(); // 清除当前域名下的,例如:m.ratingdog.cn
//
document.cookie =
//
keys[i] +
//
'=0;path=/;domain=' +
//
document.domain +
//
';expires=' +
// new Date(0).toUTCString(); // 清除当前域名下的,例如 .m.ratingdog.cn
//
document.cookie =
// keys[i] + '=0;path=/;domain=ratingdog.cn;expires=' + new Date(0).toUTCString(); // 清除一级域名下的或指定的,例如 .ratingdog.cn
//
}
//
}
let
keys
=
document
.
cookie
.
match
(
/
[^
=;
]
+
(?=
=
)
/g
);
if
(
keys
)
{
for
(
var
i
=
keys
.
length
;
i
--
;
)
{
document
.
cookie
=
keys
[
i
]
+
'=0;path=/;expires='
+
new
Date
(
0
).
toUTCString
();
document
.
cookie
=
keys
[
i
]
+
'=0;path=/;domain='
+
document
.
domain
+
';expires='
+
new
Date
(
0
).
toUTCString
();
document
.
cookie
=
keys
[
i
]
+
'=0;path=/;domain=ratingdog.cn;expires='
+
new
Date
(
0
).
toUTCString
();
}
}
dispatch
({
type
:
'login/logout'
,
});
...
...
src/components/SelectOptions/index.jsx
View file @
232ce6f0
...
...
@@ -403,7 +403,7 @@ class SelectOptions extends React.PureComponent {
options=
{
this
.
state
.
checkedListOptions
}
// 所有数组
value=
{
this
.
state
.
checkedList
}
// 选中的数组
onChange=
{
this
.
onChangeValue
}
style=
{
{
marginLeft
:
10
}
}
style=
{
{
marginLeft
:
10
,
display
:
'block'
}
}
/>
<
div
>
<
h1
>
</
h1
>
...
...
src/pages/CommunityManagement/CommunityAnnouncement/Add.tsx
View file @
232ce6f0
...
...
@@ -41,12 +41,14 @@ const Add = (props: any) => {
noticStartTime
:
day
,
noticEndTime
:
day2
,
});
// 发起请求图片
let
msg
=
{
type
:
'tosCommunityNoticePreview'
,
fileName
:
DataSave
.
noticImageName
,
};
RA
(
47
,
msg
,
module
,
dispatch
);
if
(
DataSave
.
noticImageName
)
{
// 如果存在图片 发起请求图片
let
msg
=
{
type
:
'tosCommunityNoticePreview'
,
fileName
:
DataSave
.
noticImageName
,
};
RA
(
47
,
msg
,
module
,
dispatch
);
}
// 解除结束时间不可选
settimeT
(
false
);
...
...
src/pages/CommunityManagement/CommunityAnnouncement/CommunityAnnouncement.tsx
View file @
232ce6f0
...
...
@@ -57,7 +57,7 @@ const CommunityAnnouncement = (props: any) => {
return
<
Tag
color=
"green"
>
Take Effect
</
Tag
>;
// 发布中
break
;
case
2
:
return
<
Tag
color=
"red"
>
Invali
d
</
Tag
>;
// 已过期
return
<
Tag
color=
"red"
>
Expire
d
</
Tag
>;
// 已过期
break
;
default
:
return
<
Tag
color=
"cyan"
>
Waiting For Release
</
Tag
>;
// 等待发布
...
...
src/pages/CommunityManagement/CommunityAnnouncement/Detail copy.tsx
View file @
232ce6f0
...
...
@@ -52,7 +52,7 @@ const Detail = (props: any) => {
// <Tag color="green">Publishing</Tag>; // 发布中
break
;
case
2
:
return
<
Badge
status=
"error"
text=
"
Invali
d"
/>;
// 已过期
return
<
Badge
status=
"error"
text=
"
Expire
d"
/>;
// 已过期
break
;
default
:
return
<
Badge
status=
"processing"
text=
"Waiting For Release"
/>;
// 等待发布
...
...
src/pages/CommunityManagement/VisitorRecord/VisitorRecord.tsx
View file @
232ce6f0
...
...
@@ -68,6 +68,8 @@ const VisitorRecord = (props: any) => {
total
:
Data
!=
null
?
Data
.
length
:
0
,
defaultPageSize
:
12
,
showSizeChanger
:
false
,
showTitle
:
false
,
showTotal
:
false
,
size
:
'default'
,
};
...
...
@@ -252,8 +254,8 @@ const VisitorRecord = (props: any) => {
// pagination={{ current: 1, total: Data.total}}
search=
{
false
}
options=
{
{
density
:
tru
e
,
fullScreen
:
tru
e
,
density
:
fals
e
,
fullScreen
:
fals
e
,
reload
:
()
=>
{
onReset
();
},
...
...
src/pages/CommunityManagement/visitorRecord/VisitorRecord.tsx
View file @
232ce6f0
...
...
@@ -68,6 +68,8 @@ const VisitorRecord = (props: any) => {
total
:
Data
!=
null
?
Data
.
length
:
0
,
defaultPageSize
:
12
,
showSizeChanger
:
false
,
showTitle
:
false
,
showTotal
:
false
,
size
:
'default'
,
};
...
...
@@ -252,8 +254,8 @@ const VisitorRecord = (props: any) => {
// pagination={{ current: 1, total: Data.total}}
search=
{
false
}
options=
{
{
density
:
tru
e
,
fullScreen
:
tru
e
,
density
:
fals
e
,
fullScreen
:
fals
e
,
reload
:
()
=>
{
onReset
();
},
...
...
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