Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
2ee5579c
Commit
2ee5579c
authored
Nov 12, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信统计
parent
b8684593
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
index.vue
src/components/weChatStatistics/index.vue
+4
-4
api.js
src/service/api.js
+5
-0
No files found.
src/components/weChatStatistics/index.vue
View file @
2ee5579c
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
getW
atch
ListApi
}
from
"../../service/api"
;
import
{
getW
echatStatistic
ListApi
}
from
"../../service/api"
;
export
default
{
export
default
{
name
:
"index"
,
name
:
"index"
,
data
(){
data
(){
...
@@ -69,10 +69,10 @@
...
@@ -69,10 +69,10 @@
let
json
=
{
let
json
=
{
};
};
if
(
this
.
searchFrom
.
watchTime
&&
this
.
searchFrom
.
watchTime
.
length
>
0
){
if
(
this
.
searchFrom
.
watchTime
&&
this
.
searchFrom
.
watchTime
.
length
>
0
){
json
.
start_a
t
=
this
.
searchFrom
.
watchTime
[
0
]
json
.
date_star
t
=
this
.
searchFrom
.
watchTime
[
0
]
json
.
end_at
=
this
.
searchFrom
.
watchTime
[
1
]
json
.
date_end
=
this
.
searchFrom
.
watchTime
[
1
]
}
}
getW
atch
ListApi
(
json
).
then
((
res
)
=>
{
getW
echatStatistic
ListApi
(
json
).
then
((
res
)
=>
{
this
.
tableHead
=
res
[
0
]
this
.
tableHead
=
res
[
0
]
this
.
tableData
=
res
.
slice
(
1
);
this
.
tableData
=
res
.
slice
(
1
);
})
})
...
...
src/service/api.js
View file @
2ee5579c
...
@@ -620,3 +620,8 @@ const bannerChangeStatusUrl = `/api/admin/banner/status/`;
...
@@ -620,3 +620,8 @@ const bannerChangeStatusUrl = `/api/admin/banner/status/`;
export
const
bannerChangeStatusApi
=
function
(
id
,
json
)
{
export
const
bannerChangeStatusApi
=
function
(
id
,
json
)
{
return
Vue
.
prototype
.
$put
(
`
${
bannerChangeStatusUrl
}${
id
}
`
,
json
)
return
Vue
.
prototype
.
$put
(
`
${
bannerChangeStatusUrl
}${
id
}
`
,
json
)
};
};
// 微信用户数据分析
const
getWechatStatisticListUrl
=
'/api/admin/wechat/statistics'
;
export
const
getWechatStatisticListApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
getWechatStatisticListUrl
,
json
)
};
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