From 8dbf99f8ba80b84c2d7815e53088068fd37cb03c Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Sun, 8 Oct 2023 09:46:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=A1=B5=E9=9D=A2bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/paramclass.js | 9 ++++++++ src/views/model/alert/deviceparamalert.vue | 25 ++++++++++++++++++++-- src/views/model/params/index.vue | 9 +++++--- 3 files changed, 38 insertions(+), 5 deletions(-) diff --git a/src/api/model/paramclass.js b/src/api/model/paramclass.js index b1ffda2..612bc17 100644 --- a/src/api/model/paramclass.js +++ b/src/api/model/paramclass.js @@ -50,4 +50,13 @@ export function exportParamclass(query) { method: 'get', params: query }) +} + +// 查询参数模型信息列表 +export function listParamclassNoPage(query) { + return request({ + url: '/model/dcModelParamclass/listNoPage', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/src/views/model/alert/deviceparamalert.vue b/src/views/model/alert/deviceparamalert.vue index f1c8e55..a62342d 100644 --- a/src/views/model/alert/deviceparamalert.vue +++ b/src/views/model/alert/deviceparamalert.vue @@ -89,7 +89,7 @@ @@ -121,7 +121,7 @@ 删除 @@ -649,6 +649,27 @@ function handleDelete() { }).catch(() => {}); } +function handleDeleteByRow(row) { + let rows = []; + let names = ""; + let _ids = []; + rows.push(row); + rows.forEach(item=>{ + _ids.push(item.id); + if(names == ""){ + names = item.deviceName + item.paramName; + }else{ + names = names + "," + item.deviceName + item.paramName; + } + }) + proxy.$modal.confirm('是否确认删除设备参数名称为"' + names + '"的数据项?').then(function() { + return delAlert(_ids); + }).then(() => { + getList(); + proxy.$modal.msgSuccess("删除成功"); + }).catch(() => {}); +} + /** 删除按钮操作 */ function handleDeleteRow(row) { const _ids = row.id || ids.value; diff --git a/src/views/model/params/index.vue b/src/views/model/params/index.vue index 2a27039..c3f94e7 100644 --- a/src/views/model/params/index.vue +++ b/src/views/model/params/index.vue @@ -375,7 +375,7 @@