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 84835baa
authored
Jul 14, 2020
by
潘建波
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
🐛
实事展示字段显示错误,新建任务,设备管理增加设备类型
1 parent
23fbe983
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
154 additions
and
58 deletions
dist.zip
public/js/version.json
src/api/baseUrl.js
src/api/search/index.js
src/views/Show.vue
src/views/ops/equipment_manage.vue
src/views/resource/treeComponents/videoTree.vue
src/views/sceneManage/setting/demarcate.vue
src/views/search/event.vue
src/views/taskManage/editVideo.vue
dist.zip
View file @
84835ba
No preview for this file type
public/js/version.json
View file @
84835ba
{
"commit"
:
"5acf284075d646461f9a782829fe9d471c4c8fb0"
,
"commitDate"
:
"2020-7-7 18:29"
,
"buildDate"
:
"2020-7-8 10:39"
,
"version"
:
"2.0.4"
,
"info"
:
"feat✨ 任务设置增加10条分页,增加滚动控制修改任务后滚动条还在当前的位置"
}
\ No newline at end of file
{
"commit"
:
"23fbe983f7a7521c94ee2cde07c7494eae55502a"
,
"commitDate"
:
"2020-7-9 14:59"
,
"buildDate"
:
"2020-7-14 11:35"
,
"version"
:
"2.0.5"
,
"info"
:
"删除测试文件"
}
\ No newline at end of file
src/api/baseUrl.js
View file @
84835ba
...
...
@@ -4,7 +4,7 @@ console.log(process.env.NODE_ENV);
switch
(
process
.
env
.
NODE_ENV
)
{
case
"development"
:
// baseUrl = "http://192.168.9.234:20080"; // 测试环境url
baseUrl
=
"http://192.168.9.
149
:20080"
;
// 测试环境url
baseUrl
=
"http://192.168.9.
233
:20080"
;
// 测试环境url
// baseUrl = "http://192.168.9.82:8080"; // 测试环境url
// baseUrl = "http://192.168.9.61:8086";
// baseUrl = 'http://vion-panda.51vip.biz:52510';
...
...
src/api/search/index.js
View file @
84835ba
import
api
from
'../index'
import
urls
from
'./urls'
import
api
from
"../index"
;
import
urls
from
"./urls"
;
export
default
{
tableList
(
params
)
{
return
api
.
get
(
urls
.
tableList
,
params
)
return
api
.
get
(
urls
.
tableList
,
params
)
;
},
detailImg
(
params
,
id
)
{
return
api
.
get
(
urls
.
detailImg
+
id
,
params
)
detailImg
(
params
,
id
)
{
return
api
.
get
(
urls
.
detailImg
+
id
,
params
);
},
delVehicle
(
params
,
id
)
{
delVehicle
(
params
,
id
)
{
// return出去了一个promise
return
api
.
delete
(
urls
.
delVehicle
+
id
,
params
)
return
api
.
delete
(
urls
.
delVehicle
+
id
,
params
);
},
patchdel
(
params
,
id
)
{
patchdel
(
params
,
id
)
{
// return出去了一个promise
return
api
.
delete
(
urls
.
patchdel
,
params
)
return
api
.
delete
(
urls
.
patchdel
,
params
);
},
eventTypes
(
params
,
id
)
{
return
api
.
get
(
urls
.
eventTypes
,
params
)
eventTypes
(
params
,
id
)
{
return
api
.
get
(
urls
.
eventTypes
,
params
);
},
eventTableList
(
params
,
id
)
{
return
api
.
get
(
urls
.
eventTableList
,
params
)
eventTableList
(
params
,
id
)
{
return
api
.
get
(
urls
.
eventTableList
,
params
);
},
traficflow
(
params
,
id
)
{
return
api
.
get
(
urls
.
traficflow
,
params
)
traficflow
(
params
,
id
)
{
return
api
.
get
(
urls
.
traficflow
,
params
);
},
}
\ No newline at end of file
delEvents
(
params
,
id
)
{
return
api
.
delete
(
urls
.
eventTableList
+
"/"
+
id
,
params
);
}
};
src/views/Show.vue
View file @
84835ba
...
...
@@ -24,7 +24,7 @@
<div
style=
"padding:0 10px 10px 10px"
>
<div
class=
"textDiv"
>
<div
v-if=
"resultData[0]"
>
<p>
抓拍时间:
{{
resultData
[
0
].
shoot_
dt
}}
</p>
<p>
抓拍时间:
{{
resultData
[
0
].
shoot_
time
}}
</p>
<p>
抓拍地点:
{{
resultData
[
0
].
location_name
}}
</p>
<p>
车牌号码:
{{
resultData
[
0
].
vehicle_plate_text
}}
</p>
<p>
...
...
@@ -33,7 +33,7 @@
<p>
车身颜色:
{{
resultData
[
0
].
vehicle_body_color_text
}}
</p>
<p>
违法类型:
{{
resultData
[
0
].
illegal
_text
}}
</p>
<p>
违法类型:
{{
resultData
[
0
].
illegal
Type
}}
</p>
</div>
</div>
</div>
...
...
@@ -53,12 +53,12 @@
</div>
<div
class=
"rightDiv"
>
<div
v-if=
"resultData[1]"
>
<p>
抓拍时间:
{{
resultData
[
1
].
shoot_
dt
}}
</p>
<p>
抓拍时间:
{{
resultData
[
1
].
shoot_
time
}}
</p>
<p>
抓拍地点:
{{
resultData
[
1
].
location_name
}}
</p>
<p>
车牌号码:
{{
resultData
[
1
].
vehicle_plate_text
}}
</p>
<p>
车辆类型:
{{
resultData
[
1
].
vehicle_body_type_text
}}
</p>
<p>
车身颜色:
{{
resultData
[
1
].
vehicle_body_color_text
}}
</p>
<p>
违法类型:
{{
resultData
[
1
].
illegal
_text
}}
</p>
<p>
违法类型:
{{
resultData
[
1
].
illegal
Type
}}
</p>
</div>
</div>
<div
style=
"clear: both;"
></div>
...
...
@@ -73,12 +73,12 @@
</div>
<div
class=
"rightDiv"
>
<div
v-if=
"resultData[2]"
>
<p>
抓拍时间:
{{
resultData
[
2
].
shoot_
dt
}}
</p>
<p>
抓拍时间:
{{
resultData
[
2
].
shoot_
time
}}
</p>
<p>
抓拍地点:
{{
resultData
[
2
].
location_name
}}
</p>
<p>
车牌号码:
{{
resultData
[
2
].
vehicle_plate_text
}}
</p>
<p>
车辆类型:
{{
resultData
[
2
].
vehicle_body_type_text
}}
</p>
<p>
车身颜色:
{{
resultData
[
2
].
vehicle_body_color_text
}}
</p>
<p>
违法类型:
{{
resultData
[
2
].
illegal
_text
}}
</p>
<p>
违法类型:
{{
resultData
[
2
].
illegal
Type
}}
</p>
</div>
</div>
<div
style=
"clear: both;"
></div>
...
...
@@ -93,12 +93,12 @@
</div>
<div
class=
"rightDiv"
>
<div
v-if=
"resultData[3]"
>
<p>
抓拍时间:
{{
resultData
[
3
].
shoot_
dt
}}
</p>
<p>
抓拍时间:
{{
resultData
[
3
].
shoot_
time
}}
</p>
<p>
抓拍地点:
{{
resultData
[
3
].
location_name
}}
</p>
<p>
车牌号码:
{{
resultData
[
3
].
vehicle_plate_text
}}
</p>
<p>
车辆类型:
{{
resultData
[
3
].
vehicle_body_type_text
}}
</p>
<p>
车身颜色:
{{
resultData
[
3
].
vehicle_body_color_text
}}
</p>
<p>
违法类型:
{{
resultData
[
3
].
illegal
_text
}}
</p>
<p>
违法类型:
{{
resultData
[
3
].
illegal
Type
}}
</p>
</div>
</div>
<div
style=
"clear: both;"
></div>
...
...
src/views/ops/equipment_manage.vue
View file @
84835ba
...
...
@@ -31,13 +31,13 @@
</div>
<div
class=
"info-content"
>
<div
class=
"con-item"
>
<span
class=
"con-label"
>
平台
类型:
</span>
<span
class=
"con-text"
></span>
<span
class=
"con-label"
>
设备
类型:
</span>
<span
class=
"con-text"
>
{{
curDevData
.
license_info
.
platType
}}
</span>
</div>
<div
class=
"con-item"
>
<
!--
<
div
class=
"con-item"
>
<span
class=
"con-label"
>
设备类型:
</span>
<span
class=
"con-text"
></span>
</div>
</div>
-->
<div
class=
"con-item"
>
<span
class=
"con-label"
>
设备名称:
</span>
<span
class=
"con-text"
>
{{
curDevData
.
device_name
}}
</span>
...
...
src/views/resource/treeComponents/videoTree.vue
View file @
84835ba
...
...
@@ -115,7 +115,7 @@ export default {
beforeup
(
file
)
{
this
.
updata
.
name
=
file
.
name
;
this
.
updata
.
vchan_type
=
"vfile"
;
this
.
updata
.
vchan_refid
=
new
Date
().
getTime
();
//
this.updata.vchan_refid = new Date().getTime();
},
upsuccess
(
req
)
{
if
(
req
.
ecode
==
200
)
{
...
...
src/views/sceneManage/setting/demarcate.vue
View file @
84835ba
...
...
@@ -505,13 +505,8 @@ export default {
//测试验证
let
data
=
CalcCarOutline
(
P1
,
P2
,
[{},
{},
{},
{},
{},
{},
{},
{}]);
this
.
drawArrows
(
P1
,
P2
);
if
(
this
.
startTimer
==
null
)
{
this
.
startTimer
=
setTimeout
(()
=>
{
this
.
startTimer
=
null
;
this
.
drawModel
(
data
);
},
100
);
}
this
.
drawArrows
(
P1
,
P2
);
},
//绘制模型线
drawModel
(
data
)
{
...
...
@@ -671,14 +666,42 @@ export default {
this
.
selectedShape
.
attrs
.
linetype
==
8
||
this
.
selectedShape
.
attrs
.
linetype
==
6
)
{
if
(
this
.
startTimer
==
null
)
{
this
.
startTimer
=
setTimeout
(()
=>
{
this
.
startTimer
=
null
;
this
.
setChangeModel
();
},
500
);
}
}
//模型线变化变换模型
if
(
this
.
selectedShape
.
attrs
.
linetype
==
11
)
{
this
.
ModelChangedrawArrows
(
curmodelnun
);
if
(
this
.
startTimer
==
null
)
{
this
.
startTimer
=
setTimeout
(()
=>
{
this
.
startTimer
=
null
;
this
.
changeModel
(
curmodelnun
);
},
100
);
}
}
this
.
signLayer
.
draw
();
},
ModelChangedrawArrows
(
curmodelnun
)
{
//重绘箭头
let
arrows
=
this
.
signLayer
.
get
(
".arrows"
);
arrows
.
map
(
e
=>
{
this
.
editIndex
=
curmodelnun
;
if
(
e
.
attrs
.
arrowsnum
==
curmodelnun
)
{
e
.
destroy
();
}
});
let
P1
=
{},
P2
=
{};
P1
.
x
=
Number
((
curmodelnun
[
0
]
/
800
).
toFixed
(
6
));
P1
.
y
=
Number
((
curmodelnun
[
1
]
/
500
).
toFixed
(
6
));
P2
.
x
=
Number
((
curmodelnun
[
2
]
/
800
).
toFixed
(
6
));
P2
.
y
=
Number
((
curmodelnun
[
3
]
/
500
).
toFixed
(
6
));
this
.
drawArrows
(
P1
,
P2
);
},
//根据模型线改变模型改变箭头
changeModel
(
modelnum
)
{
let
mlinepoints
=
this
.
selectedShape
.
attrs
.
points
;
...
...
@@ -690,12 +713,7 @@ export default {
e
.
destroy
();
}
});
arrows
.
map
(
e
=>
{
this
.
editIndex
=
modelnum
;
if
(
e
.
attrs
.
arrowsnum
==
modelnum
)
{
e
.
destroy
();
}
});
this
.
getModelData
(
mlinepoints
);
},
//根据设置参数改变模型
...
...
@@ -817,6 +835,10 @@ export default {
handleClose
(
done
)
{
this
.
dialogVisible
=
false
;
this
.
$store
.
commit
(
"setocxstate"
,
1
);
setTimeout
(()
=>
{
this
.
curType
=
0
;
this
.
changeState
(
0
);
},
300
);
}
}
};
...
...
src/views/search/event.vue
View file @
84835ba
...
...
@@ -110,7 +110,7 @@
</el-col>
<div
style=
""
>
<el-table
:data=
"formatt
t
erData"
:data=
"formatterData"
:height=
"tableHeight"
stripe
v-loading=
"loading"
...
...
@@ -189,6 +189,18 @@
@
click=
"detailFun(scope.$index, scope.row)"
></span>
</el-tooltip>
<span
class=
"tableSpanBorder"
></span>
<el-tooltip
content=
"删除"
placement=
"bottom"
effect=
"light"
:visible-arrow=
"false"
>
<span
class=
"el-icon-delete delIcon"
@
click=
"delFun(scope.$index, scope.row)"
></span>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -247,6 +259,9 @@
<!-- <div class="rightArrow" @click="rightFun"><i class="el-icon-d-arrow-right"></i></div> -->
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"danger"
@
click=
"detailDel"
class=
"leftButton"
>
删 除
</el-button
>
<el-button
type=
"primary"
@
click=
"leftFun"
>
上一条
</el-button>
<el-button
type=
"primary"
@
click=
"rightFun"
>
下一条
</el-button>
<el-button
@
click=
"detailVisible = false"
>
关 闭
</el-button>
...
...
@@ -276,9 +291,9 @@ export default {
location_code
:
""
,
event_cate
:
"安防事件"
},
table
Data
:
[],
formatter
Data
:
[],
loading
:
false
,
formatt
t
erData
:
[],
formatterData
:
[],
total
:
0
,
page
:
1
,
pageSize
:
30
,
...
...
@@ -351,6 +366,31 @@ export default {
this
.
type
=
""
;
this
.
eventList
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
name
));
},
delFun
(
index
,
row
)
{
this
.
$confirm
(
"此操作将永久删除该记录, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
$api
.
search
.
delEvents
({},
row
.
event_unid
)
.
then
(
res
=>
{
if
(
res
.
ecode
==
200
)
{
this
.
formatterData
.
splice
(
index
);
this
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
});
this
.
getData
();
}
else
{
this
.
$message
.
error
(
"删除失败!"
);
}
})
.
catch
(
e
=>
{
this
.
$message
.
error
(
"删除失败!"
);
});
});
},
exportFun
()
{
let
cate
=
""
;
if
(
this
.
conditions
.
event_cate
!=
"安防事件"
)
{
...
...
@@ -390,19 +430,19 @@ export default {
});
return
false
;
}
this
.
detailObj
=
this
.
formatt
t
erData
[
this
.
currentIndex
-
1
];
this
.
detailObj
=
this
.
formatterData
[
this
.
currentIndex
-
1
];
this
.
currentIndex
-=
1
;
this
.
getImg
(
this
.
detailObj
.
pics
[
0
].
pic_unid
);
},
rightFun
()
{
if
(
this
.
currentIndex
==
this
.
formatt
t
erData
.
length
-
1
)
{
if
(
this
.
currentIndex
==
this
.
formatterData
.
length
-
1
)
{
this
.
$message
({
message
:
"目前为最后一条"
,
type
:
"warning"
});
return
false
;
}
this
.
detailObj
=
this
.
formatt
t
erData
[
this
.
currentIndex
+
1
];
this
.
detailObj
=
this
.
formatterData
[
this
.
currentIndex
+
1
];
this
.
currentIndex
+=
1
;
this
.
getImg
(
this
.
detailObj
.
pics
[
0
].
pic_unid
);
},
...
...
@@ -425,7 +465,7 @@ export default {
},
getData
()
{
this
.
loading
=
true
;
this
.
formatt
t
erData
=
[];
this
.
formatterData
=
[];
let
offset
=
(
this
.
page
-
1
)
*
this
.
pageSize
;
let
search_params
=
{
limit
:
this
.
pageSize
,
...
...
@@ -453,7 +493,7 @@ export default {
.
then
(
res
=>
{
this
.
total
=
res
.
total_num
;
res
.
list_data
.
forEach
((
item
,
index
)
=>
{
this
.
formatt
t
erData
.
push
(
this
.
$buildCode
.
init
(
item
));
this
.
formatterData
.
push
(
this
.
$buildCode
.
init
(
item
));
});
this
.
loading
=
false
;
})
...
...
@@ -484,6 +524,37 @@ export default {
this
.
getImg
(
row
.
pics
[
0
].
pic_unid
);
}
this
.
detailVisible
=
true
;
},
detailDel
()
{
this
.
$confirm
(
"此操作将永久删除该记录, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
$api
.
search
.
delEvents
({},
this
.
detailObj
.
event_unid
)
.
then
(
res
=>
{
if
(
res
.
ecode
==
200
)
{
this
.
formatterData
.
splice
(
this
.
currentIndex
,
1
);
this
.
detailObj
=
Object
.
assign
(
{},
this
.
formatterData
[
this
.
currentIndex
]
);
this
.
getImg
(
this
.
formatterData
[
this
.
currentIndex
].
pics
[
0
].
pic_unid
);
this
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
});
}
else
{
this
.
$message
.
error
(
"删除失败!"
);
}
})
.
catch
(
e
=>
{
this
.
$message
.
error
(
"删除失败!"
);
});
});
}
}
};
...
...
src/views/taskManage/editVideo.vue
View file @
84835ba
...
...
@@ -268,6 +268,13 @@ export default {
if
(
data
.
enableStatus
==
5
)
{
return
;
}
this
.
$store
.
commit
(
"setocxstate"
,
0
);
this
.
$confirm
(
"删除视频源, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(()
=>
{
if
(
!
data
.
subtask_id
)
{
this
.
tableData
.
forEach
((
ele
,
i
)
=>
{
if
(
ele
.
vchan_refid
==
data
.
vchan_refid
)
{
...
...
@@ -277,13 +284,6 @@ export default {
});
return
;
}
this
.
$store
.
commit
(
"setocxstate"
,
0
);
this
.
$confirm
(
"删除视频源, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(()
=>
{
this
.
$api
.
task
.
deleteSubTask
(
this
.
editData
.
task_id
,
data
.
subtask_id
)
.
then
(
res
=>
{
...
...
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