Commit 29b7995b authored by xinzhedeai's avatar xinzhedeai

视频配置修改

parent 9b94b542
...@@ -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();
}); });
}, },
......
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