Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
social_ecurity_serv
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 57be26a7
authored
Jun 02, 2020
by
周志凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: fixed name
1 parent
9d4fab04
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
75 additions
and
20 deletions
web/config/index.js
web/dist.zip
web/index.html
web/src/util/api.js
web/src/util/http.js
web/src/views/Activity/detail.vue
web/src/views/Activity/statusdetail.vue
web/src/views/Search/FilmedRecords.vue
web/src/views/Search/track.vue
web/static/config.js
web/config/index.js
View file @
57be26a
...
@@ -13,7 +13,7 @@ module.exports = {
...
@@ -13,7 +13,7 @@ module.exports = {
proxyTable
:
{},
proxyTable
:
{},
// Various Dev Server settings
// Various Dev Server settings
host
:
'192.168.9.1
61
'
,
// can be overwritten by process.env.HOST
host
:
'192.168.9.1
02
'
,
// can be overwritten by process.env.HOST
port
:
8990
,
// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
port
:
8990
,
// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser
:
false
,
autoOpenBrowser
:
false
,
errorOverlay
:
true
,
errorOverlay
:
true
,
...
...
web/dist.zip
View file @
57be26a
No preview for this file type
web/index.html
View file @
57be26a
...
@@ -4,6 +4,15 @@
...
@@ -4,6 +4,15 @@
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<title>
web
</title>
<title>
web
</title>
<script>
!
(
function
()
{
var
platformConf
=
document
.
createElement
(
"script"
),
s
=
document
.
getElementsByTagName
(
"script"
)[
0
],
stamp
=
+
new
Date
();
platformConf
.
src
=
'./static/config.js?_s='
+
stamp
;
s
.
parentNode
.
insertBefore
(
platformConf
,
s
);
})()
</script>
</head>
</head>
<body>
<body>
<div
id=
"app"
></div>
<div
id=
"app"
></div>
...
...
web/src/util/api.js
View file @
57be26a
// export let url = 'http://192.168.9.208:20080/api/v1'
// export let url = 'http://192.168.9.208:20080/api/v1'
// export let url = 'http://52.1.113.109:20080/api/v1'
// export let url = 'http://52.1.113.109:20080/api/v1'
export
let
IP
=
location
.
host
const
{
urls
=
''
,
picUrls
=
''
}
=
window
.
SECURITY_CONF
if
(
IP
.
indexOf
(
'9.161'
)
>
-
1
||
IP
.
indexOf
(
'localhost'
))
{
// IP = 'https://store.keliuyun.com/report'
export
let
IP
=
urls
||
location
.
host
// IP="/report"
if
(
IP
.
indexOf
(
'9.102'
)
>
-
1
||
IP
.
indexOf
(
'localhost'
)
>
-
1
)
{
IP
=
'https://store.keliuyun.com/report'
// IP="/report"
}
}
IP
=
"/report"
//
IP="/report"
export
let
url
=
`
${
IP
}
`
export
let
url
=
`
${
IP
}
`
export
let
menus
=
`
${
url
}
/auth/api/auth/apps/23660e5593563b27832c2b8f490b458e/menus`
export
let
menus
=
`
${
url
}
/auth/api/auth/apps/23660e5593563b27832c2b8f490b458e/menus`
...
@@ -68,5 +70,5 @@ export let org = {
...
@@ -68,5 +70,5 @@ export let org = {
}
}
export
let
faceweb
=
`
${
url
}
/face_web`
export
let
faceweb
=
`
${
url
}
/face_web`
// export let picUrl =
"https://vion-retail.oss-cn-beijing.aliyuncs.com/"
export
let
picUrl
=
picUrls
||
"https://vion-retail.oss-cn-beijing.aliyuncs.com/"
export
let
picUrl
=
"http://192.168.9.239/"
//
export let picUrl ="http://192.168.9.239/"
web/src/util/http.js
View file @
57be26a
...
@@ -48,7 +48,6 @@ export function tryHideFullScreenLoading() {
...
@@ -48,7 +48,6 @@ export function tryHideFullScreenLoading() {
* 请求前的拦截器
* 请求前的拦截器
*/
*/
service
.
interceptors
.
request
.
use
(
function
(
config
)
{
service
.
interceptors
.
request
.
use
(
function
(
config
)
{
console
.
log
(
'request interceptors'
,
config
)
//截取API添加时间戳防止请求缓存
//截取API添加时间戳防止请求缓存
if
(
config
.
method
==
"get"
)
{
if
(
config
.
method
==
"get"
)
{
config
.
params
=
{
config
.
params
=
{
...
...
web/src/views/Activity/detail.vue
View file @
57be26a
...
@@ -49,11 +49,11 @@ export default {
...
@@ -49,11 +49,11 @@ export default {
this
.
show
=
true
this
.
show
=
true
this
.
titlename
=
'抓拍图片'
this
.
titlename
=
'抓拍图片'
this
.
curshow
=
'img'
this
.
curshow
=
'img'
this
.
axios
.
get
(
this
.
API
.
url
+
'/faceRecognitions
/history
'
,{
this
.
axios
.
get
(
this
.
API
.
url
+
'/faceRecognitions'
,{
params
:{
params
:{
mallId
:
2
,
mallId
:
2
,
personUnid
:
data
.
personUnid
,
personUnid
:
data
.
personUnid
,
countdate
:
this
.
common
.
formatDateFun
(
new
Date
(),
"yyyy-MM-dd"
),
//
countdate: this.common.formatDateFun(new Date(),"yyyy-MM-dd"),
sortName
:
"counttime"
,
sortName
:
"counttime"
,
sortOrder
:
"DESC"
sortOrder
:
"DESC"
}
}
...
...
web/src/views/Activity/statusdetail.vue
View file @
57be26a
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<el-table
:data=
"gridData"
>
<el-table
:data=
"gridData"
>
<el-table-column
property=
"date"
label=
"日期"
></el-table-column>
<el-table-column
property=
"date"
label=
"日期"
></el-table-column>
<el-table-column
property=
"name"
label=
"姓名"
></el-table-column>
<el-table-column
property=
"name"
label=
"姓名"
></el-table-column>
<el-table-column
property=
"address"
label=
"抓
怕
地址"
></el-table-column>
<el-table-column
property=
"address"
label=
"抓
拍
地址"
></el-table-column>
<el-table-column
property=
"address"
label=
"抓
怕
图片"
>
<el-table-column
property=
"address"
label=
"抓
拍
图片"
>
<div
class=
"img-box"
>
<div
class=
"img-box"
>
<img
src=
"../videos/testimg/1.jpg"
alt=
""
>
<img
src=
"../videos/testimg/1.jpg"
alt=
""
>
</div>
</div>
...
...
web/src/views/Search/FilmedRecords.vue
View file @
57be26a
...
@@ -44,12 +44,16 @@
...
@@ -44,12 +44,16 @@
<el-table
:data=
"tableData"
height=
"690"
v-loading=
"loading"
>
<el-table
:data=
"tableData"
height=
"690"
v-loading=
"loading"
>
<el-table-column
prop=
"counttime"
label=
"日期"
>
<el-table-column
prop=
"counttime"
label=
"日期"
>
</el-table-column>
</el-table-column>
<
el-table-column
prop=
"historyArrivalCount"
label=
"出现次数"
></el-table-column
>
<
!--
<el-table-column
prop=
"historyArrivalCount"
label=
"出现次数"
></el-table-column>
--
>
<el-table-column
prop=
"channelSerialnum"
label=
"相机名称"
></el-table-column>
<el-table-column
prop=
"channelSerialnum"
label=
"相机名称"
></el-table-column>
<el-table-column
prop=
"face.name"
label=
"姓名"
></el-table-column>
<el-table-column
label=
"姓名"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
personUnid
|
filterNameText
}}
</
template
>
</el-table-column>
<el-table-column
label=
"性别"
>
<el-table-column
label=
"性别"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
gender
|
sexfn
}}
{{
scope
.
row
.
gender
|
sexfn
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"age"
label=
"年龄"
></el-table-column>
<el-table-column
prop=
"age"
label=
"年龄"
></el-table-column>
...
@@ -126,9 +130,16 @@ export default {
...
@@ -126,9 +130,16 @@ export default {
dialogVisible
:
false
,
dialogVisible
:
false
,
timer
:
''
,
timer
:
''
,
progress
:
0
,
progress
:
0
,
accountId
:
localStorage
.
getItem
(
'accountId'
)
accountId
:
localStorage
.
getItem
(
'accountId'
),
cachePersons
:
JSON
.
parse
(
sessionStorage
.
getItem
(
'staffsName'
))
};
};
},
},
filters
:
{
filterNameText
(
val
)
{
const
cachePersonName
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'staffsName'
))
||
{}
return
cachePersonName
[
val
]
||
'--'
}
},
methods
:
{
methods
:
{
handleClose
()
{
handleClose
()
{
this
.
dialogVisible
=
false
;
this
.
dialogVisible
=
false
;
...
@@ -147,6 +158,25 @@ export default {
...
@@ -147,6 +158,25 @@ export default {
this
.
getFaceData
();
this
.
getFaceData
();
this
.
page
.
currentPage
=
1
;
this
.
page
.
currentPage
=
1
;
},
},
fetchStaffName
()
{
if
(
this
.
cachePersons
)
return
this
.
axios
.
get
(
this
.
API
.
url
+
"/staffs"
,{
params
:{
accountId
:
this
.
search
.
communityunid
}
}).
then
((
response
)
=>
{
console
.
log
(
'response'
,
response
)
const
{
data
,
code
}
=
response
.
data
if
(
code
===
200
)
{
const
cacheData
=
data
.
reduce
((
rest
,
curr
)
=>
{
rest
[
curr
.
personUnid
]
=
curr
.
name
return
rest
},
{})
this
.
cachePersons
=
cacheData
sessionStorage
.
setItem
(
'staffsName'
,
JSON
.
stringify
(
cacheData
))
}
})
},
initDbData
(){
initDbData
(){
this
.
axios
.
get
(
this
.
API
.
url
+
"/personTypes"
,{
this
.
axios
.
get
(
this
.
API
.
url
+
"/personTypes"
,{
params
:{
params
:{
...
@@ -174,6 +204,7 @@ export default {
...
@@ -174,6 +204,7 @@ export default {
this
.
search
.
communityunid
=
response
.
data
.
data
[
0
].
id
this
.
search
.
communityunid
=
response
.
data
.
data
[
0
].
id
}
}
this
.
fetchStaffName
();
this
.
initDbData
();
this
.
initDbData
();
this
.
initGateData
();
this
.
initGateData
();
this
.
getFaceData
();
this
.
getFaceData
();
...
...
web/src/views/Search/track.vue
View file @
57be26a
...
@@ -8,9 +8,13 @@
...
@@ -8,9 +8,13 @@
<el-table
:data=
"trackData"
height=
"400"
>
<el-table
:data=
"trackData"
height=
"400"
>
<el-table-column
property=
"counttime"
label=
"日期"
>
<el-table-column
property=
"counttime"
label=
"日期"
>
</el-table-column>
</el-table-column>
<el-table-column
property=
"name"
label=
"姓名"
></el-table-column>
<el-table-column
label=
"姓名"
>
<el-table-column
property=
"gateId"
label=
"抓怕地址"
:formatter=
"gateFormatter"
></el-table-column>
<template
slot-scope=
"scope"
>
<el-table-column
property=
"pic_url"
label=
"抓怕图片"
>
{{
scope
.
row
.
personUnid
|
filterNameText
}}
</
template
>
</el-table-column>
<el-table-column
property=
"gateId"
label=
"抓拍地址"
:formatter=
"gateFormatter"
></el-table-column>
<el-table-column
property=
"pic_url"
label=
"抓拍图片"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
class=
"img-box"
>
<div
class=
"img-box"
>
<img
:src=
"API.picUrl+'picture/'+scope.row.facePath+scope.row.facePic"
alt=
""
>
<img
:src=
"API.picUrl+'picture/'+scope.row.facePath+scope.row.facePic"
alt=
""
>
...
@@ -53,6 +57,12 @@ export default {
...
@@ -53,6 +57,12 @@ export default {
type
:
Array
type
:
Array
}
}
},
},
filters
:
{
filterNameText
(
val
)
{
const
cachePersonName
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'staffsName'
))
||
{}
return
cachePersonName
[
val
]
||
'--'
}
},
methods
:{
methods
:{
init
(
data
){
init
(
data
){
this
.
show
=
true
;
this
.
show
=
true
;
...
...
web/static/config.js
0 → 100644
View file @
57be26a
window
.
SECURITY_CONF
=
{
urls
:
'https://store.keliuyun.com/report'
,
picUrls
:
'https://vion-retail.oss-cn-beijing.aliyuncs.com/'
}
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