前台展示优化

This commit is contained in:
zhanghan11 2024-05-13 16:54:12 +08:00
parent 06d6c22f9f
commit be463380e1
3 changed files with 33 additions and 33 deletions

View File

@ -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",
});
}

View File

@ -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;

View File

@ -217,7 +217,7 @@
@pagination="getList"
/>
<!-- 添加或修改警规则配置对话框 -->
<!-- 添加或修改警规则配置对话框 -->
<el-dialog
:title="title"
:visible.sync="open"
@ -383,13 +383,13 @@
<el-row>
<el-col :span="24">
<el-form-item
label="规则值显示"
label="规则描述"
prop="referenceName"
>
<el-input
type="textarea"
v-model="form.referenceName"
placeholder="请输入规则值显示"
placeholder="请输入规则描述"
/>
</el-form-item>
</el-col>
@ -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 = "修改警规则配置";
});
},
/** 提交按钮 */