Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
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
wuhao
ems3.3
Commits
ad46a806
Commit
ad46a806
authored
Dec 15, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9543de12
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
9 deletions
+23
-9
index.jsx
src/components/SiderMenu/index.jsx
+1
-0
index.jsx
src/pages/device/account/index.jsx
+3
-3
columns.js
src/pages/setting/users/columns.js
+3
-1
index.jsx
src/pages/setting/users/index.jsx
+13
-2
login.js
src/services/login.js
+3
-3
No files found.
src/components/SiderMenu/index.jsx
View file @
ad46a806
...
...
@@ -218,6 +218,7 @@ function SiderMenu({ logo, collapsed, onCollapse, fixSiderbar, theme, isMobile,
selectedKeys=
{
[
location
.
pathname
]
}
collapsed=
{
collapsed
.
toString
()
}
onClick=
{
async
({
item
,
key
,
keyPath
,
domEvent
})
=>
{
console
.
log
(
'key'
,
key
,
item
.
key
);
if
(
key
==
'0'
)
{
changealive
(
!
alive
);
return
;
...
...
src/pages/device/account/index.jsx
View file @
ad46a806
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-15
09:49:39
* @Last Modified time: 2022-12-15
18:38:16
*/
import
*
as
React
from
'react'
;
...
...
@@ -1434,7 +1434,7 @@ function Model(props) {
{
title
:
'上传文件(上限为5个)'
,
key
:
'urlIds '
,
valueType
:
'upload
Dragger
'
,
valueType
:
'upload
Image
'
,
// colProps: { span: 24 },
fieldProps
:
{
limit
:
5
,
...
...
@@ -1467,7 +1467,7 @@ function Model(props) {
{
title
:
'上传文件(上限为5个)'
,
key
:
'urlIds '
,
valueType
:
'upload
Dragger
'
,
valueType
:
'upload
Image
'
,
formItemProps
:
{
rules
:
[
{
...
...
src/pages/setting/users/columns.js
View file @
ad46a806
...
...
@@ -2,7 +2,7 @@ import { doFetch } from '@/utils/doFetch';
import
{
Image
}
from
'antd'
;
import
fieldsDetail
from
'@/utils/fieldsDetail'
;
import
{
useState
,
useEffect
}
from
'react'
;
function
getcolumns
(
setdrawer
)
{
function
getcolumns
(
setdrawer
,
options
)
{
return
[
{
title
:
'用户名'
,
...
...
@@ -10,6 +10,8 @@ function getcolumns(setdrawer) {
width
:
120
,
key
:
'username'
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
options
,
},
{
title
:
'姓名'
,
...
...
src/pages/setting/users/index.jsx
View file @
ad46a806
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-15 1
7:19:25
* @Last Modified time: 2022-12-15 1
8:06:50
*/
import
*
as
React
from
'react'
;
...
...
@@ -16,6 +16,7 @@ import { doFetch } from '@/utils/doFetch';
import
{
message
,
AutoComplete
}
from
'antd'
;
import
ExtendField
from
'@/components/ExtendField'
;
import
{
useModel
}
from
'umi'
;
import
{
useRequest
}
from
'ahooks'
;
function
User
(
props
)
{
const
{
initialState
,
loading
,
error
,
refresh
,
setInitialState
}
=
useModel
(
'@@initialState'
);
...
...
@@ -139,8 +140,18 @@ function User(props) {
);
};
const
[
username
,
setusername
]
=
useState
(
null
);
const
{
data
}
=
useRequest
(
async
()
=>
{
let
res
=
await
doFetch
({
url
:
'/auth/sysUser/queryLikeIotUsername'
,
params
:
{
username
:
''
},
});
return
res
?.
data
?.
dataList
;
});
const
columns
=
useMemo
(()
=>
{
let
defcolumn
=
getcolumns
(
setDrawer
);
let
defcolumn
=
getcolumns
(
setDrawer
,
data
);
return
defcolumn
.
concat
({
title
:
'操作'
,
valueType
:
'option'
,
...
...
src/services/login.js
View file @
ad46a806
...
...
@@ -42,7 +42,7 @@ export function getMenu(params) {
/*---------------菜单收藏-------------------*/
export
function
collectPerms
(
params
)
{
return
request
(
`/
ngic-
auth/sysUserPermission/collectPerm`
,
{
return
request
(
`/
emspro/
auth/sysUserPermission/collectPerm`
,
{
method
:
'POST'
,
data
:
params
,
});
...
...
@@ -50,14 +50,14 @@ export function collectPerms(params) {
/*---------------取消菜单收藏-------------------*/
export
function
cancelCollectPerms
(
params
)
{
return
request
(
`/
ngic-
auth/sysUserPermission/cancelCollectPerm`
,
{
return
request
(
`/
emspro/
auth/sysUserPermission/cancelCollectPerm`
,
{
method
:
'POST'
,
data
:
params
,
});
}
/*---------------菜单历史记录-------------------*/
export
function
mtosave
(
params
)
{
return
request
(
`/
ngic-
auth/sysUserVisitPermission/save`
,
{
return
request
(
`/
emspro/
auth/sysUserVisitPermission/save`
,
{
method
:
'POST'
,
data
:
params
,
});
...
...
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