Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZiBoYingJI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kimber
ZiBoYingJI
Commits
29b7995b
Commit
29b7995b
authored
Aug 05, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频配置修改
parent
9b94b542
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
7 deletions
+29
-7
videoConfig.vue
src/views/kd/e/video/videoConfig.vue
+29
-7
No files found.
src/views/kd/e/video/videoConfig.vue
View file @
29b7995b
...
@@ -122,6 +122,7 @@
...
@@ -122,6 +122,7 @@
</el-row>
</el-row>
</el-form>
</el-form>
<div
style=
"margin: 10px 0"
>
<div
style=
"margin: 10px 0"
>
<!--
<el-divider></el-divider>
<!--
<el-divider></el-divider>
<h5>
监控摄像头
</h5>
-->
<h5>
监控摄像头
</h5>
-->
<el-divider
content-position=
"left"
>
通道列表
</el-divider>
<el-divider
content-position=
"left"
>
通道列表
</el-divider>
...
@@ -167,7 +168,7 @@
...
@@ -167,7 +168,7 @@
:disabled=
"editState == 3"
:disabled=
"editState == 3"
/>
/>
<el-button
<el-button
v-if=
"eIndex===
0
"
v-if=
"eIndex===
dialog1Data.videoChannelList.length-1
"
type=
"primary"
type=
"primary"
@
click=
"addEmployee"
@
click=
"addEmployee"
:disabled=
"editState == 3"
:disabled=
"editState == 3"
...
@@ -176,7 +177,7 @@
...
@@ -176,7 +177,7 @@
<el-button
<el-button
type=
"danger"
type=
"danger"
@
click=
"deleteEmployee(index, eIndex)"
@
click=
"deleteEmployee(index, eIndex)"
v-if=
"eIndex
> 0
"
v-if=
"eIndex
<
dialog1Data
.
videoChannelList
.
length-1
"
:disabled=
"editState == 3"
:disabled=
"editState == 3"
>
删除
</el-button
>
删除
</el-button
>
>
...
@@ -292,6 +293,9 @@ export default {
...
@@ -292,6 +293,9 @@ export default {
dialog1Editing
:
false
,
dialog1Editing
:
false
,
dialog1Saving
:
false
,
dialog1Saving
:
false
,
dialog1Data
:
{
dialog1Data
:
{
mineId
:
''
,
appKey
:
''
,
appSecret
:
''
,
videoChannelList
:
[
videoChannelList
:
[
{
{
channel
:
""
,
channel
:
""
,
...
@@ -461,16 +465,30 @@ export default {
...
@@ -461,16 +465,30 @@ export default {
});
});
},
},
beforeDialog1Open
()
{
beforeDialog1Open
()
{
// 窗口打开前的统一操作
//
//
窗口打开前的统一操作
if
(
this
.
editState
===
1
)
{
//
if (this.editState === 1) {
this
.
addingData
=
this
.
dialog1Data
;
//
this.addingData = this.dialog1Data;
}
//
}
},
},
doAdd
()
{
doAdd
()
{
this
.
beforeDialog1Open
();
this
.
beforeDialog1Open
();
this
.
editState
=
1
;
this
.
editState
=
1
;
this
.
dialog1Editing
=
true
;
this
.
dialog1Editing
=
true
;
this
.
dialog1Data
=
this
.
addingData
;
// 初始值:上次编辑的内容
// this.dialog1Data = this.addingData; // 初始值:上次编辑的内容
this
.
dialog1Data
=
{
mineId
:
''
,
appKey
:
''
,
appSecret
:
''
,
videoChannelList
:
[
{
channel
:
""
,
id
:
""
,
name
:
""
,
remark
:
""
,
captcha
:
''
},
],
}
this
.
dialog1Show
=
true
;
this
.
dialog1Show
=
true
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
"
dialog1Form
"
].
clearValidate
();
this
.
$refs
[
"
dialog1Form
"
].
clearValidate
();
...
@@ -507,6 +525,10 @@ export default {
...
@@ -507,6 +525,10 @@ export default {
}).
then
(
}).
then
(
()
=>
{
()
=>
{
videoConfigApi
.
deleteById
([
id
]).
then
((
response
)
=>
{
videoConfigApi
.
deleteById
([
id
]).
then
((
response
)
=>
{
this
.
$message
({
type
:
"
success
"
,
message
:
"
操作成功
"
,
});
this
.
searchSubmit
();
this
.
searchSubmit
();
});
});
},
},
...
...
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