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 49839cc1
authored
Aug 21, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接口联调
1 parent
1aba63b2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
41 deletions
src/mixins/userMixin.js
src/views/operational/components/Business.vue
src/views/operational/components/UserTab.vue
src/mixins/userMixin.js
View file @
49839cc
...
@@ -17,7 +17,7 @@ export default {
...
@@ -17,7 +17,7 @@ export default {
methods
:
{
methods
:
{
getDistribution
()
{
getDistribution
()
{
this
.
api
.
user
.
getDistribution
().
then
(
res
=>
{
this
.
api
.
operational
.
getDistribution
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
res
.
data
.
dataList
.
forEach
(
item
=>
{
res
.
data
.
dataList
.
forEach
(
item
=>
{
if
(
item
.
queryitem
==
'年龄'
)
this
.
ageData
=
item
.
distribution
if
(
item
.
queryitem
==
'年龄'
)
this
.
ageData
=
item
.
distribution
...
...
src/views/operational/components/Business.vue
View file @
49839cc
...
@@ -67,12 +67,11 @@ export default {
...
@@ -67,12 +67,11 @@ export default {
},
},
getSaasValueaddedTransformationOverview
()
{
getSaasValueaddedTransformationOverview
()
{
this
.
api
.
operational
.
getSaasValueaddedTransformationOverview
().
then
(
res
=>
{
this
.
api
.
operational
.
getSaasValueaddedTransformationOverview
().
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
'0'
)
{
const
_data
=
res
.
data
.
dataList
[
0
]
const
_data
=
res
.
data
.
dataList
[
0
]
this
.
list
.
forEach
(
item
=>
{
this
.
list
.
forEach
(
item
=>
{
item
.
value
=
_data
[
item
.
valueName
]
item
.
value
=
_data
[
item
.
valueName
]
})
})
console
.
log
(
this
.
list
);
this
.
categoryData
=
[
this
.
categoryData
=
[
{
{
name
:
'精品类'
,
name
:
'精品类'
,
...
...
src/views/operational/components/UserTab.vue
View file @
49839cc
...
@@ -57,43 +57,11 @@ const TEXT_VIEW = [
...
@@ -57,43 +57,11 @@ const TEXT_VIEW = [
bottomValue
:
'7,329,2'
bottomValue
:
'7,329,2'
}
}
]
]
// const TEXT_VIEW1 = [
// {
// text: '用户数',
// value: 'totalnum',
// key: 'increnum',
// view: 'total'
// },
// {
// text: '企微客户数',
// value: 'totalwechatnum',
// key: 'increwechatnum',
// view: 'wechat'
// },
// {
// text: '企微群数',
// value: 'totalwechatgroupnum',
// key: 'increwechatgroupnum',
// view: 'wechatgroup'
// },
// {
// text: '小程序',
// value: 'totalappletnum',
// key: 'increappletnum',
// view: 'applet'
// },
// {
// text: '个微客户数',
// value: 'totalsinglewechantnum',
// key: 'incresinglewechantnum',
// view: 'individual'
// }
// ]
export
default
{
export
default
{
name
:
'UserTab'
,
name
:
'UserTab'
,
data
()
{
data
()
{
return
{
return
{
dataList
:
{}
,
dataList
:
TEXT_VIEW
,
userData
:
TEXT_VIEW
,
userData
:
TEXT_VIEW
,
selectIndex
:
0
selectIndex
:
0
}
}
...
@@ -105,19 +73,24 @@ export default {
...
@@ -105,19 +73,24 @@ export default {
methods
:
{
methods
:
{
getoverview
()
{
getoverview
()
{
this
.
api
.
operational
.
getoverview
().
then
(
res
=>
{
this
.
api
.
operational
.
getoverview
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
===
'0'
)
{
this
.
dataList
=
res
.
data
.
dataList
[
0
]
const
_data
=
res
.
data
.
dataList
[
0
]
this
.
dataList
.
forEach
(
item
=>
{
item
.
value
=
_data
[
item
.
valueName
]
item
.
bottomValue
=
_data
[
item
.
bottemName
]
})
}
}
})
})
},
},
getTrend
(
queryItem
,
name
)
{
getTrend
(
queryItem
,
name
)
{
const
selectIndex
=
TEXT_VIEW
.
findIndex
(
item
=>
item
.
text
==
name
)
console
.
log
(
queryItem
,
'======='
);
const
selectIndex
=
TEXT_VIEW
.
findIndex
(
item
=>
item
.
text
===
name
)
if
(
selectIndex
>
2
)
return
if
(
selectIndex
>
2
)
return
this
.
selectIndex
=
selectIndex
this
.
selectIndex
=
selectIndex
const
params
=
{
req
:
{
queryItem
}
}
const
params
=
{
req
:
{
queryItem
}}
this
.
api
.
operational
.
getTrend
(
params
).
then
(
res
=>
{
this
.
api
.
operational
.
getTrend
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
=
'0'
)
{
const
dataList
=
res
.
data
.
dataList
const
dataList
=
res
.
data
.
dataList
const
obj
=
{
const
obj
=
{
dataList
,
dataList
,
...
...
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