From be463380e1e720c6ffd0dda8ae4cea1fea36571c Mon Sep 17 00:00:00 2001 From: zhanghan11 Date: Mon, 13 May 2024 16:54:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E5=8F=B0=E5=B1=95=E7=A4=BA=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tzipc-ui/src/api/ipc/rulesConfig.js | 48 +++++++++---------- .../views/ipc/faultTree/ruleConfigDialog.vue | 4 +- tzipc-ui/src/views/ipc/rulesConfig/index.vue | 14 +++--- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/tzipc-ui/src/api/ipc/rulesConfig.js b/tzipc-ui/src/api/ipc/rulesConfig.js index a4aacd0..7222c8b 100644 --- a/tzipc-ui/src/api/ipc/rulesConfig.js +++ b/tzipc-ui/src/api/ipc/rulesConfig.js @@ -1,44 +1,44 @@ -import request from '@/utils/request' +import request from "@/utils/request"; -// 查询告警规则配置列表 +// 查询报警规则配置列表 export function listConfig(query) { return request({ - url: '/ipc/config/list', - method: 'get', - params: query - }) + url: "/ipc/config/list", + method: "get", + params: query, + }); } -// 查询告警规则配置详细 +// 查询报警规则配置详细 export function getConfig(id) { return request({ - url: '/ipc/config/' + id, - method: 'get' - }) + url: "/ipc/config/" + id, + method: "get", + }); } -// 新增告警规则配置 +// 新增报警规则配置 export function addConfig(data) { return request({ - url: '/ipc/config', - method: 'post', - data: data - }) + url: "/ipc/config", + method: "post", + data: data, + }); } -// 修改告警规则配置 +// 修改报警规则配置 export function updateConfig(data) { return request({ - url: '/ipc/config', - method: 'put', - data: data - }) + url: "/ipc/config", + method: "put", + data: data, + }); } -// 删除告警规则配置 +// 删除报警规则配置 export function delConfig(id) { return request({ - url: '/ipc/config/' + id, - method: 'delete' - }) + url: "/ipc/config/" + id, + method: "delete", + }); } diff --git a/tzipc-ui/src/views/ipc/faultTree/ruleConfigDialog.vue b/tzipc-ui/src/views/ipc/faultTree/ruleConfigDialog.vue index db8388d..5253b8a 100644 --- a/tzipc-ui/src/views/ipc/faultTree/ruleConfigDialog.vue +++ b/tzipc-ui/src/views/ipc/faultTree/ruleConfigDialog.vue @@ -104,7 +104,7 @@ export default { showSearch: true, // 总条数 total: 0, - // 告警规则配置表格数据 + // 报警规则配置表格数据 configList: [], // 弹出层标题 title: "报警规则选择", @@ -172,7 +172,7 @@ export default { console.log(error); }); }, - /** 查询告警规则配置列表 */ + /** 查询报警规则配置列表 */ getList() { this.loading = true; this.queryParams.partKey = this.partKey; diff --git a/tzipc-ui/src/views/ipc/rulesConfig/index.vue b/tzipc-ui/src/views/ipc/rulesConfig/index.vue index 020585a..e27bae3 100644 --- a/tzipc-ui/src/views/ipc/rulesConfig/index.vue +++ b/tzipc-ui/src/views/ipc/rulesConfig/index.vue @@ -217,7 +217,7 @@ @pagination="getList" /> - + @@ -446,7 +446,7 @@ export default { showSearch: true, // 总条数 total: 0, - // 告警规则配置表格数据 + // 报警规则配置表格数据 configList: [], // 弹出层标题 title: "", @@ -560,7 +560,7 @@ export default { console.log(error); }); }, - /** 查询告警规则配置列表 */ + /** 查询报警规则配置列表 */ getList() { this.loading = true; listConfig(this.queryParams).then((response) => { @@ -607,7 +607,7 @@ export default { handleAdd() { this.reset(); this.open = true; - this.title = "添加告警规则配置"; + this.title = "添加报警规则配置"; }, /** 修改按钮操作 */ handleUpdate(row) { @@ -616,7 +616,7 @@ export default { getConfig(id).then((response) => { this.form = response.data; this.open = true; - this.title = "修改告警规则配置"; + this.title = "修改报警规则配置"; }); }, /** 提交按钮 */