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