Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intel_promotion_manage
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
张伯涛
intel_promotion_manage
Commits
8ca45b9a
Commit
8ca45b9a
authored
Jun 17, 2024
by
杨硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接首页统计图接口
parent
795785ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
56 deletions
+62
-56
index.vue
src/views/contentManagement/clickManagement/index.vue
+11
-16
index.vue
src/views/dashboard/index/index.vue
+51
-40
No files found.
src/views/contentManagement/clickManagement/index.vue
View file @
8ca45b9a
...
@@ -1591,23 +1591,18 @@ export default {
...
@@ -1591,23 +1591,18 @@ export default {
// 列表渲染数据
// 列表渲染数据
var
data
=
[]
var
data
=
[]
const
_this
=
this
const
_this
=
this
this
.
tableData
=
[
this
.
tableData
=
[]
{
remarks
:
"111111"
,
edit
:
'0'
}
]
_this
.
fullscreenLoading
=
false
_this
.
fullscreenLoading
=
false
//
cmspriceclickList(this.queryParams).then(res => {
cmspriceclickList
(
this
.
queryParams
).
then
(
res
=>
{
//
_this.total = res.total// 总记录数
_this
.
total
=
res
.
total
// 总记录数
//
res.records.forEach(item => item['edit'] = '0')
res
.
records
.
forEach
(
item
=>
item
[
'edit'
]
=
'0'
)
//
_this.tableData = res.records
_this
.
tableData
=
res
.
records
//
this.tableDataOri = JSON.parse(JSON.stringify(res.records))
this
.
tableDataOri
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
records
))
//
_this.fullscreenLoading = false
_this
.
fullscreenLoading
=
false
//
if (res.records.length === 0) {
if
(
res
.
records
.
length
===
0
)
{
//
_this.tableDataTips = '暂无数据'
_this
.
tableDataTips
=
'暂无数据'
//
}
}
//
})
})
},
},
/** 4.重置时将单位回复正常**/
/** 4.重置时将单位回复正常**/
handleClear
()
{
handleClear
()
{
...
...
src/views/dashboard/index/index.vue
View file @
8ca45b9a
...
@@ -216,7 +216,13 @@ export default {
...
@@ -216,7 +216,13 @@ export default {
company
:
''
,
company
:
''
,
barNameList
:
[],
// 柱状图姓名列表
barNameList
:
[],
// 柱状图姓名列表
barArticle
:
[],
// 柱状图文章数量
barArticle
:
[],
// 柱状图文章数量
barVideo
:
[]
// 柱状图视频数量
barVideo
:
[],
// 柱状图视频数量
pieArticle
:
[],
// 饼状图文章推广次数
pieVideo
:
[],
// 饼状图视频推广次数
promotionArticle
:
[],
// 柱状图文章
promotionArticleNum
:
[],
// 柱状图文章推广次数
promotionVideo
:
[],
// 柱状图视频
promotionVideoNum
:
[]
// 柱状图视频推广次数
}
}
},
},
computed
:
{
computed
:
{
...
@@ -481,6 +487,13 @@ export default {
...
@@ -481,6 +487,13 @@ export default {
pieChart
({
businessId
:
this
.
company
,
type
:
0
}).
then
(
res
=>
{
pieChart
({
businessId
:
this
.
company
,
type
:
0
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
console
.
log
(
'饼状图'
,
res
.
data
)
console
.
log
(
'饼状图'
,
res
.
data
)
}
})
pieChart
({
businessId
:
this
.
company
,
type
:
1
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
console
.
log
(
'饼状图'
,
res
.
data
)
}
})
const
myChartPeopleTextPie
=
echarts
.
init
(
document
.
getElementById
(
'dataCharts_textPieChart'
))
const
myChartPeopleTextPie
=
echarts
.
init
(
document
.
getElementById
(
'dataCharts_textPieChart'
))
const
optionAverage
=
{
const
optionAverage
=
{
tooltip
:
{
tooltip
:
{
...
@@ -520,8 +533,6 @@ export default {
...
@@ -520,8 +533,6 @@ export default {
]
]
}
}
myChartPeopleTextPie
.
setOption
(
optionAverage
)
myChartPeopleTextPie
.
setOption
(
optionAverage
)
}
})
},
},
getPromotionArticle
()
{
getPromotionArticle
()
{
aListOfPromotionAmounts
({
businessId
:
this
.
company
}).
then
(
res
=>
{
aListOfPromotionAmounts
({
businessId
:
this
.
company
}).
then
(
res
=>
{
...
...
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