Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WX_h5
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
godwithdh
WX_h5
Commits
7d222bec
Commit
7d222bec
authored
Dec 20, 2019
by
张锡奇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
af1c37cf
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
15 deletions
+25
-15
host.js
src/libs/host.js
+1
-1
main.js
src/main.js
+1
-0
index.vue
src/view/chart/custom/index.vue
+3
-2
index.vue
src/view/chart/income/index.vue
+2
-0
statistics.vue
src/view/chart/sales/statistics.vue
+3
-1
index.vue
src/view/shopVersion/form/empAna/index.vue
+5
-3
employees.js
src/view/shopVersion/form/empAna/mixins/employees.js
+4
-3
orderAmount.js
src/view/shopVersion/form/empAna/mixins/orderAmount.js
+2
-1
receivable.js
src/view/shopVersion/form/empAna/mixins/receivable.js
+4
-4
No files found.
src/libs/host.js
View file @
7d222bec
...
...
@@ -6,7 +6,7 @@ function urlFun(name){
/**
* 门市域名
*/
// sales:`http://192.168.4.
40
:5000`,
// sales:`http://192.168.4.
67
:5000`,
// sales:`http://122.224.36.54:18005`,//测试服务器
sales
:
`https://weixin.huansi.net/apiproxy/huansi/Mall`
,
/**
...
...
src/main.js
View file @
7d222bec
...
...
@@ -64,6 +64,7 @@ FastClick.attach(document.body)
Vue
.
config
.
productionTip
=
false
;
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
console
.
log
(
222
)
if
(
to
.
path
.
indexOf
(
'shopVersion'
)
!=
-
1
&&
to
.
params
.
hasOwnProperty
(
'iProjectId'
)){
store
.
dispatch
(
'setIproject'
,
to
.
params
.
iProjectId
);
}
...
...
src/view/chart/custom/index.vue
View file @
7d222bec
...
...
@@ -106,6 +106,8 @@ export default {
await
this
.
getPbcustomer
();
await
this
.
getPbsales
();
this
.
global
.
$off
(
'searchData'
);
this
.
global
.
$on
(
'searchData'
,
async
()
=>
{
await
this
.
getPbcustomer
();
await
this
.
getPbsales
();
...
...
@@ -189,8 +191,7 @@ export default {
this
.
setChart
(
this
.
myChart2
,
this
.
pbsales
,
'pbsales'
)
},
setChart
(
myChart
,
value
,
id
){
console
.
log
(
myChart
)
let
options
=
{
let
options
=
{
title
:{
subtext
:
"长按查看详情"
,
subtextStyle
:{
...
...
src/view/chart/income/index.vue
View file @
7d222bec
...
...
@@ -108,6 +108,8 @@ export default {
await
this
.
getPayable
();
await
this
.
getReceivepay
();
this
.
global
.
$off
(
'searchData'
);
this
.
global
.
$on
(
'searchData'
,
async
()
=>
{
await
this
.
getPayable
();
await
this
.
getReceivepay
();
...
...
src/view/chart/sales/statistics.vue
View file @
7d222bec
...
...
@@ -169,7 +169,9 @@ export default {
this
.
iProjectId
=
this
.
$route
.
params
.
iProjectId
;
this
.
$store
.
dispatch
(
'setIproject'
,
this
.
iProjectId
);
this
.
searchData
()
this
.
searchData
();
this
.
global
.
$off
(
'searchData'
);
this
.
global
.
$on
(
'searchData'
,()
=>
{
this
.
searchData
()
})
...
...
src/view/shopVersion/form/empAna/index.vue
View file @
7d222bec
...
...
@@ -85,7 +85,7 @@ export default {
data
()
{
return
{
search
:{
dBeginDate
:
Util
.
dateFormat
(
new
Date
(),
'yyyy-
01
-01'
),
dBeginDate
:
Util
.
dateFormat
(
new
Date
(),
'yyyy-
MM
-01'
),
dEndDate
:
Util
.
dateFormat
(
new
Date
(),
'yyyy-MM-dd'
)
},
typeList
:{
time
:
true
},
...
...
@@ -144,8 +144,7 @@ export default {
await
this
.
renderChart3
();
}
})
},
async
activated
(){
window
.
d
=
this
;
this
.
global
.
$off
(
'searchData'
);
//查询条件触发加载
...
...
@@ -176,6 +175,9 @@ export default {
await
this
.
renderChart3
();
}
});
},
async
activated
(){
},
methods
:{
renderResize
()
{
...
...
src/view/shopVersion/form/empAna/mixins/employees.js
View file @
7d222bec
...
...
@@ -72,14 +72,15 @@ export const employees = {
padding
:
[
3
,
5
]
},
onShow
:
function
onShow
(
ev
)
{
console
.
log
(
ev
)
const
items
=
ev
.
items
;
items
[
0
].
name
=
''
;
items
[
0
].
value
=
items
[
0
].
value
+
' 元'
;
}
});
this
.
chart1
.
interval
().
position
(
'sSalesName*nAmount'
).
style
({
radius
:
[
2
,
2
,
0
,
0
]
});
//
this.chart1.interval().position('sSalesName*nAmount').style({
//
radius: [ 2, 2, 0, 0 ]
//
});
// 定义进度条
this
.
chart1
.
scrollBar
({
...
...
src/view/shopVersion/form/empAna/mixins/orderAmount.js
View file @
7d222bec
...
...
@@ -43,9 +43,10 @@ export const orderAmount = {
onShow
:
function
onShow
(
ev
)
{
const
items
=
ev
.
items
;
items
[
0
].
name
=
items
[
0
].
title
;
items
[
0
].
value
=
items
[
0
].
value
+
' 元'
;
ev
.
items
.
splice
(
1
,
1
);
}
});
this
.
chart3
.
line
().
position
(
'sMonth*nAmount'
);
this
.
chart3
.
point
().
position
(
'sMonth*nAmount'
).
style
({
lineWidth
:
1
,
stroke
:
'#fff'
...
...
src/view/shopVersion/form/empAna/mixins/receivable.js
View file @
7d222bec
...
...
@@ -43,14 +43,16 @@ export const receivable = {
onShow
:
function
onShow
(
ev
)
{
const
items
=
ev
.
items
;
items
[
0
].
name
=
items
[
0
].
title
;
items
[
0
].
value
=
items
[
0
].
value
+
' 元'
;
ev
.
items
.
splice
(
1
,
1
);
}
});
this
.
chart2
.
line
().
position
(
'sMonth*nPaydAmount'
);
this
.
chart2
.
line
().
position
(
'sMonth*nPaydAmount'
).
color
(
'#708bf6'
);
this
.
chart2
.
point
().
position
(
'sMonth*nPaydAmount'
).
style
({
lineWidth
:
1
,
stroke
:
'#fff'
});
this
.
chart2
.
interaction
(
'pan'
);
// 定义进度条
this
.
chart2
.
scrollBar
({
...
...
@@ -61,8 +63,6 @@ export const receivable = {
offsetY
:
-
2
}
});
this
.
chart2
.
line
().
position
(
'sMonth*nPaydAmount'
).
color
(
'#708bf6'
);
this
.
chart2
.
render
();
}
}
...
...
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