From 5ed7c6a73a0cd8dda5211f616e30bd2e78c7f8f1 Mon Sep 17 00:00:00 2001 From: 4670101279 Date: Fri, 24 Feb 2023 09:42:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/web/camera/index.vue | 50 ++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) 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;