Commit 29b7995b authored by xinzhedeai's avatar xinzhedeai

视频配置修改

parent 9b94b542
......@@ -122,6 +122,7 @@
</el-row>
</el-form>
<div style="margin: 10px 0">
<!-- <el-divider></el-divider>
<h5>监控摄像头</h5> -->
<el-divider content-position="left">通道列表</el-divider>
......@@ -167,7 +168,7 @@
:disabled="editState == 3"
/>
<el-button
v-if="eIndex===0"
v-if="eIndex===dialog1Data.videoChannelList.length-1"
type="primary"
@click="addEmployee"
:disabled="editState == 3"
......@@ -176,7 +177,7 @@
<el-button
type="danger"
@click="deleteEmployee(index, eIndex)"
v-if="eIndex > 0"
v-if="eIndex < dialog1Data.videoChannelList.length-1"
:disabled="editState == 3"
>删除</el-button
>
......@@ -292,6 +293,9 @@ export default {
dialog1Editing: false,
dialog1Saving: false,
dialog1Data: {
mineId:'',
appKey:'',
appSecret: '',
videoChannelList: [
{
channel: "",
......@@ -461,16 +465,30 @@ export default {
});
},
beforeDialog1Open() {
// 窗口打开前的统一操作
if (this.editState === 1) {
this.addingData = this.dialog1Data;
}
// // 窗口打开前的统一操作
// if (this.editState === 1) {
// this.addingData = this.dialog1Data;
// }
},
doAdd() {
this.beforeDialog1Open();
this.editState = 1;
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.$nextTick(() => {
this.$refs["dialog1Form"].clearValidate();
......@@ -507,6 +525,10 @@ export default {
}).then(
() => {
videoConfigApi.deleteById([id]).then((response) => {
this.$message({
type: "success",
message: "操作成功",
});
this.searchSubmit();
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment