Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
罗鑫霖
/
vion-tools
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 1def2659
authored
Mar 18, 2022
by
李君
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
抓拍聚类图片地址动态获取浏览器地址栏地址
1 parent
235425cb
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
6 deletions
package-lock.json
public/config.js
src/App.vue
src/Request/PublicAxiosInstance.js
src/views/EquipmentTimeErrorVerification/EquipmentTimeErrorVerification.vue
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
src/views/SnapshotCluster/SnapshotRecord/SnapshotRecord.vue
package-lock.json
View file @
1def265
This diff could not be displayed because it is too large.
public/config.js
View file @
1def265
window
.
_serverHost
=
[
'localhost'
,
'192.168.1.1
04'
].
includes
(
window
.
location
.
hostname
)
?
'mall.keliuyun.com:9998
'
:
window
.
location
.
host
window
.
_baseUrl
=
[
'localhost'
,
'192.168.1.1
04'
].
includes
(
window
.
location
.
hostname
)
?
'http://mall.keliuyun.com:9998
'
:
`http://
${
window
.
_serverHost
}
`
window
.
_serverHost
=
[
'localhost'
,
'192.168.1.1
68'
].
includes
(
window
.
location
.
hostname
)
?
'36.112.68.214:9999/
'
:
window
.
location
.
host
window
.
_baseUrl
=
[
'localhost'
,
'192.168.1.1
68'
].
includes
(
window
.
location
.
hostname
)
?
'http://36.112.68.214:9999/
'
:
`http://
${
window
.
_serverHost
}
`
// window._baseUrl = 'http://36.112.68.214:9999'
const
log
=
console
.
log
.
bind
(
console
)
src/App.vue
View file @
1def265
<
template
>
<a-
locale
-provider
:locale=
"zh_CN"
>
<a-
config
-provider
:locale=
"zh_CN"
>
<div
id=
"app"
>
<router-view></router-view>
</div>
</a-
locale
-provider>
</a-
config
-provider>
</
template
>
...
...
src/Request/PublicAxiosInstance.js
View file @
1def265
...
...
@@ -13,9 +13,9 @@ const axiosInstance = axios.create(
// 请求拦截器
axiosInstance
.
interceptors
.
request
.
use
(
config
=>
{
if
([
'localhost'
,
'192.168.1.1
04
'
].
includes
(
window
.
location
.
hostname
))
if
([
'localhost'
,
'192.168.1.1
68
'
].
includes
(
window
.
location
.
hostname
))
{
config
.
headers
.
Authorization
=
'
b321efe7-1a70-4a99-b837-b6bfac2d7d38
'
config
.
headers
.
Authorization
=
'
015269a1-3214-4271-b202-1922138d021c
'
}
else
{
...
...
src/views/EquipmentTimeErrorVerification/EquipmentTimeErrorVerification.vue
View file @
1def265
...
...
@@ -39,6 +39,11 @@
align:'center',
},
{
title: '发送条数',
dataIndex: 'rowcount',
align:'center',
},
{
title: '统计日期',
dataIndex: 'countdate',
align:'center',
...
...
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
View file @
1def265
...
...
@@ -335,6 +335,18 @@ export default {
(
r
)
=>
{
isLoading
.
value
=
false
sortDataList
(
r
.
data
.
persons
)
r
.
data
.
persons
.
forEach
((
itemPerson
)
=>
{
itemPerson
.
perrsonList
.
forEach
((
item
)
=>
{
let
str
=
item
.
features_url
.
indexOf
(
"/images/feature"
)
if
(
item
.
features_url
){
item
.
features_url
=
window
.
location
.
origin
+
item
.
features_url
.
substring
(
str
)
}
let
str1
=
item
.
picture_url
.
indexOf
(
"/images/picture"
)
if
(
item
.
picture_url
){
item
.
picture_url
=
window
.
location
.
origin
+
item
.
picture_url
.
substring
(
str1
)
}
})
})
dataList
.
value
=
r
.
data
.
persons
total
.
value
=
r
.
data
.
pageNum
}
...
...
src/views/SnapshotCluster/SnapshotRecord/SnapshotRecord.vue
View file @
1def265
...
...
@@ -322,6 +322,16 @@ export default {
snapshotRecordApi
.
getSnapshotRecordList
(
data
).
then
(
(
r
)
=>
{
isLoading
.
value
=
false
r
.
data
.
persons
.
forEach
((
item
)
=>
{
let
str
=
item
.
features_url
.
indexOf
(
"/images/feature"
)
if
(
item
.
features_url
){
item
.
features_url
=
window
.
location
.
origin
+
item
.
features_url
.
substring
(
str
)
}
let
str1
=
item
.
picture_url
.
indexOf
(
"/images/picture"
)
if
(
item
.
picture_url
){
item
.
picture_url
=
window
.
location
.
origin
+
item
.
picture_url
.
substring
(
str1
)
}
})
dataList
.
value
=
r
.
data
.
persons
total
.
value
=
r
.
data
.
pageNum
}
...
...
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