Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
fanxing_new
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 5dad5317
authored
Mar 16, 2020
by
潘建波
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'fanxing' of
http://git.keliuyun.com:55676/platform/fanxing_new
into fanxing
2 parents
34221e15
a7791136
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
132 additions
and
42 deletions
src/assets/resetElementCss/index.css
src/main.js
src/router/index.js
src/views/Login.vue
src/views/search/event.vue
src/views/search/illegal.vue
src/views/search/traficflow.vue
src/views/search/vehicleSearch.vue
src/views/search/xcycle.vue
src/assets/resetElementCss/index.css
View file @
5dad531
...
...
@@ -140,6 +140,9 @@
.el-table--striped
.el-table__body
tr
.el-table__row--striped
td
{
background
:
#FFFFFF
;
}
.el-table--enable-row-hover
.el-table__body
tr
:hover
>
td
{
background-color
:
#F5F7FA
!important
;
}
/* 提示 */
.el-tooltip__popper
{
padding
:
6px
12px
;
...
...
src/main.js
View file @
5dad531
...
...
@@ -20,8 +20,8 @@ Vue.prototype.$buildCode = buildCode;
Vue
.
prototype
.
oParse
=
new
XML
.
ObjTree
();
Vue
.
prototype
.
axios
=
axios
;
//
import VueParticles from "vue-particles";
//
Vue.use(VueParticles);
import
VueParticles
from
"vue-particles"
;
Vue
.
use
(
VueParticles
);
Vue
.
use
(
api
);
Vue
.
use
(
ElementUI
,
{
size
:
"small"
,
zIndex
:
3000
});
...
...
src/router/index.js
View file @
5dad531
...
...
@@ -156,15 +156,15 @@ export const asyncRouterMap = [
component
:
resolve
=>
require
([
"../views/resource/videoEquipment.vue"
],
resolve
)
},
{
path
:
"/resource/equipment"
,
name
:
"分析设备"
,
meta
:
{
icon
:
"el-icon-location"
},
component
:
resolve
=>
require
([
"../views/resource/analysis.vue"
],
resolve
)
},
//
{
//
path: "/resource/equipment",
//
name: "分析设备",
//
meta: {
//
icon: "el-icon-location"
//
},
//
component: resolve =>
//
require(["../views/resource/analysis.vue"], resolve)
//
},
{
path
:
"/resource/store_confs"
,
name
:
"存储配置"
,
...
...
src/views/Login.vue
View file @
5dad531
<
template
>
<div
id=
"login"
:style=
"
{ height: innerHeight + 'px' }">
<!--
<vue-particles
<!-- ie空白解决方法https://blog.csdn.net/heyNewbie/article/details/99623550 -->
<vue-particles
color=
"#dedede"
:particleOpacity=
"0.7"
:particlesNumber=
"80"
...
...
@@ -17,7 +18,7 @@
:clickEffect=
"true"
clickMode=
"push"
>
</vue-particles>
-->
</vue-particles>
<div
class=
"box"
>
<h1>
视频分析综合管理平台
</h1>
<div
style=
"width: 60%;margin: 0 auto;"
>
...
...
@@ -136,7 +137,7 @@ export default {
}).
then
(
res
=>
{
localStorage
.
setItem
(
'menu'
,
JSON
.
stringify
(
res
.
menu_tree
[
0
].
children
))
this
.
$store
.
dispatch
(
'GetMenuRole'
,
res
.
menu_tree
[
0
].
children
).
then
(
res
=>
{
this
.
$router
.
push
(
'/'
)
this
.
$router
.
push
(
'/
trficcshow
'
)
})
})
},
...
...
src/views/search/event.vue
View file @
5dad531
...
...
@@ -65,6 +65,13 @@
stripe
border
@
selection-change=
"handleSelectionChange"
>
<el-table-column
prop=
"index"
align=
"center"
label=
"#"
:formatter=
"indexFormatter"
width=
"50"
>
</el-table-column>
<el-table-column
prop=
"event_cate"
align=
"center"
...
...
@@ -216,6 +223,9 @@
this
.
getData
()
},
methods
:{
indexFormatter
(
row
,
column
,
cellValue
,
index
){
return
index
+
(
this
.
page
-
1
)
*
this
.
pageSize
+
1
;
},
cateFormatter
(
row
,
column
,
cellValue
,
index
){
let
name
=
''
this
.
cateList
.
forEach
(
item
=>
{
...
...
@@ -238,12 +248,17 @@
})
},
getSubTask
(){
this
.
conditions
.
subtask_id
=
null
;
this
.
$api
.
task
.
getSubTask
(
this
.
conditions
.
task_id
).
then
(
res
=>
{
this
.
subTaskList
=
res
.
list_data
;
if
(
this
.
subTaskList
.
length
>
0
){
this
.
conditions
.
subtask_id
=
this
.
subTaskList
[
0
].
subtask_id
if
(
res
.
list_data
==
null
){
this
.
subTaskList
=
[];
}
else
{
this
.
subTaskList
=
res
.
list_data
;
}
this
.
subTaskList
.
unshift
({
subtask_id
:
''
,
subtask_name
:
'全部'
})
this
.
conditions
.
subtask_id
=
''
;
})
},
cateChange
(){
...
...
src/views/search/illegal.vue
View file @
5dad531
...
...
@@ -90,6 +90,13 @@
align=
"center"
width=
"55"
>
</el-table-column>
<el-table-column
prop=
"index"
align=
"center"
label=
"#"
:formatter=
"indexFormatter"
width=
"50"
>
</el-table-column>
<el-table-column
prop=
"vehicle_plate_text"
align=
"center"
...
...
@@ -293,6 +300,9 @@
this
.
getData
()
},
methods
:{
indexFormatter
(
row
,
column
,
cellValue
,
index
){
return
index
+
(
this
.
page
-
1
)
*
this
.
pageSize
+
1
;
},
getTaskList
(){
this
.
$api
.
task
.
getTask
({
source_type
:
"pull_video_stream"
,
...
...
@@ -306,12 +316,17 @@
})
},
getSubTask
(){
this
.
conditions
.
subtask_id
=
null
;
this
.
$api
.
task
.
getSubTask
(
this
.
conditions
.
task_id
).
then
(
res
=>
{
this
.
subTaskList
=
res
.
list_data
;
if
(
this
.
subTaskList
.
length
>
0
){
this
.
conditions
.
subtask_id
=
this
.
subTaskList
[
0
].
subtask_id
if
(
res
.
list_data
==
null
){
this
.
subTaskList
=
[];
}
else
{
this
.
subTaskList
=
res
.
list_data
;
}
this
.
subTaskList
.
unshift
({
subtask_id
:
''
,
subtask_name
:
'全部'
})
this
.
conditions
.
subtask_id
=
''
;
})
},
playFun
(
index
,
row
){
...
...
src/views/search/traficflow.vue
View file @
5dad531
...
...
@@ -72,6 +72,13 @@
:height=
"tableHeight"
stripe
border
>
<el-table-column
prop=
"index"
align=
"center"
label=
"#"
:formatter=
"indexFormatter"
width=
"50"
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"event_dt"
...
...
@@ -209,6 +216,9 @@
this
.
getTaskList
();
},
methods
:{
indexFormatter
(
row
,
column
,
cellValue
,
index
){
return
index
+
(
this
.
page
-
1
)
*
this
.
pageSize
+
1
;
},
getTaskList
(){
this
.
$api
.
task
.
getTask
({
source_type
:
"pull_video_stream"
,
...
...
@@ -222,12 +232,17 @@
})
},
getSubTask
(){
this
.
conditions
.
subtask_id
=
null
;
this
.
$api
.
task
.
getSubTask
(
this
.
conditions
.
task_id
).
then
(
res
=>
{
this
.
subTaskList
=
res
.
list_data
;
if
(
this
.
subTaskList
.
length
>
0
){
this
.
conditions
.
subtask_id
=
this
.
subTaskList
[
0
].
subtask_id
if
(
res
.
list_data
==
null
){
this
.
subTaskList
=
[];
}
else
{
this
.
subTaskList
=
res
.
list_data
;
}
this
.
subTaskList
.
unshift
({
subtask_id
:
''
,
subtask_name
:
'全部'
})
this
.
conditions
.
subtask_id
=
''
;
})
},
typeFormatter
(
row
,
column
,
cellValue
,
index
){
...
...
src/views/search/vehicleSearch.vue
View file @
5dad531
...
...
@@ -19,7 +19,7 @@
</el-form-item>
<el-form-item
label=
"视频名称"
>
<span
class=
"selectBox"
>
<el-select
placeholder=
"请选择"
:popper-append-to-body=
false
v-model=
"conditions.subtask_id"
>
<el-select
placeholder=
"请选择"
:popper-append-to-body=
false
v-model=
"conditions.subtask_id"
>
<el-option
v-for=
'item in subTaskList'
:value=
"item.subtask_id"
:key=
"item.subtask_id"
:label=
'item.subtask_name'
></el-option>
</el-select>
</span>
...
...
@@ -115,11 +115,19 @@
stripe
border
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
align=
"center"
width=
"55"
>
</el-table-column>
<el-table-column
prop=
"index"
align=
"center"
label=
"#"
:formatter=
"indexFormatter"
width=
"50"
>
</el-table-column>
<el-table-column
prop=
"vehicle_plate_text"
align=
"center"
...
...
@@ -286,8 +294,8 @@
plate
:
''
,
task_id
:
''
,
curdelid
:
''
,
subtask_nam
e
:
''
,
s
pecial_type
:
''
special_typ
e
:
''
,
s
ubtask_id
:
''
},
brandList
:
this
.
$buildCode
.
getCodeList
(
'车辆品牌'
),
vehicleTypeList
:
this
.
$buildCode
.
getCodeList
(
'车辆类型'
),
...
...
@@ -316,6 +324,9 @@
this
.
getTaskList
();
},
methods
:{
indexFormatter
(
row
,
column
,
cellValue
,
index
){
return
index
+
(
this
.
page
-
1
)
*
this
.
pageSize
+
1
;
},
getTaskList
(){
this
.
$api
.
task
.
getTask
({
source_type
:
"pull_video_stream"
,
...
...
@@ -329,16 +340,31 @@
})
},
getSubTask
(){
this
.
conditions
.
subtask_id
=
null
;
this
.
$api
.
task
.
getSubTask
(
this
.
conditions
.
task_id
).
then
(
res
=>
{
this
.
subTaskList
=
res
.
list_data
;
if
(
this
.
subTaskList
.
length
>
0
){
this
.
conditions
.
subtask_id
=
this
.
subTaskList
[
0
].
subtask_id
if
(
res
.
list_data
==
null
){
this
.
subTaskList
=
[];
}
else
{
this
.
subTaskList
=
res
.
list_data
;
}
this
.
subTaskList
.
unshift
({
subtask_id
:
''
,
subtask_name
:
'全部'
})
this
.
conditions
.
subtask_id
=
''
;
})
},
exportFun
(){
window
.
open
(
encodeURI
(
process
.
env
.
VUE_APP_URL
+
'/api/v1/traffic/events/export?s='
+
Math
.
random
()
+
'&event_type=&event_dt__gte='
+
this
.
$moment
(
this
.
conditions
.
start_dt
).
utc
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
+
'&event_dt__lt='
+
this
.
$moment
(
this
.
conditions
.
end_dt
).
utc
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
+
'&subtask_name='
+
this
.
conditions
.
subtask_name
+
'&vehicle_type='
+
this
.
conditions
.
car_type
+
'&body_color='
+
this
.
conditions
.
car_color
+
'&logo_type='
+
this
.
conditions
.
logo_type
+
'&plate_number__like='
+
this
.
conditions
.
plate
+
'&task_id='
+
this
.
conditions
.
task_id
+
'&special_type='
+
this
.
conditions
.
special_type
))
window
.
open
(
encodeURI
(
process
.
env
.
VUE_APP_URL
+
'/api/v1/traffic/events/export?s='
+
Math
.
random
()
+
'&event_type=&event_dt__gte='
+
this
.
$moment
(
this
.
conditions
.
start_dt
).
utc
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
+
'&event_dt__lt='
+
this
.
$moment
(
this
.
conditions
.
end_dt
).
utc
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
+
'&subtask_id='
+
this
.
conditions
.
subtask_id
+
'&vehicle_type='
+
this
.
conditions
.
car_type
+
'&body_color='
+
this
.
conditions
.
car_color
+
'&logo_type='
+
this
.
conditions
.
logo_type
+
'&plate_number__like='
+
this
.
conditions
.
plate
+
'&task_id='
+
this
.
conditions
.
task_id
+
'&special_type='
+
this
.
conditions
.
special_type
))
},
batchdel
(){
if
(
this
.
selectcheck
.
length
==
0
){
...
...
@@ -421,7 +447,6 @@
event_dt__gte
:
this
.
$moment
(
this
.
conditions
.
start_dt
).
utc
().
format
(
'YYYY-MM-DD HH:mm:ss'
),
event_dt__lt
:
this
.
$moment
(
this
.
conditions
.
end_dt
).
utc
().
format
(
'YYYY-MM-DD HH:mm:ss'
),
// source_type: this.conditions.source_type,
subtask_name
:
this
.
conditions
.
subtask_name
,
vehicle_type
:
this
.
conditions
.
car_type
,
body_color
:
this
.
conditions
.
car_color
,
logo_type
:
this
.
conditions
.
logo_type
,
...
...
@@ -430,7 +455,8 @@
plate_type
:
this
.
conditions
.
plate_type
,
event_type
:
''
,
special_type
:
this
.
conditions
.
special_type
,
task_id
:
this
.
conditions
.
task_id
task_id
:
this
.
conditions
.
task_id
,
subtask_id
:
this
.
conditions
.
subtask_id
}
this
.
$api
.
search
.
tableList
(
search_params
).
then
((
res
)
=>
{
...
...
src/views/search/xcycle.vue
View file @
5dad531
...
...
@@ -143,6 +143,13 @@
align=
"center"
width=
"55"
>
</el-table-column>
<el-table-column
prop=
"index"
align=
"center"
label=
"#"
:formatter=
"indexFormatter"
width=
"50"
>
</el-table-column>
<el-table-column
prop=
"xcycle_type_text"
align=
"center"
...
...
@@ -323,8 +330,8 @@
start_dt
:
start_dt
,
end_dt
:
end_dt
,
event_type
:
'xcycle'
,
subtask_id
:
null
,
task_id
:
null
,
subtask_id
:
''
,
task_id
:
''
,
xcycle_type
:
''
,
sex
:
''
,
company
:
''
,
...
...
@@ -360,6 +367,9 @@
this
.
getData
()
},
methods
:{
indexFormatter
(
row
,
column
,
cellValue
,
index
){
return
index
+
(
this
.
page
-
1
)
*
this
.
pageSize
+
1
;
},
getTaskList
(){
this
.
$api
.
task
.
getTask
({
source_type
:
"pull_video_stream"
,
...
...
@@ -373,12 +383,17 @@
})
},
getSubTask
(){
this
.
conditions
.
subtask_id
=
null
;
this
.
$api
.
task
.
getSubTask
(
this
.
conditions
.
task_id
).
then
(
res
=>
{
this
.
subTaskList
=
res
.
list_data
;
if
(
this
.
subTaskList
.
length
>
0
){
this
.
conditions
.
subtask_id
=
this
.
subTaskList
[
0
].
subtask_id
if
(
res
.
list_data
==
null
){
this
.
subTaskList
=
[];
}
else
{
this
.
subTaskList
=
res
.
list_data
;
}
this
.
subTaskList
.
unshift
({
subtask_id
:
''
,
subtask_name
:
'全部'
})
this
.
conditions
.
subtask_id
=
''
;
})
},
typeChange
(){
...
...
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