Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
320c5512
Commit
320c5512
authored
Jul 22, 2020
by
jiangjiaxu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify config
parent
b96ffeba
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
42 deletions
+42
-42
config.js
src/config.js
+7
-7
Detail.vue
src/views/Detail.vue
+5
-5
Login.vue
src/views/Login.vue
+2
-2
Overview.vue
src/views/Overview.vue
+3
-3
Registered.vue
src/views/Registered.vue
+2
-2
Result.vue
src/views/Result.vue
+8
-8
ResultDetail.vue
src/views/ResultDetail.vue
+7
-7
Task.vue
src/views/Task.vue
+5
-5
Video.vue
src/views/Video.vue
+3
-3
No files found.
src/config.js
View file @
320c5512
const
address
=
'http://152.136.233.116:8083/roadlinks/getCapitalImg?imgName='
;
// const address = 'http://152.136.233.116:8083/roadlinks/';
// const address = '/roadlinks/';
const
address
=
'http://127.0.0.1:8088/roadlinks/'
;
// const address = 'http://vmax.corp.roadlinks.cn:8088/roadlinks/';
// const address = 'http://127.0.0.1:8088/roadlinks/';
// const address = 'http://193.112.197.170:8080/roadlinks/';
// const address = 'http://172.16.40.196:29980/roadlinks/';
const
rootAddress
=
'http://152.136.233.116:8083/roadlinks
/'
;
// const rootAddress = 'http://127.0.0.1:8088
/roadlinks/';
// const rootAddress = '/roadlinks/
';
const
photoAddress
=
'http://106.52.130.113:9088
/'
;
const
imgAddress
=
'http://152.136.233.116:8083
/roadlinks/'
;
const
imgApi
=
'http://152.136.233.116:8083/roadlinks/getCapitalImg?imgName=
'
;
const
photoDataAddress
=
'http://106.52.130.113:9088/'
;
export
{
rootAddress
,
address
};
export
{
address
,
photoAddress
,
imgApi
,
imgAddress
};
src/views/Detail.vue
View file @
320c5512
...
...
@@ -90,7 +90,7 @@ import axios from 'axios';
import
{
Message
}
from
'element-ui'
;
import
echarts
from
'echarts'
;
import
moment
from
'moment'
;
import
{
rootAddress
,
photoDataAddress
,
a
ddress
}
from
'../config'
;
import
{
address
,
photoA
ddress
}
from
'../config'
;
export
default
{
name
:
'detail'
,
...
...
@@ -129,7 +129,7 @@ export default {
linkPic
(
index
,
row
)
{
this
.
getCurrentDate
();
var
photoDate
=
row
.
finalOnlineTime
?
row
.
finalOnlineTime
:
this
.
currentdate
;
window
.
open
(
photo
Data
Address
+
photoDate
+
'/'
+
row
.
channelCode
+
'/'
+
row
.
code
,
'_blank'
);
window
.
open
(
photoAddress
+
photoDate
+
'/'
+
row
.
channelCode
+
'/'
+
row
.
code
,
'_blank'
);
},
getCurrentDate
()
{
var
date
=
new
Date
();
...
...
@@ -241,7 +241,7 @@ export default {
console
.
log
(
this
.
currentPage
)
//点击第几页
},
getAllCapitals
()
{
axios
.
post
(
rootA
ddress
+
`getAllCapitals`
,
{
axios
.
post
(
a
ddress
+
`getAllCapitals`
,
{
}).
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
200
)
{
...
...
@@ -279,7 +279,7 @@ export default {
}
});
}
axios
.
post
(
rootA
ddress
+
`getCapitalDetails`
,
{
axios
.
post
(
a
ddress
+
`getCapitalDetails`
,
{
capitalName
:
capitalName
}).
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
200
)
{
...
...
@@ -330,7 +330,7 @@ export default {
this
.
filters
.
channel
=
''
;
}
axios
.
post
(
rootA
ddress
+
`getAllEquipments`
,
{
axios
.
post
(
a
ddress
+
`getAllEquipments`
,
{
code
:
this
.
filters
.
equipmentNo
,
channelId
:
this
.
filters
.
channel
,
plateNo
:
this
.
filters
.
plateNo
,
...
...
src/views/Login.vue
View file @
320c5512
...
...
@@ -41,7 +41,7 @@ import axios from 'axios';
import
{
Message
}
from
'element-ui'
;
import
{
constants
}
from
'fs'
;
import
Cookies
from
'js-cookie'
;
import
{
address
,
rootAddress
}
from
'../config.js'
;
import
{
address
}
from
'../config.js'
;
export
default
{
name
:
'userlogin'
,
...
...
@@ -107,7 +107,7 @@ export default {
this
.
$refs
.
loginForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
// 路由跳转到任务页面
axios
.
post
(
rootA
ddress
+
'login'
,
{
axios
.
post
(
a
ddress
+
'login'
,
{
username
:
this
.
loginForm
.
username
,
password
:
this
.
loginForm
.
password
,
})
...
...
src/views/Overview.vue
View file @
320c5512
...
...
@@ -74,7 +74,7 @@ import axios from 'axios';
import
{
Message
}
from
'element-ui'
;
import
echarts
from
'echarts'
;
import
moment
from
'moment'
;
import
{
rootAddress
,
address
}
from
'../config'
;
import
{
address
}
from
'../config'
;
export
default
{
name
:
'overview'
,
...
...
@@ -212,7 +212,7 @@ export default {
},
getAllCapitals
()
{
axios
.
post
(
rootA
ddress
+
`getAllCapitals`
,
{
axios
.
post
(
a
ddress
+
`getAllCapitals`
,
{
}).
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
200
)
{
...
...
@@ -302,7 +302,7 @@ export default {
this
.
filters
.
channel
=
''
;
}
axios
.
post
(
rootA
ddress
+
`getAllEquipments`
,
{
axios
.
post
(
a
ddress
+
`getAllEquipments`
,
{
code
:
this
.
filters
.
equipmentNo
,
channelId
:
this
.
filters
.
channel
,
plateNo
:
this
.
filters
.
plateNo
,
...
...
src/views/Registered.vue
View file @
320c5512
...
...
@@ -35,7 +35,7 @@
import
axios
from
'axios'
;
import
{
Message
}
from
'element-ui'
;
import
{
setTimeout
}
from
'timers'
;
import
{
rootAddress
,
address
}
from
'../config.js
'
;
import
{
address
}
from
'../config
'
;
export
default
{
data
()
{
...
...
@@ -99,7 +99,7 @@ export default {
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
console
.
log
(
this
.
ruleForm2
.
user
+
this
.
ruleForm2
.
pass
);
axios
.
post
(
rootA
ddress
+
'register'
,
{
axios
.
post
(
a
ddress
+
'register'
,
{
username
:
this
.
ruleForm2
.
user
,
password
:
this
.
ruleForm2
.
pass
,
email
:
this
.
ruleForm2
.
mailAddress
,
...
...
src/views/Result.vue
View file @
320c5512
...
...
@@ -284,7 +284,7 @@ import axios from 'axios';
import
{
Message
}
from
'element-ui'
;
import
gcoord
from
'gcoord'
;
import
moment
from
'moment'
;
import
{
address
,
root
Address
}
from
'../config'
;
import
{
imgApi
,
imgAddress
,
address
,
photo
Address
}
from
'../config'
;
import
{
export_json_to_excel
}
from
'@/excel/Export2Excel'
export
default
{
...
...
@@ -499,7 +499,7 @@ export default {
let
exportImgs
=
[];
this
.
allImgs
.
forEach
((
item
)
=>
{
let
capital
=
item
.
content
.
split
(
'|'
);
exportImgs
.
push
({
number
:
item
.
number
+
''
,
url
:
address
+
item
.
url
.
split
(
"="
)[
1
],
capitalName
:
capital
[
0
],
capitalStatus
:
capital
[
1
],
position
:
capital
[
2
]});
exportImgs
.
push
({
number
:
item
.
number
+
''
,
url
:
imgApi
+
item
.
url
.
split
(
"="
)[
1
],
capitalName
:
capital
[
0
],
capitalStatus
:
capital
[
1
],
position
:
capital
[
2
]});
});
require
.
ensure
([],
()
=>
{
//tHeader为存放excel表头标题的数组
...
...
@@ -582,7 +582,7 @@ export default {
this
.
getMapBounds
(
e
);
},
queryAllEquipment
()
{
axios
.
post
(
rootA
ddress
+
`queryAllEquipment`
,
{
axios
.
post
(
a
ddress
+
`queryAllEquipment`
,
{
}).
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
200
)
{
...
...
@@ -620,7 +620,7 @@ export default {
});
}
axios
.
post
(
rootA
ddress
+
`getInspectResult`
,
{
axios
.
post
(
a
ddress
+
`getInspectResult`
,
{
startTime
:
this
.
filters
.
dateTime
[
0
],
endTime
:
this
.
filters
.
dateTime
[
1
],
equipment
:
equipmentCode
...
...
@@ -663,7 +663,7 @@ export default {
}
});
this
.
allPoints
.
push
({
lng
:
result
[
0
],
lat
:
result
[
1
],
markerAnim
:
''
,
url
:
info
.
status
==
1
||
info
.
status
==
3
?
require
(
'../assets/img/map-marker_orange.png'
)
:
require
(
'../assets/img/jingbao_red.png'
),
status
:
info
.
status
,
content
:
this
.
no
,
title
:
''
,
titleList
:
[
'资产类型:'
+
info
.
type2
,
'资产状态:'
+
(
info
.
status
==
1
?
'正常'
:
(
info
.
status
==
2
?
'异常'
:
'新增'
)),
'位置:'
+
info
.
position
]});
this
.
allImgs
.
push
({
url
:
root
Address
+
'getCapitalImg?imgPath='
+
info
.
imagePath
,
content
:
info
.
info
+
' | '
+
(
info
.
status
==
1
?
'正常'
:
(
info
.
status
==
2
?
'异常'
:
'新增'
))
+
' | '
+
info
.
position
,
number
:
this
.
no
,
id
:
'imageCard'
+
this
.
no
,
vector
:
info
.
vector
});
this
.
allImgs
.
push
({
url
:
img
Address
+
'getCapitalImg?imgPath='
+
info
.
imagePath
,
content
:
info
.
info
+
' | '
+
(
info
.
status
==
1
?
'正常'
:
(
info
.
status
==
2
?
'异常'
:
'新增'
))
+
' | '
+
info
.
position
,
number
:
this
.
no
,
id
:
'imageCard'
+
this
.
no
,
vector
:
info
.
vector
});
}
});
}
...
...
@@ -779,7 +779,7 @@ export default {
}
});
}
axios
.
post
(
rootA
ddress
+
`getCapitalDetails`
,
{
axios
.
post
(
a
ddress
+
`getCapitalDetails`
,
{
capitalName
:
capitalName
}).
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
200
)
{
...
...
@@ -798,7 +798,7 @@ export default {
);
this
.
no
=
++
this
.
no
;
this
.
allPoints
.
push
({
lng
:
result
[
0
],
lat
:
result
[
1
],
markerAnim
:
''
,
url
:
require
(
'../assets/img/map-marker_orange.png'
),
content
:
this
.
no
,
title
:
''
,
titleList
:
[
'资产类型:'
+
val
.
capitalType
,
'资产名称:'
+
val
.
capitalName
,
'资产状态:正常'
,
'位置:'
+
val
.
position
]});
this
.
allImgs
.
push
({
url
:
root
Address
+
'getCapitalImg?imgName='
+
val
.
imgName
,
content
:
val
.
capitalName
+
' | 正常 | '
+
val
.
position
,
number
:
this
.
no
,
id
:
'imageCard'
+
this
.
no
});
this
.
allImgs
.
push
({
url
:
img
Address
+
'getCapitalImg?imgName='
+
val
.
imgName
,
content
:
val
.
capitalName
+
' | 正常 | '
+
val
.
position
,
number
:
this
.
no
,
id
:
'imageCard'
+
this
.
no
});
}
});
...
...
@@ -872,7 +872,7 @@ export default {
level
+=
","
+
item
;
}
});
axios
.
post
(
rootA
ddress
+
`generateTask`
,
{
axios
.
post
(
a
ddress
+
`generateTask`
,
{
area
:
this
.
form
.
region
,
startTime
:
this
.
value4
[
0
],
endTime
:
this
.
value4
[
1
],
...
...
src/views/ResultDetail.vue
View file @
320c5512
...
...
@@ -204,7 +204,7 @@ import axios from 'axios';
import
{
Message
}
from
'element-ui'
;
import
echarts
from
'echarts'
;
import
moment
from
'moment'
;
import
{
rootAddress
,
address
}
from
'../config'
;
import
{
address
}
from
'../config'
;
import
{
export_json_to_excel
}
from
'@/excel/Export2Excel'
;
import
elDragDialog
from
"@/components/el-drag-dialog"
;
...
...
@@ -392,7 +392,7 @@ export default {
},
getImageGroupsByCon
(
startTime
,
endTime
,
equipment
)
{
axios
.
post
(
rootA
ddress
+
`getImageGroupsByCon`
,
{
axios
.
post
(
a
ddress
+
`getImageGroupsByCon`
,
{
startTimeMill
:
startTime
,
endTimeMill
:
endTime
,
equipment
:
equipment
...
...
@@ -426,7 +426,7 @@ export default {
this
.
filters
.
dateTime
[
0
]
=
moment
((
new
Date
()).
setTime
((
new
Date
()).
getTime
()
-
3600
*
1000
*
24
)).
format
(
"YYYY-MM-DD"
)
+
' 00:00:00'
;
this
.
filters
.
dateTime
[
1
]
=
moment
((
new
Date
()).
setTime
((
new
Date
()).
getTime
()
-
3600
*
1000
*
24
)).
format
(
"YYYY-MM-DD"
)
+
' 23:59:59'
;
}
axios
.
post
(
rootA
ddress
+
`getImageGroups`
,
{
axios
.
post
(
a
ddress
+
`getImageGroups`
,
{
beginTime
:
this
.
filters
.
dateTime
[
0
],
endTime
:
this
.
filters
.
dateTime
[
1
],
capitalType
:
this
.
filters
.
capitalType
,
...
...
@@ -481,7 +481,7 @@ export default {
console
.
log
(
this
.
currentPage
)
//点击第几页
},
getAllCapitals
()
{
axios
.
post
(
rootA
ddress
+
`getAllCapitals`
,
{
axios
.
post
(
a
ddress
+
`getAllCapitals`
,
{
}).
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
200
)
{
...
...
@@ -519,7 +519,7 @@ export default {
}
});
}
axios
.
post
(
rootA
ddress
+
`getCapitalDetails`
,
{
axios
.
post
(
a
ddress
+
`getCapitalDetails`
,
{
capitalName
:
capitalName
}).
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
200
)
{
...
...
@@ -561,7 +561,7 @@ export default {
},
showPicture
(
index
,
row
)
{
this
.
imgContent
=
row
.
info
+
"|"
+
row
.
status
+
"|"
+
row
.
position
;
this
.
bigImgUrl
=
rootA
ddress
+
"getCapitalImg?imgPath="
+
row
.
imagePath
;
this
.
bigImgUrl
=
a
ddress
+
"getCapitalImg?imgPath="
+
row
.
imagePath
;
let
vectorData
=
JSON
.
parse
(
row
.
vector
);
if
(
vectorData
&&
vectorData
.
location
)
{
let
point
=
vectorData
.
location
;
...
...
@@ -590,7 +590,7 @@ export default {
this
.
dialogVisible1
=
false
;
this
.
dialogVisible2
=
false
;
this
.
tableData
[
this
.
tableIndex
].
status
=
"正常"
;
axios
.
post
(
rootA
ddress
+
`updateImageStatus`
,
{
axios
.
post
(
a
ddress
+
`updateImageStatus`
,
{
id
:
this
.
groupId
}).
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
200
)
{
...
...
src/views/Task.vue
View file @
320c5512
...
...
@@ -223,7 +223,7 @@ import axios from 'axios';
import
{
Message
}
from
'element-ui'
;
import
gcoord
from
'gcoord'
;
import
moment
from
'moment'
;
import
{
rootAddress
,
address
}
from
'../config'
;
import
{
address
}
from
'../config'
;
import
{
export_json_to_excel
}
from
'@/excel/Export2Excel'
export
default
{
...
...
@@ -331,14 +331,14 @@ export default {
this
.
infos
.
forEach
((
item
)
=>
{
if
(
item
.
lng
==
e
.
point
.
lng
&&
item
.
lat
==
e
.
point
.
lat
){
// 根据坐标信息获取图片
this
.
bigImgUrl
=
rootA
ddress
+
'getTrajectImg?channel='
+
item
.
channel
+
'&equipment='
+
item
.
plateNo
+
'&createTime='
+
item
.
date
+
' '
+
item
.
time
;
//this.getTrajectImg(item.channel, item.plateNo, item.date + ' ' + item.time);
this
.
bigImgUrl
=
a
ddress
+
'getTrajectImg?channel='
+
item
.
channel
+
'&equipment='
+
item
.
plateNo
+
'&createTime='
+
item
.
date
+
' '
+
item
.
time
;
//this.getTrajectImg(item.channel, item.plateNo, item.date + ' ' + item.time);
}
});
// this.bigImgUrl = require('../assets/img/17615.jpg');
this
.
isShowPicture
=
true
;
},
getTrajectImg
(
channel
,
plateNo
,
createTime
){
axios
.
post
(
rootA
ddress
+
`getTrajectImg`
,
{
axios
.
post
(
a
ddress
+
`getTrajectImg`
,
{
channel
:
channel
,
equipment
:
plateNo
,
createTime
:
createTime
...
...
@@ -368,7 +368,7 @@ export default {
});
},
queryAllEquipment
()
{
axios
.
post
(
rootA
ddress
+
`queryAllEquipment`
,
{
axios
.
post
(
a
ddress
+
`queryAllEquipment`
,
{
}).
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
200
)
{
...
...
@@ -407,7 +407,7 @@ export default {
});
}
axios
.
post
(
rootA
ddress
+
`getTravel`
,
{
axios
.
post
(
a
ddress
+
`getTravel`
,
{
startTime
:
this
.
filters
.
dateTime
[
0
],
endTime
:
this
.
filters
.
dateTime
[
1
],
equipment
:
equipmentCode
...
...
src/views/Video.vue
View file @
320c5512
...
...
@@ -135,7 +135,7 @@ import axios from 'axios';
import
{
Message
}
from
'element-ui'
;
import
echarts
from
'echarts'
;
import
moment
from
'moment'
;
import
{
rootAddress
,
address
}
from
'../config'
;
import
{
address
}
from
'../config'
;
export
default
{
name
:
'detail'
,
...
...
@@ -170,7 +170,7 @@ export default {
},
methods
:
{
queryAllEquipment
()
{
axios
.
post
(
rootA
ddress
+
`queryAllEquipment`
,
{
axios
.
post
(
a
ddress
+
`queryAllEquipment`
,
{
}).
then
((
response
)
=>
{
if
(
response
.
data
.
code
===
200
)
{
...
...
@@ -207,7 +207,7 @@ export default {
}
});
}
axios
.
post
(
rootA
ddress
+
`queryVideos`
,
{
axios
.
post
(
a
ddress
+
`queryVideos`
,
{
startTime
:
this
.
filters
.
dateTime
[
0
],
endTime
:
this
.
filters
.
dateTime
[
1
],
equipment
:
equipmentCode
...
...
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