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
94446f54
Commit
94446f54
authored
Dec 25, 2020
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Signed-off-by: cellee <893264950@qq.com>
parent
818d1fca
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
15 deletions
+28
-15
Account.tsx
src/pages/AccountManagement/account/Account.tsx
+0
-1
AccountDetail.tsx
src/pages/AccountManagement/account/AccountDetail.tsx
+1
-1
Details.tsx
src/pages/CommunityManagement/CellList/Details.tsx
+19
-13
power.js
src/utils/power.js
+8
-0
No files found.
src/pages/AccountManagement/account/Account.tsx
View file @
94446f54
...
@@ -3,7 +3,6 @@ import { Form, Input, Button, Pagination, message, Modal, Tag } from 'antd';
...
@@ -3,7 +3,6 @@ import { Form, Input, Button, Pagination, message, Modal, Tag } from 'antd';
import
{
connect
,
history
}
from
'umi'
;
import
{
connect
,
history
}
from
'umi'
;
import
{
SearchOutlined
,
ClearOutlined
,
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
SearchOutlined
,
ClearOutlined
,
PlusOutlined
}
from
'@ant-design/icons'
;
import
ProTable
from
'@ant-design/pro-table'
;
import
ProTable
from
'@ant-design/pro-table'
;
import
{
getCookie
}
from
'@/utils/method'
;
import
'./Account.less'
;
import
'./Account.less'
;
...
...
src/pages/AccountManagement/account/AccountDetail.tsx
View file @
94446f54
...
@@ -251,7 +251,7 @@ const Account = (props: any) => {
...
@@ -251,7 +251,7 @@ const Account = (props: any) => {
<
EditOutlined
/>
<
EditOutlined
/>
Detail Account
Detail Account
<
div
className=
"back"
>
<
div
className=
"back"
>
{
DataSave
&&
DataSave
.
tosUserLevel
<=
2
?
(
{
user
&&
user
.
currentUser
.
tosUserLevel
!==
3
?
(
<
Button
type=
"primary"
danger
style=
{
{
marginRight
:
15
}
}
onClick=
{
lockS
}
>
<
Button
type=
"primary"
danger
style=
{
{
marginRight
:
15
}
}
onClick=
{
lockS
}
>
<
PoweroffOutlined
/>
<
PoweroffOutlined
/>
Close Account
Close Account
...
...
src/pages/CommunityManagement/CellList/Details.tsx
View file @
94446f54
...
@@ -6,7 +6,6 @@ import { history } from 'umi';
...
@@ -6,7 +6,6 @@ import { history } from 'umi';
// 样式
// 样式
import
'./celllist.less'
;
import
'./celllist.less'
;
import
{
RA
}
from
'@/utils/method'
;
import
{
RA
}
from
'@/utils/method'
;
import
imgs
from
'@/assets/logo_icon_bg.png'
;
import
hfor
from
'@/assets/h5.png'
;
import
hfor
from
'@/assets/h5.png'
;
import
PreView
from
'@/components/PreView'
;
import
PreView
from
'@/components/PreView'
;
...
@@ -19,7 +18,7 @@ import fileDownload from 'js-file-download';
...
@@ -19,7 +18,7 @@ import fileDownload from 'js-file-download';
const
Detail
=
(
props
:
any
)
=>
{
const
Detail
=
(
props
:
any
)
=>
{
const
module
=
'CellList'
;
const
module
=
'CellList'
;
const
{
detailData
,
DataSave
,
dispatch
,
loading
,
overCom
}
=
props
;
const
{
detailData
,
DataSave
,
dispatch
,
loading
,
overCom
,
user
}
=
props
;
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
DataSave
)
{
if
(
DataSave
)
{
...
@@ -113,6 +112,7 @@ const Detail = (props: any) => {
...
@@ -113,6 +112,7 @@ const Detail = (props: any) => {
<
EyeOutlined
/>
<
EyeOutlined
/>
Community Details
Community Details
<
div
className=
"back"
>
<
div
className=
"back"
>
{
user
&&
user
.
currentUser
.
permission
.
filter
((
item
:
any
)
=>
(
item
=
47
))
?
(
<
Button
<
Button
type=
"primary"
type=
"primary"
danger
danger
...
@@ -121,8 +121,13 @@ const Detail = (props: any) => {
...
@@ -121,8 +121,13 @@ const Detail = (props: any) => {
loading=
{
false
}
loading=
{
false
}
onClick=
{
openModel
}
onClick=
{
openModel
}
>
>
{
' '
}
<
span
className=
"capi"
>
Close the community
</
span
>
<
span
className=
"capi"
>
Close the community
</
span
>
</
Button
>
</
Button
>
)
:
(
''
)
}
<
Button
onClick=
{
goToReturn
}
>
<
Button
onClick=
{
goToReturn
}
>
<
LeftOutlined
/>
<
LeftOutlined
/>
Back
Back
...
@@ -297,6 +302,7 @@ const Detail = (props: any) => {
...
@@ -297,6 +302,7 @@ const Detail = (props: any) => {
function
map
(
state
:
any
)
{
function
map
(
state
:
any
)
{
const
{
DataSave
,
detailData
,
imgUrl
,
overCom
}
=
state
.
CellList
;
// 上层传递来的值
const
{
DataSave
,
detailData
,
imgUrl
,
overCom
}
=
state
.
CellList
;
// 上层传递来的值
const
loading
=
state
.
loading
.
models
.
CellList
;
const
loading
=
state
.
loading
.
models
.
CellList
;
return
{
DataSave
,
detailData
,
loading
,
imgUrl
,
overCom
};
const
user
=
state
.
user
;
return
{
DataSave
,
detailData
,
loading
,
imgUrl
,
overCom
,
user
};
}
}
export
default
connect
(
map
)(
Detail
);
export
default
connect
(
map
)(
Detail
);
src/utils/power.js
View file @
94446f54
...
@@ -27,6 +27,10 @@ export const zhCnFaci = [
...
@@ -27,6 +27,10 @@ export const zhCnFaci = [
{
title
:
'注销服务商'
,
key
:
'12'
,
disableCheckbox
:
true
},
{
title
:
'注销服务商'
,
key
:
'12'
,
disableCheckbox
:
true
},
{
title
:
'查看保安账号'
,
key
:
'13'
,
disableCheckbox
:
true
},
{
title
:
'查看保安账号'
,
key
:
'13'
,
disableCheckbox
:
true
},
{
title
:
'注销保安账号'
,
key
:
'14'
,
disableCheckbox
:
true
},
{
title
:
'注销保安账号'
,
key
:
'14'
,
disableCheckbox
:
true
},
{
title
:
'查看服务范围'
,
key
:
'67'
,
disableCheckbox
:
true
},
{
title
:
'编辑服务范围'
,
key
:
'68'
,
disableCheckbox
:
true
},
{
title
:
'添加服务范围'
,
key
:
'69'
,
disableCheckbox
:
true
},
{
title
:
'删除服务范围'
,
key
:
'70'
,
disableCheckbox
:
true
},
],
],
},
},
{
{
...
@@ -194,6 +198,10 @@ export const enUsFaci = [
...
@@ -194,6 +198,10 @@ export const enUsFaci = [
{
title
:
'Log off service providers'
,
key
:
'12'
,
disableCheckbox
:
true
},
{
title
:
'Log off service providers'
,
key
:
'12'
,
disableCheckbox
:
true
},
{
title
:
'Check security account'
,
key
:
'13'
,
disableCheckbox
:
true
},
{
title
:
'Check security account'
,
key
:
'13'
,
disableCheckbox
:
true
},
{
title
:
'Log off security account'
,
key
:
'14'
,
disableCheckbox
:
true
},
{
title
:
'Log off security account'
,
key
:
'14'
,
disableCheckbox
:
true
},
{
title
:
'Check available services'
,
key
:
'67'
,
disableCheckbox
:
true
},
{
title
:
'Edit available services'
,
key
:
'68'
,
disableCheckbox
:
true
},
{
title
:
'Add available services'
,
key
:
'69'
,
disableCheckbox
:
true
},
{
title
:
'Delete available services'
,
key
:
'70'
,
disableCheckbox
:
true
},
],
],
},
},
{
{
...
...
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