Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
fhjw-vue
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
mengmeng
fhjw-vue
Commits
821800af
Commit
821800af
authored
Aug 11, 2021
by
feiwenli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页数轴
parent
0ffbf084
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
18 deletions
+20
-18
index.html
public/index.html
+1
-1
home.vue
src/views/modules/home.vue
+19
-17
No files found.
public/index.html
View file @
821800af
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
window
.
SITE_CONFIG
[
'version'
]
=
'v1.0.0'
;
window
.
SITE_CONFIG
[
'version'
]
=
'v1.0.0'
;
window
.
SITE_CONFIG
[
'nodeEnv'
]
=
'<%= process.env.VUE_APP_NODE_ENV %>'
;
window
.
SITE_CONFIG
[
'nodeEnv'
]
=
'<%= process.env.VUE_APP_NODE_ENV %>'
;
window
.
SITE_CONFIG
[
'apiURL'
]
=
'http://10.55.125.88:8080/hmit-admin'
;
window
.
SITE_CONFIG
[
'apiURL'
]
=
'http://10.55.125.88:8080/hmit-admin'
;
//
window.SITE_CONFIG['apiURL'] = 'http://119.3.50.187:8011/hmit-admin';
//window.SITE_CONFIG['apiURL'] = 'http://119.3.50.187:8011/hmit-admin';
//window.SITE_CONFIG['apiURL'] = 'http://192.168.10.67:8080/hmit-admin'; // api请求地址
//window.SITE_CONFIG['apiURL'] = 'http://192.168.10.67:8080/hmit-admin'; // api请求地址
window
.
SITE_CONFIG
[
'storeState'
]
=
{};
// vuex本地储存初始化状态(用于不刷新页面的情况下,也能重置初始化项目中所有状态)
window
.
SITE_CONFIG
[
'storeState'
]
=
{};
// vuex本地储存初始化状态(用于不刷新页面的情况下,也能重置初始化项目中所有状态)
window
.
SITE_CONFIG
[
'contentTabDefault'
]
=
{
// 内容标签页默认属性对象
window
.
SITE_CONFIG
[
'contentTabDefault'
]
=
{
// 内容标签页默认属性对象
...
...
src/views/modules/home.vue
View file @
821800af
...
@@ -521,20 +521,22 @@ export default {
...
@@ -521,20 +521,22 @@ export default {
let
badpercentData
=
[];
let
badpercentData
=
[];
console
.
log
(
"ooopppp"
,
xAxisData
,
goodnumData
,
middlenumData
,
badnumData
);
console
.
log
(
"ooopppp"
,
xAxisData
,
goodnumData
,
middlenumData
,
badnumData
);
this
.
listByMonth
.
forEach
((
ele
)
=>
{
this
.
listByMonth
.
forEach
((
ele
)
=>
{
xAxisData
=
xAxisData
.
concat
(
ele
.
createDate
)
.
reverse
()
;
xAxisData
=
xAxisData
.
concat
(
ele
.
createDate
);
goodnumData
=
goodnumData
.
concat
(
ele
.
good
)
.
reverse
()
;
goodnumData
=
goodnumData
.
concat
(
ele
.
good
);
middlenumData
=
middlenumData
.
concat
(
ele
.
medium
)
.
reverse
()
;
middlenumData
=
middlenumData
.
concat
(
ele
.
medium
);
badnumData
=
badnumData
.
concat
(
ele
.
badnum
)
.
reverse
()
;
badnumData
=
badnumData
.
concat
(
ele
.
badnum
);
let
totle
=
ele
.
medium
+
ele
.
good
+
ele
.
bad
;
let
totle
=
ele
.
medium
+
ele
.
good
+
ele
.
bad
;
goodpercentData
=
goodpercentData
goodpercentData
=
goodpercentData
.
concat
(
.
concat
(((
ele
.
good
/
totle
)
*
100
).
toFixed
(
1
))
((
ele
.
good
/
totle
)
*
100
).
toFixed
(
1
)
.
reverse
();
);
middlepercentData
=
middlepercentData
.
concat
(((
ele
.
medium
/
totle
)
*
100
).
toFixed
(
1
))
middlepercentData
=
middlepercentData
.
concat
(
.
reverse
();
((
ele
.
medium
/
totle
)
*
100
).
toFixed
(
1
)
badpercentData
=
badpercentData
);
.
concat
(((
ele
.
bad
/
totle
)
*
100
).
toFixed
(
1
))
.
reverse
();
badpercentData
=
badpercentData
.
concat
(
((
ele
.
bad
/
totle
)
*
100
).
toFixed
(
1
)
);
});
});
console
.
log
(
"dddddd"
,
xAxisData
,
goodnumData
,
middlenumData
,
badnumData
);
console
.
log
(
"dddddd"
,
xAxisData
,
goodnumData
,
middlenumData
,
badnumData
);
this
.
optionHandlingSituationZhe
=
{
this
.
optionHandlingSituationZhe
=
{
...
@@ -683,10 +685,10 @@ export default {
...
@@ -683,10 +685,10 @@ export default {
badData = badData.push(ele.bad).reverse();
badData = badData.push(ele.bad).reverse();
}); */
}); */
this
.
listByMonth
.
forEach
((
ele
)
=>
{
this
.
listByMonth
.
forEach
((
ele
)
=>
{
legendData
=
legendData
.
concat
(
ele
.
createDate
)
.
reverse
()
;
legendData
=
legendData
.
concat
(
ele
.
createDate
);
goodData
=
goodData
.
concat
(
ele
.
good
)
.
reverse
()
;
goodData
=
goodData
.
concat
(
ele
.
good
);
middleData
=
middleData
.
concat
(
ele
.
medium
)
.
reverse
()
;
middleData
=
middleData
.
concat
(
ele
.
medium
);
badData
=
badData
.
concat
(
ele
.
bad
)
.
reverse
()
;
badData
=
badData
.
concat
(
ele
.
bad
);
});
});
console
.
log
(
"么么么么么"
,
badData
);
console
.
log
(
"么么么么么"
,
badData
);
this
.
optionHandlingSituationZhu
=
{
this
.
optionHandlingSituationZhu
=
{
...
...
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