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 8a360e30
authored
Jun 24, 2020
by
潘建波
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加变倍操作
1 parent
f2d908c7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
95 additions
and
40 deletions
src/views/resource/Author/author.vue
src/views/resource/Codes/eventcodes.vue
src/views/resource/Codes/trfficcodes.vue
src/views/resource/analysis.vue
src/views/resource/store_confs.vue
src/views/resource/treeComponents/cameraDialog.vue
src/views/resource/treeComponents/cameraTree.vue
src/views/resource/treeComponents/videoTree.vue
src/views/resource/videoEquipment.vue
src/views/sceneManage/setting/ytconfig.vue
src/views/resource/Author/author.vue
View file @
8a360e3
...
...
@@ -51,7 +51,7 @@
prev-text=
"上一页"
next-text=
"下一页"
:page-sizes=
"[20, 30, 50, 100, 200]"
layout=
"
prev, pager, next,sizes
"
layout=
"
total, prev, pager, next,sizes, jumper
"
:current-page=
"page"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
...
...
src/views/resource/Codes/eventcodes.vue
View file @
8a360e3
...
...
@@ -86,14 +86,14 @@
</
template
>
</el-table-column>
</el-table>
<div
style=
"margin-top: 28px;"
>
<div
style=
"margin-top: 28px;"
hidden
>
<el-pagination
style=
"float: right;"
background
prev-text=
"上一页"
next-text=
"下一页"
:page-sizes=
"[
20,
30, 50, 100, 200]"
layout=
"
prev, pager, next,sizes
"
:page-sizes=
"[30, 50, 100, 200]"
layout=
"
total, prev, pager, next,sizes, jumper
"
:current-page=
"page"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
...
...
@@ -170,7 +170,7 @@ export default {
return
{
total
:
0
,
page
:
1
,
pageSize
:
2
0
,
pageSize
:
5
0
,
tableData
:
[],
detailVisible
:
false
,
eventCateData
:
[],
...
...
@@ -188,7 +188,7 @@ export default {
},
components
:
{},
created
()
{
//
this.getEventList();
this
.
getEventList
();
this
.
getEventCate
();
},
methods
:
{
...
...
@@ -197,8 +197,14 @@ export default {
this
.
tableData
=
res
.
list_data
;
});
},
cateChange
()
{
this
.
$api
.
codes
.
eventType
({},
this
.
curcate
).
then
(
res
=>
{
cateChange
(
unid
)
{
let
offset
=
(
this
.
page
-
1
)
*
this
.
pageSize
;
let
obj
=
{
limit
:
this
.
pageSize
,
offset
:
offset
};
this
.
tableData
=
[];
this
.
$api
.
codes
.
eventType
(
obj
,
unid
).
then
(
res
=>
{
this
.
tableData
=
res
.
list_data
;
});
},
...
...
src/views/resource/Codes/trfficcodes.vue
View file @
8a360e3
...
...
@@ -33,7 +33,7 @@
type=
"index"
align=
"center"
label=
"#"
width=
"
4
0"
width=
"
6
0"
></el-table-column>
<el-table-column
align=
"center"
prop=
"code_unid"
label=
"code_unid"
>
</el-table-column>
...
...
@@ -77,14 +77,14 @@
</
template
>
</el-table-column>
</el-table>
<div
style=
"margin-top: 28px;"
>
<div
style=
"margin-top: 28px;"
hidden
>
<el-pagination
style=
"float: right;"
background
prev-text=
"上一页"
next-text=
"下一页"
:page-sizes=
"[20, 30, 50, 100, 200]"
layout=
"
prev, pager, next,sizes
"
layout=
"
total, prev, pager, next,sizes, jumper
"
:current-page=
"page"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
...
...
@@ -242,34 +242,54 @@ export default {
});
},
saveAddCode
()
{
this
.
$api
.
codes
.
addTrafficCode
(
this
.
codeData
,
this
.
curCateUnid
)
.
then
(
res
=>
{
console
.
log
(
res
);
});
let
data
=
{
code_unid
:
this
.
codeData
.
code_unid
,
code
:
this
.
codeData
.
code
,
name
:
this
.
codeData
.
name
,
note
:
this
.
codeData
.
note
,
active
:
this
.
codeData
.
active
};
this
.
$api
.
codes
.
addTrafficCode
(
data
,
this
.
curCateUnid
).
then
(
res
=>
{
console
.
log
(
res
);
this
.
detailVisible
=
false
;
this
.
cateChange
(
this
.
curCateUnid
);
});
},
saveEditCode
()
{
saveEditCode
()
{
let
data
=
{
"code_unid"
:
this
.
codeData
.
code_unid
,
"code"
:
this
.
codeData
.
code
,
"name"
:
this
.
codeData
.
name
,
"note"
:
this
.
codeData
.
note
,
"active"
:
this
.
codeData
.
active
}
code_unid
:
this
.
codeData
.
code_unid
,
code
:
this
.
codeData
.
code
,
name
:
this
.
codeData
.
name
,
note
:
this
.
codeData
.
note
,
active
:
this
.
codeData
.
active
};
this
.
$api
.
codes
.
editTrafficCode
(
data
,
this
.
curCateUnid
,
this
.
codeData
.
code_unid
)
.
editTrafficCode
(
data
,
this
.
curCateUnid
,
this
.
codeData
.
code_unid
)
.
then
(
res
=>
{
console
.
log
(
res
);
this
.
detailVisible
=
false
;
this
.
cateChange
(
this
.
curCateUnid
);
});
},
deleteCode
(
index
,
row
)
{
this
.
$api
.
codes
.
editTrafficCode
(
row
,
this
.
curCateUnid
,
row
.
code_unid
)
.
then
(
res
=>
{
console
.
log
(
res
);
this
.
$confirm
(
"此操作将永久删除该文件, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
})
.
then
(()
=>
{
this
.
$api
.
codes
.
deleteTrafficCode
(
this
.
curCateUnid
,
row
.
code_unid
)
.
then
(
res
=>
{
console
.
log
(
res
);
this
.
cateChange
(
this
.
curCateUnid
);
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
});
});
},
handleSizeChange
(
val
)
{
...
...
src/views/resource/analysis.vue
View file @
8a360e3
...
...
@@ -85,7 +85,7 @@
prev-text=
"上一页"
next-text=
"下一页"
:page-sizes=
"[30, 50, 100, 200]"
layout=
"
prev, pager, next,sizes
"
layout=
"
total, prev, pager, next,sizes, jumper
"
:current-page=
"page"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
...
...
src/views/resource/store_confs.vue
View file @
8a360e3
This diff is collapsed.
Click to expand it.
src/views/resource/treeComponents/cameraDialog.vue
View file @
8a360e3
...
...
@@ -207,7 +207,7 @@ export default {
unid
:
this
.
addVideoParam
.
addr_unid
};
this
.
$emit
(
"getAllData"
,
data
);
// this.$parent.$parent.$parent.
submitLaterGet(data)
// this.$parent.$parent.$parent.
$parent.submitLaterGet(data);
this
.
cameraAddVisible
=
false
;
}
else
{
this
.
$message
.
error
(
res
.
enote
);
...
...
@@ -251,6 +251,11 @@ export default {
});
}
}
},
created
(){
this
.
dirCodeList
=
localStorage
.
getItem
(
"卡口方向"
)
?
JSON
.
parse
(
localStorage
.
getItem
(
"卡口方向"
))
:
[];
}
};
</
script
>
...
...
src/views/resource/treeComponents/cameraTree.vue
View file @
8a360e3
...
...
@@ -21,14 +21,14 @@
data
.
vchan_name
==
""
?
"未命名"
:
data
.
vchan_name
}}
</span>
</span>
<span
class=
"tree-btn"
v-if=
"
data.label || data.label == ''"
>
<span
class=
"tree-btn"
v-if=
"
(data.label || data.label == '') && data.vtype ? false:true"
>
<i
class=
"el-icon-plus"
@
click
.
stop=
"nodeAddClick(node, data)"
></i>
<i
class=
"el-icon-edit"
@
click
.
stop=
"nodeEditClick(node, data)"
v-if=
"data.org_type != 'root'"
></i>
<i
<i
class=
"el-icon-delete"
@
click
.
stop=
"nodeDelClick(node, data)"
v-if=
"data.org_type != 'root'"
...
...
src/views/resource/treeComponents/videoTree.vue
View file @
8a360e3
...
...
@@ -135,7 +135,6 @@ export default {
console
.
log
(
"error"
,
req
);
},
handleNodeClick
(
data
)
{
debugger
this
.
$emit
(
"clickHandle"
,
data
,
"video"
);
// this.$parent.$parent.getVideoTable(data,'video')
},
...
...
src/views/resource/videoEquipment.vue
View file @
8a360e3
...
...
@@ -314,8 +314,8 @@ export default {
.
then
(
res
=>
{
this
.
cameraTree
=
res
.
vchan_struct
;
this
.
cameraArr
=
[];
this
.
cameraBuildTree
(
res
.
vchan_struct
);
this
.
getTable
(
data
,
"camera"
);
this
.
camera
TreeData
=
this
.
camera
BuildTree
(
res
.
vchan_struct
);
//
this.getTable(data, "camera");
});
},
syncBuildTree
(
data
)
{
...
...
@@ -394,6 +394,7 @@ export default {
obj
[
"label"
]
=
data
[
i
].
vchan_name
===
""
?
"未命名"
:
data
[
i
].
vchan_name
;
obj
[
"type"
]
=
data
[
i
].
vchan_type
;
obj
[
"vtype"
]
=
"camera"
;
obj
[
"root"
]
=
"手动添加相机资源"
;
obj
[
"orgNode"
]
=
orgObject
;
obj
[
"addrNode"
]
=
addrObject
;
...
...
@@ -459,6 +460,10 @@ export default {
vchan_type
:
"camera"
,
org_unid
:
data
.
unid
};
if
(
data
.
vtype
)
{
this
.
formattterData
.
push
(
data
);
return
;
}
this
.
$api
.
resource
.
getCameraTable
(
search_params
,
this
.
dev_unid
)
.
then
(
res
=>
{
...
...
src/views/sceneManage/setting/ytconfig.vue
View file @
8a360e3
...
...
@@ -54,7 +54,7 @@
</div>
</div>
<div
class=
"control-right-box"
>
<div
class=
"slider-box"
>
<
!--
<
div
class=
"slider-box"
>
<span
class=
"title"
>
光圈
</span>
<el-slider
class=
"slider-item"
v-model=
"value1"
show-input
></el-slider>
</div>
...
...
@@ -69,6 +69,17 @@
<div
class=
"slider-box"
>
<span
class=
"title"
>
速度
</span>
<el-slider
class=
"slider-item"
v-model=
"value4"
show-input
></el-slider>
</div>
-->
<div
class=
"slider-box"
style=
"margin-bottom:6vh;margin-top:3vh"
>
<span
class=
"title"
>
变倍
</span>
<span
class=
"el-icon-circle-plus s-icon s-plus"
@
mousedown=
"Ytontroller(10)"
@
mouseup=
"stopYtontroller(11)"
></span>
<span
class=
"el-icon-remove s-icon"
@
mousedown=
"Ytontroller(9)"
@
mouseup=
"stopYtontroller(11)"
></span>
</div>
<div
class=
"right-bottom-box"
>
<div
class=
"setyzw item-box"
>
...
...
@@ -207,8 +218,9 @@ export default {
.title
{
float
:
left
;
width
:
2vw
;
width
:
2
.3
vw
;
line-height
:
35px
;
font-size
16px
}
.slider-item
{
...
...
@@ -239,4 +251,12 @@ export default {
.yzw-box
.control-btn
:hover
{
color
#409EFF
}
.s-icon
{
font-size
25px
line-height
35px
}
.s-plus
{
margin-right
20px
margin-left
10px
}
</
style
>
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