Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
7a9cc98b
Commit
7a9cc98b
authored
Sep 22, 2022
by
李腾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化查看角色样式
parent
1bab5c5c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
5 deletions
+9
-5
.eslintrc.js
.eslintrc.js
+1
-0
index.jsx
...mManage/Account/components/RolePermissionsModal/index.jsx
+1
-0
index.jsx
...stemManage/Account/components/UpdateStatusModal/index.jsx
+6
-3
service.js
src/pages/systemManage/service.js
+0
-1
constants.js
src/utils/constants.js
+1
-1
No files found.
.eslintrc.js
View file @
7a9cc98b
...
@@ -13,5 +13,6 @@ module.exports = {
...
@@ -13,5 +13,6 @@ module.exports = {
'
@typescript-eslint/camelcase
'
:
[
'
off
'
],
'
@typescript-eslint/camelcase
'
:
[
'
off
'
],
'
@typescript-eslint/no-unused-vars
'
:
[
'
off
'
],
'
@typescript-eslint/no-unused-vars
'
:
[
'
off
'
],
'
import/no-unresolved
'
:
0
,
'
import/no-unresolved
'
:
0
,
'
import/extensions
'
:
0
,
},
},
};
};
src/pages/systemManage/Account/components/RolePermissionsModal/index.jsx
View file @
7a9cc98b
...
@@ -32,6 +32,7 @@ const RolePermissionsModal = (props, ref) => {
...
@@ -32,6 +32,7 @@ const RolePermissionsModal = (props, ref) => {
id
:
roleInfo
.
id
,
id
:
roleInfo
.
id
,
submittable
:
false
,
submittable
:
false
,
readyonly
:
true
,
readyonly
:
true
,
height
:
'
500px
'
,
wrapperCol
:
{
wrapperCol
:
{
span
:
18
,
span
:
18
,
},
},
...
...
src/pages/systemManage/Account/components/UpdateStatusModal/index.jsx
View file @
7a9cc98b
import
React
,
{
forwardRef
,
useImperativeHandle
,
useState
,
useRef
,
useEffect
}
from
'
react
'
;
import
React
,
{
forwardRef
,
useImperativeHandle
,
useState
,
useRef
,
useEffect
}
from
'
react
'
;
import
{
Modal
,
Select
,
notification
}
from
'
antd
'
;
import
{
Modal
,
Select
,
notification
}
from
'
antd
'
;
import
{
Form
}
from
'
@ant-design/compatible
'
;
import
{
Form
}
from
'
@ant-design/compatible
'
;
import
{
userEnabled
,
userDisabled
,
userDelete
}
from
'
@/pages/systemManage/service
'
;
import
{
userEnabled
,
userDisabled
}
from
'
@/pages/systemManage/service
'
;
const
FormComponent
=
props
=>
{
const
FormComponent
=
props
=>
{
const
{
record
=
{},
form
}
=
props
;
const
{
record
=
{},
form
}
=
props
;
...
@@ -26,7 +26,10 @@ const FormComponent = props => {
...
@@ -26,7 +26,10 @@ const FormComponent = props => {
<
Form
{
...
formLayout
}
>
<
Form
{
...
formLayout
}
>
<
Form
.
Item
label=
"用户名"
>
{
record
.
name
}
</
Form
.
Item
>
<
Form
.
Item
label=
"用户名"
>
{
record
.
name
}
</
Form
.
Item
>
<
Form
.
Item
label=
"状态"
>
<
Form
.
Item
label=
"状态"
>
{
getFieldDecorator
(
'
status
'
,
rulesHandler
(
'
status
'
))(
{
getFieldDecorator
(
'
status
'
,
rulesHandler
(
'
status
'
),
)(
<
Select
>
<
Select
>
<
Select
.
Option
value=
{
2
}
>
使用中
</
Select
.
Option
>
<
Select
.
Option
value=
{
2
}
>
使用中
</
Select
.
Option
>
<
Select
.
Option
value=
{
3
}
>
已禁用
</
Select
.
Option
>
<
Select
.
Option
value=
{
3
}
>
已禁用
</
Select
.
Option
>
...
@@ -77,7 +80,7 @@ const UpdateStatusModal = (props, ref) => {
...
@@ -77,7 +80,7 @@ const UpdateStatusModal = (props, ref) => {
}
}
const
apiName
=
{
const
apiName
=
{
1
:
userDelete
,
//
1: userDelete,
2
:
userEnabled
,
2
:
userEnabled
,
3
:
userDisabled
,
3
:
userDisabled
,
};
};
...
...
src/pages/systemManage/service.js
View file @
7a9cc98b
import
{
stringify
}
from
'
querystring
'
;
import
_
from
'
lodash
'
;
import
_
from
'
lodash
'
;
import
request
from
'
@/utils/request
'
;
import
request
from
'
@/utils/request
'
;
import
{
APP_CODE
}
from
'
@/utils/constants
'
;
import
{
APP_CODE
}
from
'
@/utils/constants
'
;
...
...
src/utils/constants.js
View file @
7a9cc98b
export
const
APP_CODE
=
'
APP013
'
;
export
const
APP_CODE
=
'
APP013
'
;
export
const
TENANT_ID
=
560761
;
export
const
TENANT_ID
=
560761
;
// 小程序权限标识符
// 小程序权限标识符
, 用于过滤掉返回的小程序权限数据
export
const
APPLETS_PERMISSION_IDENTIFIER
=
'
applets
'
;
export
const
APPLETS_PERMISSION_IDENTIFIER
=
'
applets
'
;
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