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
e3b2aae7
Commit
e3b2aae7
authored
Jul 27, 2020
by
wangxiaoming
Browse files
Options
Browse Files
Download
Plain Diff
merge 修改分页
parents
5a568618
69956ea7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
78 deletions
+9
-78
package-lock.json
package-lock.json
+4
-3
video.png
src/assets/img/video.png
+0
-0
Result.vue
src/views/Result.vue
+0
-0
ResultDetail.vue
src/views/ResultDetail.vue
+0
-0
Task.vue
src/views/Task.vue
+5
-75
No files found.
package-lock.json
View file @
e3b2aae7
...
@@ -10226,9 +10226,10 @@
...
@@ -10226,9 +10226,10 @@
}
}
},
},
"moment"
:
{
"moment"
:
{
"version"
:
"2.24.0"
,
"version"
:
"2.27.0"
,
"resolved"
:
"https://registry.npm.taobao.org/moment/download/moment-2.24.0.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/moment/download/moment-2.27.0.tgz?cache=0&sync_timestamp=1592516084857&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmoment%2Fdownload%2Fmoment-2.27.0.tgz"
,
"integrity"
:
"sha1-DQVdU/UFKqZTyfbraLtdEr9cK1s="
"integrity"
:
"sha1-i/9OPiaiNiIN/j423nVrbrqgEF0="
,
"dev"
:
true
},
},
"move-concurrently"
:
{
"move-concurrently"
:
{
"version"
:
"1.0.1"
,
"version"
:
"1.0.1"
,
...
...
src/assets/img/video.png
0 → 100644
View file @
e3b2aae7
1.74 KB
src/views/Result.vue
View file @
e3b2aae7
This diff is collapsed.
Click to expand it.
src/views/ResultDetail.vue
View file @
e3b2aae7
This diff is collapsed.
Click to expand it.
src/views/Task.vue
View file @
e3b2aae7
...
@@ -146,13 +146,8 @@
...
@@ -146,13 +146,8 @@
</baidu-map>
</baidu-map>
</div>
</div>
</div>
</div>
<el-dialog
:visible
.
sync=
"isShowPicture"
width=
"960px"
>
<el-dialog
:visible
.
sync=
"isShowPicture"
width=
"960px"
>
<div
:style=
"'height:' + fullHeight + 'px; position: relative;'"
ref=
"mainW"
>
<img
:src=
"bigImgUrl"
width=
"100%"
/>
<img
:src=
"bigImgUrl"
ref=
"BGIMG"
width=
"100%"
@
load=
"loadBigImg"
/>
<div
v-for=
"(item) in customStyleArray"
:key=
"item"
>
<div
class=
"dash"
:style=
"item"
v-if=
"showRedBox"
></div>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -162,17 +157,13 @@ import axios from 'axios';
...
@@ -162,17 +157,13 @@ import axios from 'axios';
import
gcoord
from
'gcoord'
;
import
gcoord
from
'gcoord'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
Message
}
from
'element-ui'
;
import
{
Message
}
from
'element-ui'
;
import
{
address
}
from
'../config'
;
import
{
address
,
imgAddress
}
from
'../config'
;
import
{
export_json_to_excel
}
from
'@/excel/Export2Excel'
;
import
{
export_json_to_excel
}
from
'@/excel/Export2Excel'
;
export
default
{
export
default
{
name
:
'task'
,
name
:
'task'
,
data
()
{
data
()
{
return
{
return
{
fullHeight
:
document
.
documentElement
.
clientHeight
/
1.5
,
styleItem
:
{
},
tableData
:
[],
tableData
:
[],
infoWindow
:
{
infoWindow
:
{
show
:
false
,
show
:
false
,
...
@@ -249,7 +240,6 @@ export default {
...
@@ -249,7 +240,6 @@ export default {
],
],
},
},
searchLoading
:
false
,
searchLoading
:
false
,
customStyleArray
:
[],
};
};
},
},
mounted
()
{},
mounted
()
{},
...
@@ -258,25 +248,6 @@ export default {
...
@@ -258,25 +248,6 @@ export default {
this
.
queryTravel
();
this
.
queryTravel
();
},
},
methods
:
{
methods
:
{
loadBigImg
()
{
const
newRedArray
=
[];
this
.
scale
=
this
.
$refs
.
BGIMG
.
naturalWidth
/
this
.
$refs
.
mainW
.
offsetWidth
;
this
.
hscale
=
this
.
$refs
.
BGIMG
.
naturalHeight
/
this
.
$refs
.
mainW
.
offsetHeight
;
this
.
customStyleArray
.
forEach
((
e
)
=>
{
const
customStyle
=
{
top
:
`
${
e
.
positionRight
/
this
.
hscale
}
px`
,
left
:
`
${
e
.
positionLeft
/
this
.
scale
}
px`
,
width
:
`
${
e
.
positionWidth
/
this
.
scale
}
px`
,
height
:
`
${
e
.
positionHeight
/
this
.
hscale
}
px`
,
};
newRedArray
.
push
(
customStyle
);
});
this
.
customStyleArray
=
newRedArray
;
this
.
showRedBox
=
true
;
},
showTitle
(
e
)
{
showTitle
(
e
)
{
this
.
infoPosition
.
lng
=
e
.
point
.
lng
;
this
.
infoPosition
.
lng
=
e
.
point
.
lng
;
this
.
infoPosition
.
lat
=
e
.
point
.
lat
;
this
.
infoPosition
.
lat
=
e
.
point
.
lat
;
...
@@ -298,12 +269,9 @@ export default {
...
@@ -298,12 +269,9 @@ export default {
},
},
showPicture
(
e
)
{
showPicture
(
e
)
{
this
.
infos
.
forEach
((
item
)
=>
{
this
.
infos
.
forEach
((
item
)
=>
{
console
.
log
(
JSON
.
stringify
(
item
));
if
(
item
.
lng
==
e
.
point
.
lng
&&
item
.
lat
==
e
.
point
.
lat
)
{
if
(
item
.
lng
==
e
.
point
.
lng
&&
item
.
lat
==
e
.
point
.
lat
)
{
// 根据坐标信息获取图片
// 根据坐标信息获取图片
// 这个是描点的
this
.
bigImgUrl
=
`
${
imgAddress
this
.
getTrajectImgLocation
(
item
.
channel
,
item
.
plateNo
,
`
${
item
.
date
}
${
item
.
time
}
`
);
this
.
bigImgUrl
=
`
${
address
}
getTrajectImg?channel=
${
}
getTrajectImg?channel=
${
item
.
channel
item
.
channel
}
&equipment=
${
}
&equipment=
${
...
@@ -327,40 +295,7 @@ export default {
...
@@ -327,40 +295,7 @@ export default {
equipment
:
plateNo
,
equipment
:
plateNo
,
createTime
,
createTime
,
})
})
// eslint-disable-next-line no-unused-vars
.
then
((
response
)
=>
{})
.
then
((
response
)
=>
{
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
getTrajectImgLocation
(
channel
,
plateNo
,
createTime
)
{
axios
.
get
(
`
${
address
}
getTrajectImgLocation?channel=
${
channel
}
&equipment=
${
plateNo
}
&createTime=
${
createTime
}
`
,
)
// eslint-disable-next-line no-unused-vars
.
then
((
response
)
=>
{
const
styleArray
=
response
.
data
.
data
;
this
.
customStyleArray
=
[];
styleArray
.
forEach
((
e
)
=>
{
const
point
=
JSON
.
parse
(
e
).
location
;
if
(
point
.
length
===
4
)
{
const
style
=
{
positionLeft
:
point
[
0
],
positionRight
:
point
[
1
],
positionWidth
:
point
[
2
]
-
point
[
0
],
positionHeight
:
point
[
3
]
-
point
[
1
],
};
this
.
customStyleArray
.
push
(
style
);
}
});
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
console
.
log
(
error
);
console
.
log
(
error
);
});
});
...
@@ -763,9 +698,4 @@ export default {
...
@@ -763,9 +698,4 @@ export default {
}
}
}
}
}
}
.dash{
position: absolute;
border: 2px #EC292A dashed;
}
</
style
>
</
style
>
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