Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ff05061e
authored
Sep 12, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化
1 parent
d830f275
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
28 deletions
src/views/internal/components/DigitalMarketingLeft.vue
src/views/internal/components/ViewEdun.vue
src/views/internal/components/DigitalMarketingLeft.vue
View file @
ff05061
...
...
@@ -67,45 +67,86 @@ export default {
},
methods
:
{
// selectVal(val) {
// console.log(val)
// // this.tabShow = false
// switch (val.val) {
// case 'registerNum':
// this.chartShow = true
// this.valueName = 'registerNum'
// this.$refs.trendChartRef.drawBar(this.marketingTrendList)
// break
// case 'activeNum':
// this.chartShow = true
// this.valueName = 'activeNum'
// this.$nextTick(() => {
// this.$refs.trendChartRef.drawBar(this.marketingTrendList)
// })
// break
// case 'output':
// this.valName = 'output'
// this.chartShow = false
// this.tabShow = true
// this.$refs.monthIncomeLineChartRef.drawLine(this.marketingTrendList)
// break
// case 'activityNum':
// this.chartShow = true
// this.valueName = 'activityNum'
// this.$refs.trendChartRef.drawBar(this.marketingCrowdFundingTrendList)
// break
// case 'orderNum':
// this.chartShow = true
// // this.valueName = 'orderNum'
// this.$refs.trendChartRef.drawBar(this.marketingCrowdFundingTrendList)
// break
// case 'avgPrice':
// this.chartShow = true
// this.valueName = 'avgPrice'
// this.$refs.trendChartRef.drawBar(this.marketingCrowdFundingTrendList)
// // this.tabShow = true
// break
// }
// },
selectVal
(
val
)
{
console
.
log
(
val
)
// this.tabShow = false
switch
(
val
.
val
)
{
case
'registerNum'
:
const
actions
=
{
registerNum
:
()
=>
{
this
.
chartShow
=
true
this
.
valueName
=
'registerNum'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingTrendList
)
break
case
'activeNum'
:
},
activeNum
:
()
=>
{
this
.
chartShow
=
true
this
.
valueName
=
'activeNum'
this
.
$nextTick
(()
=>
{
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingTrendList
)
})
break
case
'output'
:
},
output
:
()
=>
{
this
.
valName
=
'output'
this
.
chartShow
=
false
this
.
tabShow
=
true
this
.
$refs
.
monthIncomeLineChartRef
.
drawLine
(
this
.
marketingTrendList
)
break
case
'activityNum'
:
},
activityNum
:
()
=>
{
this
.
chartShow
=
true
this
.
valueName
=
'activityNum'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingCrowdFundingTrendList
)
break
case
'orderNum'
:
},
orderNum
:
()
=>
{
this
.
chartShow
=
true
// this.valueName = 'orderNum'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingCrowdFundingTrendList
)
break
case
'avgPrice'
:
},
avgPrice
:
()
=>
{
this
.
chartShow
=
true
this
.
valueName
=
'avgPrice'
this
.
$refs
.
trendChartRef
.
drawBar
(
this
.
marketingCrowdFundingTrendList
)
// this.tabShow = true
break
}
}
const
action
=
actions
[
val
.
val
]
if
(
action
)
{
action
()
}
},
changeTab
(
val
)
{
...
...
src/views/internal/components/ViewEdun.vue
View file @
ff05061
...
...
@@ -53,17 +53,22 @@ export default {
},
methods
:
{
// changeTab(val) {
// switch (val) {
// case 0:
// this.queryItem = 'brandnum'
// this.getManageESalesAmountRationality('brandnum')
// break
// case 1:
// this.queryItem = 'output'
// this.getManageESalesAmountRationality('output')
// break
// }
// },
changeTab
(
val
)
{
switch
(
val
)
{
case
0
:
this
.
queryItem
=
'brandnum'
this
.
getManageESalesAmountRationality
(
'brandnum'
)
break
case
1
:
this
.
queryItem
=
'output'
this
.
getManageESalesAmountRationality
(
'output'
)
break
}
const
queryItems
=
[
'brandnum'
,
'output'
]
this
.
queryItem
=
queryItems
[
val
]
this
.
getManageESalesAmountRationality
(
this
.
queryItem
)
},
selectPrice
(
val
)
{
console
.
log
(
val
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment