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
caf9d76d
Commit
caf9d76d
authored
Dec 16, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b78a0951
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
21 deletions
+36
-21
app.jsx
src/app.jsx
+3
-3
global.less
src/global.less
+27
-14
index.jsx
src/pages/device/account/index.jsx
+5
-3
system.js
src/services/system.js
+1
-1
No files found.
src/app.jsx
View file @
caf9d76d
...
...
@@ -32,7 +32,7 @@ export async function getInitialState() {
const
msg
=
await
queryCurrentUser
();
return
msg
.
data
;
}
catch
(
error
)
{
history
.
push
(
loginPath
);
//
history.push(loginPath);
}
return
undefined
;
};
// 如果是登录页面,不执行
...
...
@@ -74,7 +74,7 @@ export async function getInitialState() {
// ProLayout 支持的api https://procomponents.ant.design/components/layout
export
const
layout
=
({
initialState
,
setInitialState
})
=>
{
let
token
=
localStorage
.
getItem
(
'TOKENES'
);
console
.
log
(
initialState
,
history
);
return
{
disableContentMargin
:
false
,
waterMarkProps
:
{
...
...
@@ -89,7 +89,7 @@ export const layout = ({ initialState, setInitialState }) => {
const
{
location
}
=
history
;
// 如果没有登录,重定向到 login
if
(
!
initialState
?.
currentUser
&&
location
.
pathname
!==
loginPath
)
{
history
.
push
(
loginPath
);
//
history.push(loginPath);
}
},
links
:
isDev
...
...
src/global.less
View file @
caf9d76d
...
...
@@ -58,13 +58,14 @@ ol {
width: 100%;
overflow-x: auto;
&-thead > tr,
&-tbody > tr {
> th,
> td {
&-thead>tr,
&-tbody>tr {
>th,
>td {
white-space: pre;
>
span {
>span {
display: block;
}
}
...
...
@@ -312,7 +313,7 @@ ol {
}
.lightblue {
>
td:first-child {
>td:first-child {
position: relative;
&::before {
...
...
@@ -334,14 +335,14 @@ ol {
width: 100%;
padding-left: 0 !important;
>
span:first-child {
>span:first-child {
flex: 1;
>
span:first-child {
>span:first-child {
display: none !important;
}
>
.ant-spin-nested-loading {
>.ant-spin-nested-loading {
width: 100%;
}
}
...
...
@@ -395,7 +396,7 @@ ol {
}
.runtime-keep-alive-layout {
>
div {
>div {
height: 100% !important;
}
}
...
...
@@ -442,25 +443,37 @@ ol {
height: auto !important;
min-height: 100% !important;
overflow: hidden !important;
> div {
>div {
height: 100%;
min-height: calc(100vh - 96px);
> div {
>div {
height: 100%;
}
}
.ant-drawer-content {
height: 100% !important;
}
}
// 横向滚动条
.scrollHoriz {
>
div {
>div {
display: flex !important;
flex-wrap: nowrap !important;
align-items: center !important;
> div {
>div {
flex-shrink: 0 !important;
}
}
}
.runtime-keep-alive-layout {
.ant-layout-sider-children {
padding-left: 16px;
padding-right: 16px;
}
}
\ No newline at end of file
src/pages/device/account/index.jsx
View file @
caf9d76d
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-1
5 19:13:39
* @Last Modified time: 2022-12-1
6 09:28:06
*/
import
*
as
React
from
'react'
;
...
...
@@ -1451,10 +1451,11 @@ function Model(props) {
{
title
:
'上传文件(上限为5个)'
,
key
:
'urlIds '
,
valueType
:
'
uploadImage
'
,
valueType
:
'
UploadDragger
'
,
// colProps: { span: 24 },
fieldProps
:
{
limit
:
5
,
name
:
'file'
,
},
formItemProps
:
{
rules
:
[
...
...
@@ -1484,7 +1485,7 @@ function Model(props) {
{
title
:
'上传文件(上限为5个)'
,
key
:
'urlIds '
,
valueType
:
'
uploadImage
'
,
valueType
:
'
UploadDragger
'
,
formItemProps
:
{
rules
:
[
{
...
...
@@ -1494,6 +1495,7 @@ function Model(props) {
],
},
fieldProps
:
{
name
:
'file'
,
limit
:
5
,
},
},
...
...
src/services/system.js
View file @
caf9d76d
...
...
@@ -88,7 +88,7 @@ export async function sectionSelectByShops(params) {
}
//授权前查询权限树
export
async
function
roleTree
(
params
)
{
return
request
(
`/auth/sysRolePermission/queryAll`
,
{
return
request
(
`
emspro
/auth/sysRolePermission/queryAll`
,
{
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