Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
Project
Overview
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
姜雷
dcxy-manage-shell
Commits
4b0525f7
Commit
4b0525f7
authored
May 05, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
Develop See merge request
!51
parents
1a74a09d
7290b389
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
15 deletions
+25
-15
.env
.env
+1
-0
CampusRankChart.vue
src/containers/Dashboard/CampusRank/CampusRankChart.vue
+1
-1
chart.vue
src/containers/Dashboard/CustomerConsumption/chart.vue
+0
-9
SeviceRatioChart.vue
src/containers/Dashboard/SeviceRatio/SeviceRatioChart.vue
+2
-1
IconMenu.vue
src/containers/layout/IconMenu/IconMenu.vue
+17
-0
index.js
src/utils/index.js
+4
-4
No files found.
.env
View file @
4b0525f7
...
...
@@ -6,6 +6,7 @@ VUE_APP_SYSTEM_MENU_CODE=0003
VUE_APP_STATISTICS_MENU_CODE=0044
VUE_APP_DEVICE_MENU_CODE=0048
VUE_APP_DASHBOARD_CODE=0079
VUE_APP_CUSTOMER_OPERATE_CODE=0077
VUE_APP_WHITE_LIST=/login,/404,/401
VUE_APP_LIB_MANAGER=http://ex-dev-dcxy-static.168cad.top
VUE_APP_SYSTEM_SERVER_URL=http://ex-dev-dcxy-system-manage.168cad.top
...
...
src/containers/Dashboard/CampusRank/CampusRankChart.vue
View file @
4b0525f7
...
...
@@ -73,7 +73,7 @@ export default {
style="display:inline-block;margin-right:10px;background-color:
${
color
}
;"
></i>
<span class="g2-legend-text" title="
${
value
}
">
${
value
}
: </span>
<span class="g2-legend-price">
${
obj
.
count
.
toFixed
(
2
)
}
</span>
<span class="g2-legend-price">
${
price
}
</span>
</li>
`
;
},
...
...
src/containers/Dashboard/CustomerConsumption/chart.vue
View file @
4b0525f7
...
...
@@ -48,15 +48,6 @@ export default {
offset
:
10
,
});
let
money
=
this
.
consumeCount
&&
this
.
consumeCount
.
payableMoney
?
this
.
consumeCount
.
payableMoney
:
'0.00'
;
let
menCount
=
this
.
consumeCount
&&
this
.
consumeCount
.
payMen
?
this
.
consumeCount
.
payMen
:
'0'
;
this
.
chart
.
render
();
this
.
chart
.
guide
().
text
({
top
:
true
,
...
...
src/containers/Dashboard/SeviceRatio/SeviceRatioChart.vue
View file @
4b0525f7
...
...
@@ -55,6 +55,7 @@ export default {
itemTpl
:
(
value
,
color
,
checked
,
index
)
=>
{
const
obj
=
this
.
data
[
index
];
checked
=
checked
?
'checked'
:
'unChecked'
;
let
price
=
this
.
$formatPrice
(
obj
.
count
);
return
`
<li
class="g2-legend-list-item item-
${
index
}
${
checked
}
"
...
...
@@ -67,7 +68,7 @@ export default {
style="display:inline-block;margin-right:10px;background-color:
${
color
}
;"
></i>
<span class="g2-legend-text">
${
value
}
: </span>
<span class="g2-legend-price">
${
obj
.
count
.
toFixed
(
2
)
}
</span>
<span class="g2-legend-price">
${
price
}
</span>
</li>
`
;
},
...
...
src/containers/layout/IconMenu/IconMenu.vue
View file @
4b0525f7
...
...
@@ -74,6 +74,17 @@
src=
"@/assets/images/layout/icon_shebei.png"
/>
</MenuItem>
<MenuItem
v-if=
"customerOperate && customerOperate.length"
menuName=
"运营管理"
:menuList=
"customerOperate[0].children"
:selectRouteMenu=
"selectRouteMenu"
>
<img
slot=
"icon"
src=
"@/assets/images/layout/icon_yunying.png"
/>
</MenuItem>
<div
@
click=
"() => toggleFastLink(false)"
>
<MenuItem
menuName=
"全业态"
>
<img
...
...
@@ -181,6 +192,12 @@ export default {
);
return
item
?
formatRouteLink
([
item
])
:
null
;
},
customerOperate
()
{
let
item
=
this
.
routers
.
find
(
menu
=>
menu
.
menuCode
===
process
.
env
.
VUE_APP_CUSTOMER_OPERATE_CODE
);
return
item
?
formatRouteLink
([
item
])
:
null
;
},
// collectRouteList() {
// let list = this.collectList.map(item => {
// let id = item.menuId;
...
...
src/utils/index.js
View file @
4b0525f7
...
...
@@ -21,8 +21,7 @@ export function parseTime(time, cFormat) {
};
const
time_str
=
format
.
replace
(
/{
(
y|m|d|h|i|s|a
)
+}/g
,
(
result
,
key
)
=>
{
let
value
=
formatObj
[
key
];
if
(
key
===
'a'
)
return
[
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
,
'日'
][
value
-
1
];
if
(
key
===
'a'
)
return
[
'日'
,
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
][
value
];
if
(
result
.
length
>
0
&&
value
<
10
)
{
value
=
'0'
+
value
;
}
...
...
@@ -358,8 +357,9 @@ export const formatterMoneyToDouble = val => {
export
const
formatPrice
=
price
=>
{
var
result
=
[],
counter
=
0
;
price
=
(
price
||
0
).
toString
().
split
(
''
);
for
(
var
i
=
price
.
length
-
1
;
i
>=
0
;
i
--
)
{
price
=
(
price
||
0
).
toFixed
(
2
).
split
(
''
);
result
.
push
(
price
.
slice
(
-
3
).
join
(
''
));
for
(
var
i
=
price
.
length
-
4
;
i
>=
0
;
i
--
)
{
counter
++
;
result
.
unshift
(
price
[
i
]);
if
(
!
(
counter
%
3
)
&&
i
!=
0
)
{
...
...
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