Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-admin
Overview
Overview
Details
Activity
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
吴迪
gs1-admin
Commits
f1374abd
Commit
f1374abd
authored
Dec 12, 2023
by
Lyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点击量模块添加
parent
a31eea3b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
399 additions
and
1 deletions
+399
-1
totalclicks.vue
src/views/modules/visitsmanage/totalclicks.vue
+112
-0
websiteranking.vue
src/views/modules/visitsmanage/websiteranking.vue
+141
-0
websitetyperanking.vue
src/views/modules/visitsmanage/websitetyperanking.vue
+145
-0
index.js
static/config/index.js
+1
-1
No files found.
src/views/modules/visitsmanage/totalclicks.vue
0 → 100644
View file @
f1374abd
<
template
>
<div
class=
"mod-config mod-list-form"
>
<el-form
:inline=
"true"
@
keyup
.
enter
.
native=
"getDataList()"
label-width=
"60px"
>
<el-form-item
label=
'日期'
prop=
'releaseDate'
>
<el-date-picker
clearable
v-model=
"releaseDate"
size=
"small"
type=
"daterange"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList2()"
type=
"primary"
size=
"small"
>
搜索
</el-button>
</el-form>
<div
class=
"table-list"
v-loading=
"dataListLoading"
>
<el-table
:data=
"dataList"
border
style=
"width: 100%;"
>
<el-table-column
header-align=
"center"
type=
"index"
align=
"center"
width=
"120px"
label=
"序号"
>
</el-table-column>
<el-table-column
header-align=
"center"
prop=
"total"
align=
"center"
label=
"总量"
>
</el-table-column>
</el-table>
<!--
<el-pagination
@
size-change=
"sizeChangeHandle"
@
current-change=
"currentChangeHandle"
:current-page=
"pageIndex"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"pageSize"
:total=
"totalPage"
layout=
"total, sizes, prev, pager, next, jumper"
>
</el-pagination>
-->
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
loadingDownload
:
false
,
releaseDate
:
[],
dataList
:
[],
pageIndex
:
1
,
pageSize
:
10
,
totalPage
:
0
}
},
created
()
{
this
.
getDataList2
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/websitehitcountdetail/getTotalCount'
),
method
:
'post'
,
data
:
this
.
$http
.
adornData
({
'page'
:
this
.
pageIndex
+
''
,
'limit'
:
this
.
pageSize
+
''
,
'createStartTime'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
0
],
'createEndTime'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
1
]
})
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
console
.
log
(
data
)
this
.
dataList
=
[]
this
.
dataList
.
push
({
total
:
data
.
data
})
this
.
totalPage
=
1
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
this
.
dataListLoading
=
false
})
},
// 每页数
sizeChangeHandle
(
val
)
{
this
.
pageSize
=
val
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 当前页
currentChangeHandle
(
val
)
{
this
.
pageIndex
=
val
this
.
getDataList
()
}
}
}
</
script
>
\ No newline at end of file
src/views/modules/visitsmanage/websiteranking.vue
0 → 100644
View file @
f1374abd
<
template
>
<div
class=
"mod-config mod-list-form"
>
<el-form
:inline=
"true"
@
keyup
.
enter
.
native=
"getDataList()"
label-width=
"80px"
>
<el-form-item
label=
'日期'
prop=
'releaseDate'
>
<el-date-picker
clearable
v-model=
"releaseDate"
size=
"small"
type=
"daterange"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
'排序'
prop=
'orderFlag'
>
<el-select
v-model=
"orderFlag"
placeholder=
"请选择排序"
clearable
size=
"small"
>
<el-option
value=
"1"
>
降序
</el-option>
<el-option
value=
"2"
>
升序
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
'ip'
prop=
'ip'
>
<el-input
v-model=
'ip'
placeholder=
'请输入ip'
clearable
size=
"small"
></el-input>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList2()"
type=
"primary"
size=
"small"
>
搜索
</el-button>
</el-form>
<div
class=
"table-list"
v-loading=
"dataListLoading"
>
<el-table
:data=
"dataList"
border
style=
"width: 100%;"
>
<!--
<el-table-column
prop=
"ip"
header-align=
"center"
align=
"center"
width=
"300px"
label=
"ip"
>
</el-table-column>
-->
<el-table-column
prop=
"route"
header-align=
"center"
align=
"center"
label=
"访问路由"
>
</el-table-column>
<el-table-column
prop=
"hitCount"
header-align=
"center"
align=
"center"
label=
"统计数量"
>
</el-table-column>
<!--
<el-table-column
prop=
"createStartTime"
header-align=
"center"
align=
"center"
label=
"开始时间"
>
</el-table-column>
<el-table-column
prop=
"createEndTime"
header-align=
"center"
align=
"center"
label=
"结束时间"
>
</el-table-column>
-->
</el-table>
<el-pagination
@
size-change=
"sizeChangeHandle"
@
current-change=
"currentChangeHandle"
:current-page=
"pageIndex"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"pageSize"
:total=
"totalPage"
layout=
"total, sizes, prev, pager, next, jumper"
>
</el-pagination>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
loadingDownload
:
false
,
releaseDate
:
[],
orderFlag
:
''
,
//1 降序 2 升序,
ip
:
''
,
dataList
:
[],
pageIndex
:
1
,
pageSize
:
10
,
totalPage
:
0
}
},
created
()
{
this
.
getDataList2
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/websitehitcountdetail/list'
),
method
:
'post'
,
data
:
this
.
$http
.
adornData
({
'page'
:
this
.
pageIndex
+
''
,
'limit'
:
this
.
pageSize
+
''
,
'orderFlag'
:
this
.
orderFlag
,
'ip'
:
this
.
ip
,
'createStartTime'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
0
],
'createEndTime'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
1
]
})
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
this
.
dataListLoading
=
false
})
},
// 每页数
sizeChangeHandle
(
val
)
{
this
.
pageSize
=
val
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 当前页
currentChangeHandle
(
val
)
{
this
.
pageIndex
=
val
this
.
getDataList
()
}
}
}
</
script
>
src/views/modules/visitsmanage/websitetyperanking.vue
0 → 100644
View file @
f1374abd
<
template
>
<div
class=
"mod-config mod-list-form"
>
<el-form
:inline=
"true"
@
keyup
.
enter
.
native=
"getDataList()"
label-width=
"80px"
>
<el-form-item
label=
'日期'
prop=
'releaseDate'
>
<el-date-picker
clearable
v-model=
"releaseDate"
size=
"small"
type=
"daterange"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
'排序'
prop=
'orderFlag'
>
<el-select
v-model=
"orderFlag"
placeholder=
"请选择排序"
clearable
size=
"small"
>
<el-option
value=
"1"
>
降序
</el-option>
<el-option
value=
"2"
>
升序
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
'ip'
prop=
'ip'
>
<el-input
v-model=
'ip'
placeholder=
'请输入ip'
clearable
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
'板块路径'
prop=
'route'
>
<el-input
v-model=
'route'
placeholder=
'请输入板块路径'
clearable
size=
"small"
></el-input>
</el-form-item>
<el-button
class=
"seach-btn"
@
click=
"getDataList2()"
type=
"primary"
size=
"small"
>
搜索
</el-button>
</el-form>
<div
class=
"table-list"
v-loading=
"dataListLoading"
>
<el-table
:data=
"dataList"
border
style=
"width: 100%;"
>
<!--
<el-table-column
prop=
"ip"
header-align=
"center"
align=
"center"
width=
"300px"
label=
"ip"
>
</el-table-column>
-->
<el-table-column
prop=
"route"
header-align=
"center"
align=
"center"
label=
"访问路由"
>
</el-table-column>
<el-table-column
prop=
"hitCount"
header-align=
"center"
align=
"center"
label=
"统计数量"
>
</el-table-column>
<!--
<el-table-column
prop=
"createStartTime"
header-align=
"center"
align=
"center"
label=
"开始时间"
>
</el-table-column>
<el-table-column
prop=
"createEndTime"
header-align=
"center"
align=
"center"
label=
"结束时间"
>
</el-table-column>
-->
</el-table>
<el-pagination
@
size-change=
"sizeChangeHandle"
@
current-change=
"currentChangeHandle"
:current-page=
"pageIndex"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"pageSize"
:total=
"totalPage"
layout=
"total, sizes, prev, pager, next, jumper"
>
</el-pagination>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
loadingDownload
:
false
,
releaseDate
:
[],
orderFlag
:
''
,
//1 降序 2 升序,
ip
:
''
,
route
:
''
,
dataList
:
[],
pageIndex
:
1
,
pageSize
:
10
,
totalPage
:
0
}
},
created
()
{
this
.
getDataList2
()
},
methods
:
{
getDataList2
()
{
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 获取数据列表
getDataList
()
{
this
.
dataListLoading
=
true
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/office/websitehitcountdetail/list'
),
method
:
'post'
,
data
:
this
.
$http
.
adornData
({
'page'
:
this
.
pageIndex
+
''
,
'limit'
:
this
.
pageSize
+
''
,
'orderFlag'
:
this
.
orderFlag
,
'ip'
:
this
.
ip
,
'route'
:
this
.
route
,
'createStartTime'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
0
],
'createEndTime'
:
this
.
releaseDate
===
null
?
''
:
this
.
releaseDate
[
1
]
})
}).
then
(({
data
})
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
dataList
=
data
.
page
.
list
this
.
totalPage
=
data
.
page
.
totalCount
}
else
{
this
.
$message
.
error
(
data
.
msg
)
this
.
dataList
=
[]
this
.
totalPage
=
0
}
this
.
dataListLoading
=
false
})
},
// 每页数
sizeChangeHandle
(
val
)
{
this
.
pageSize
=
val
this
.
pageIndex
=
1
this
.
getDataList
()
},
// 当前页
currentChangeHandle
(
val
)
{
this
.
pageIndex
=
val
this
.
getDataList
()
}
}
}
</
script
>
static/config/index.js
View file @
f1374abd
...
...
@@ -5,7 +5,7 @@
window
.
SITE_CONFIG
=
{}
// api接口请求地址
// window.SITE_CONFIG['baseUrl'] = 'http://
192.168.2.17:9091
'
// window.SITE_CONFIG['baseUrl'] = 'http://
95zvp8.natappfree.cc
'
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.0.77:9091'
window
.
SITE_CONFIG
[
'baseUrl'
]
=
' http://dynamic.gs1cn.org'
// cdn地址 = 域名 + 版本号
...
...
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