diff --git a/src/views/web/camera/index.vue b/src/views/web/camera/index.vue index 892ffd1..b9540a4 100644 --- a/src/views/web/camera/index.vue +++ b/src/views/web/camera/index.vue @@ -47,8 +47,8 @@ - - + + @@ -432,6 +453,7 @@ export default { title: "", // 是否显示弹出层 open: false, + configopen: false, videoData:{ open: false, }, @@ -449,6 +471,7 @@ export default { }, // 表单参数 form: {}, + configform: {}, // 表单校验 rules: { }, @@ -623,6 +646,16 @@ export default { }; this.resetForm("form"); }, + configreset() { + this.configform = { + id: null, + lstart: null, + tlen: null, + clen: null, + cp: null + }; + this.resetForm("configform"); + }, // 表单重置 ftpCfgReset() { this.ftp.form = { @@ -754,6 +787,12 @@ export default { this.title = "修改"; } }, + setConfig(row){ + this.configreset(); + this.configform = row.paramsObject; + this.configform.id = row.id; + this.configopen = true; + }, async refreshRssi(row) { const id = row.id; const status = row.status; @@ -996,6 +1035,13 @@ export default { } }); }, + async configSubmit() { + let res = await this.$axiosPost('/web/camera/setConfig', this.configform); + if (res.code === 0) { + this.$modal.msgSuccess("设置成功"); + this.configopen = false; + } + }, /** 删除按钮操作 */ async handleDelete(row) { const ids = row.id || this.ids;