Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
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
front-end-dev
techbook
Commits
fde6ce84
Commit
fde6ce84
authored
Sep 15, 2019
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
左侧换成动态的数据统计
parent
20aabb09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
PageLeft.vue
src/components/index/PageLeft.vue
+25
-4
No files found.
src/components/index/PageLeft.vue
View file @
fde6ce84
...
...
@@ -27,8 +27,8 @@
<el-menu-item
:index=
"item.functionUrl"
v-for=
"(item,busInd) in businessList"
v-if=
"!item.systemFunctionlist"
>
<i
class=
"iconfont"
:class=
"'icon-'+item.functionIcon"
></i>
<span>
{{
item
.
functionName
}}
</span>
<span
class=
"nav-count"
v-if=
"busInd==0"
>
12
</span>
<span
class=
"nav-count"
v-if=
"busInd==1"
>
1212
</span>
<span
class=
"nav-count"
v-if=
"busInd==0"
>
{{
countData
.
projectCount
}}
</span>
<span
class=
"nav-count"
v-if=
"busInd==1"
>
{{
countData
.
businessCount
}}
</span>
</el-menu-item>
<el-submenu
:index=
"item.functionUrl"
v-for=
"(item,busInd) in businessList"
...
...
@@ -72,7 +72,13 @@
businessList
:
[],
currentMenuIndex
:
[
1
],
currentIndex
:
'1'
,
isPosition
:
true
isPosition
:
true
,
countData
:{
projectCount
:
0
,
requirementCount
:
0
,
businessCount
:
0
,
matchedCount
:
0
},
});
},
methods
:
{
...
...
@@ -110,10 +116,25 @@
handleToGW
(){
window
.
open
(
"http://techcode.com"
);
}
},
//获取统计数据
getCountData
(){
let
that
=
this
;
api
.
getCountAxios
().
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
that
.
countData
=
res
.
result
;
}
else
{
that
.
$message
.
error
(
res
.
msg
);
}
}).
catch
((
err
)
=>
{
that
.
$message
.
error
(
err
)
})
},
},
mounted
()
{
this
.
getInitData
();
this
.
getCountData
();
},
};
</
script
>
...
...
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