Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Muse
Project
Project
Details
Activity
Releases
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
罗超
Muse
Commits
f79bf45f
Commit
f79bf45f
authored
Nov 06, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
83d0cd9e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
283 additions
and
145 deletions
+283
-145
dataLook.vue
src/components/viitto/dataLook.vue
+14
-5
lineChart.vue
src/components/viitto/lineChart.vue
+133
-68
lineChart2.vue
src/components/viitto/lineChart2.vue
+136
-72
No files found.
src/components/viitto/dataLook.vue
View file @
f79bf45f
...
...
@@ -586,9 +586,9 @@
</el-col>
</el-row>
<el-row>
<lineChart
v-if=
"chartShow && RB_Branch_id !== 0
"
:zoom=
"zoom"
:inquireList=
"inquireList"
:preferpriceList=
"preferpriceList"
:guestnumList=
"guestnumList"
:clickcountList=
"clickcountList"
:ordercountList=
"ordercountList"
:unitpriceList=
"unitpriceList"
:day_total_guestprice=
"day_total_guestprice"
:dateList=
"dateList
"
/>
<lineChart2
v-if=
"chartShow && RB_Branch_id === 0
"
:zoom=
"zoom"
:inquireList=
"inquireList"
:preferpriceList=
"preferpriceList"
:guestnumList=
"guestnumList"
:clickcountList=
"clickcountList"
:ordercountList=
"ordercountList"
:unitpriceList=
"unitpriceList"
:day_total_guestprice=
"day_total_guestprice"
:dateList=
"dateList
"
/>
<
!--
<lineChart2
v-if=
"chartShow"
:zoom=
"zoom"
:inquireList=
"inquireList"
:preferpriceList=
"preferpriceList"
:guestnumList=
"guestnumList"
:clickcountList=
"clickcountList"
:ordercountList=
"ordercountList"
:unitpriceList=
"unitpriceList"
:day_total_guestprice=
"day_total_guestprice"
:dateList=
"dateList"
/>
--
>
<lineChart
v-if=
"chartShow && RB_Branch_id !== 0
&& ChunData"
:zoom=
"zoom"
:inquireList=
"inquireList"
:preferpriceList=
"preferpriceList"
:guestnumList=
"guestnumList"
:clickcountList=
"clickcountList"
:ordercountList=
"ordercountList"
:unitpriceList=
"unitpriceList"
:day_total_guestprice=
"day_total_guestprice"
:dateList=
"dateList"
:ChunData=
"ChunData
"
/>
<lineChart2
v-if=
"chartShow && RB_Branch_id === 0
&& ChunData"
:zoom=
"zoom"
:inquireList=
"inquireList"
:preferpriceList=
"preferpriceList"
:guestnumList=
"guestnumList"
:clickcountList=
"clickcountList"
:ordercountList=
"ordercountList"
:unitpriceList=
"unitpriceList"
:day_total_guestprice=
"day_total_guestprice"
:dateList=
"dateList"
:ChunData=
"ChunData
"
/>
<
lineChart2
v-if=
"chartShow && ChunData"
:zoom=
"zoom"
:inquireList=
"inquireList"
:preferpriceList=
"preferpriceList"
:guestnumList=
"guestnumList"
:clickcountList=
"clickcountList"
:ordercountList=
"ordercountList"
:unitpriceList=
"unitpriceList"
:day_total_guestprice=
"day_total_guestprice"
:dateList=
"dateList"
:ChunData=
"ChunData"
/
>
</el-row>
</div>
...
...
@@ -645,7 +645,8 @@ export default {
Status
:
0
,
},
companyList
:
[],
RB_Branch_id
:
null
RB_Branch_id
:
null
,
ChunData
:
[],
}
},
watch
:
{
...
...
@@ -726,6 +727,7 @@ export default {
this
.
chartShow2
=
false
;
let
url
=
'http://47.96.23.199:5001/api/order/get_single_data'
let
url2
=
"http://47.96.23.199:5001/api/order/get_single_data_v2"
let
url3
=
"http://47.96.23.199:5001/api/order/future_day"
let
msg
=
{
startdate
:
this
.
StartTime
,
lineid
:
this
.
prolineId
,
...
...
@@ -734,7 +736,14 @@ export default {
}
this
.
getOutherData
(
url
,
msg
)
this
.
getKdata
(
url2
,
msg
)
this
.
getChunData
(
url3
,
msg
)
},
getChunData
:
function
(
url
,
msg
){
this
.
apiRequest
(
url
,{
msg
:
msg
},
r
=>
{
if
(
r
.
data
.
resultCode
==
1
){
this
.
ChunData
=
r
.
data
.
data
.
k_unitprice
}
})
},
getOutherData
:
function
(
url
,
msg
){
this
.
apiRequest
(
url
,{
msg
:
msg
},
r
=>
{
...
...
src/components/viitto/lineChart.vue
View file @
f79bf45f
This diff is collapsed.
Click to expand it.
src/components/viitto/lineChart2.vue
View file @
f79bf45f
This diff is collapsed.
Click to expand it.
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