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
0c3adabd
Commit
0c3adabd
authored
2 years ago
by
TZW
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://47.100.234.193:9527/wuhao/ems3.3
parents
7e86fce8
0cc4101a
master
ems_danji
ems_zl
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
20 deletions
+25
-20
app.jsx
src/app.jsx
+8
-3
global.less
src/global.less
+17
-17
No files found.
src/app.jsx
View file @
0c3adabd
...
...
@@ -37,7 +37,6 @@ export async function getInitialState() {
}
return
undefined
;
};
// 如果是登录页面,不执行
const
getmenuData
=
async
()
=>
{
try
{
const
res
=
await
getMenu
();
...
...
@@ -87,11 +86,17 @@ export const layout = ({ initialState, setInitialState }) => {
setInitialState
((
s
)
=>
({
...
s
,
collapsed
:
cols
}));
},
footerRender
:
()
=>
<
Footer
/>,
onPageChange
:
()
=>
{
onPageChange
:
async
()
=>
{
const
{
location
}
=
history
;
// 如果没有登录,重定向到 login
if
(
!
initialState
?.
currentUser
&&
location
.
pathname
!==
loginPath
)
{
// history.push(loginPath);
let
userInfo
=
await
initialState
.
fetchUserInfo
();
let
menuData
=
await
initialState
.
getmenuData
();
setInitialState
((
s
)
=>
({
...
s
,
currentUser
:
userInfo
?.
data
,
newMenu
:
menuData
,
}));
}
},
links
:
isDev
...
...
This diff is collapsed.
Click to expand it.
src/global.less
View file @
0c3adabd
...
...
@@ -58,14 +58,13 @@ 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;
}
}
...
...
@@ -275,6 +274,7 @@ ol {
.table-cell {
display: -webkit-box;
max-width: 230px;
//width: 100%;
overflow: hidden;
font-size: 12px !important;
...
...
@@ -313,7 +313,7 @@ ol {
}
.lightblue {
>td:first-child {
>
td:first-child {
position: relative;
&::before {
...
...
@@ -335,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%;
}
}
...
...
@@ -396,7 +396,7 @@ ol {
}
.runtime-keep-alive-layout {
>div {
>
div {
height: 100% !important;
}
}
...
...
@@ -444,11 +444,11 @@ ol {
min-height: 100% !important;
overflow: hidden !important;
>div {
>
div {
height: 100%;
min-height: calc(100vh - 96px);
>div {
>
div {
height: 100%;
}
}
...
...
@@ -460,12 +460,12 @@ ol {
// 横向滚动条
.scrollHoriz {
>div {
>
div {
display: flex !important;
flex-wrap: nowrap !important;
align-items: center !important;
>div {
>
div {
flex-shrink: 0 !important;
}
}
...
...
@@ -473,7 +473,7 @@ ol {
.runtime-keep-alive-layout {
.ant-layout-sider-children {
padding-left: 16px;
padding-right: 16px;
padding-left: 16px;
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
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