Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bill-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
bill-manager-ui
Commits
d1924a90
Commit
d1924a90
authored
Dec 03, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化版心宽度
parent
738d7415
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
admin_2/src/layouts/Layouts.vue
admin_2/src/layouts/Layouts.vue
+14
-14
No files found.
admin_2/src/layouts/Layouts.vue
View file @
d1924a90
...
...
@@ -7,8 +7,8 @@
'flex-1',
'overflow-auto',
{
'not-home': $route.path != '/home'
,
}
,
'not-home': $route.path != '/home'
}
]"
>
<keep-alive>
...
...
@@ -22,17 +22,17 @@
</
template
>
<
script
>
import
{
mapMutations
,
mapActions
}
from
"
vuex
"
;
import
Header
from
"
./components/Header.vue
"
;
import
{
getSiteTree
}
from
"
@/api/site
"
;
import
storage
from
"
@/utils/storage
"
;
import
{
mapMutations
,
mapActions
}
from
'
vuex
'
;
import
Header
from
'
./components/Header.vue
'
;
import
{
getSiteTree
}
from
'
@/api/site
'
;
import
storage
from
'
@/utils/storage
'
;
export
default
{
components
:
{
Header
,
Header
},
data
()
{
return
{
siteId
:
storage
.
get
(
2
,
"
siteId
"
),
siteId
:
storage
.
get
(
2
,
'
siteId
'
)
};
},
created
()
{
...
...
@@ -42,25 +42,25 @@ export default {
this
.
getWindowList
(
this
.
siteId
);
},
methods
:
{
...
mapMutations
(
"
user
"
,
[
"
SET_areaTree
"
]),
...
mapActions
(
"
user
"
,
[
"
getBusiness
"
,
"
getDeptList
"
,
"
getWindowList
"
]),
...
mapMutations
(
'
user
'
,
[
'
SET_areaTree
'
]),
...
mapActions
(
'
user
'
,
[
'
getBusiness
'
,
'
getDeptList
'
,
'
getWindowList
'
]),
// 获取个人站点树
async
getSiteTree
()
{
let
res
=
await
getSiteTree
({
page
:
1
,
size
:
-
1
,
size
:
-
1
});
if
(
res
.
data
.
code
==
1
)
{
let
{
siteTree
}
=
res
.
data
.
data
;
this
.
SET_areaTree
(
siteTree
);
}
}
,
}
,
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.not-home {
padding: 24px
50px
;
padding: 24px;
}
</
style
>
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