diff --git a/src/api/model/alertmodel.js b/src/api/model/alertmodel.js
new file mode 100644
index 0000000..f3a0872
--- /dev/null
+++ b/src/api/model/alertmodel.js
@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询告警模版列表
+export function listModel(query) {
+ return request({
+ url: '/model/dcBusiAlertModel/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询告警模版详细
+export function getModel(id) {
+ return request({
+ url: '/model/dcBusiAlertModel/' + id,
+ method: 'get'
+ })
+}
+
+// 新增告警模版
+export function addModel(data) {
+ return request({
+ url: '/model/dcBusiAlertModel',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改告警模版
+export function updateModel(data) {
+ return request({
+ url: '/model/dcBusiAlertModel',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除告警模版
+export function delModel(id) {
+ return request({
+ url: '/model/dcBusiAlertModel/' + id,
+ method: 'delete'
+ })
+}
+
+// 导出告警模版
+export function exportModel(query) {
+ return request({
+ url: '/${baseUrl}/export',
+ method: 'get',
+ params: query
+ })
+}
\ No newline at end of file
diff --git a/src/api/model/device.js b/src/api/model/device.js
index e8c35c4..07f8fd5 100644
--- a/src/api/model/device.js
+++ b/src/api/model/device.js
@@ -8,6 +8,14 @@ export function listDevice(query) {
params: query
})
}
+// 查询设备信息列表无分页
+export function listDeviceNoPage(query) {
+ return request({
+ url: '/model/dcBaseDeviceinfo/listNoPage',
+ method: 'get',
+ params: query
+ })
+}
// 查询设备信息详细
export function getDevice(id) {
diff --git a/src/api/model/params.js b/src/api/model/params.js
index 4a92438..0ce93c9 100644
--- a/src/api/model/params.js
+++ b/src/api/model/params.js
@@ -8,6 +8,14 @@ export function listParams(query) {
params: query
})
}
+// 查询设备参数明细列表不分页
+export function listParamsNoPage(query) {
+ return request({
+ url: '/model/dcBaseDeviceParam/listNoPage',
+ method: 'get',
+ params: query
+ })
+}
// 查询设备参数明细详细
export function getParams(id) {
diff --git a/src/api/model/policy.js b/src/api/model/policy.js
index f55991e..eae377a 100644
--- a/src/api/model/policy.js
+++ b/src/api/model/policy.js
@@ -50,4 +50,59 @@ export function exportPolicy(query) {
method: 'get',
params: query
})
+}
+
+// 导出参数值状态策略
+export function selectDeviceParamPolicy(query) {
+ return request({
+ url: '/model/dcBusiAlertParamPolicy/selectDeviceParamPolicy',
+ method: 'post',
+ params: query
+ })
+}
+
+
+// 批量新增参数值状态策略
+export function addPolicyBatch(data) {
+ return request({
+ url: '/model/dcBusiAlertParamPolicy/addBatch',
+ method: 'post',
+ data: data
+ })
+}
+
+// 批量查询参数值状态策略列表
+export function listPolicyNoPage(query) {
+ return request({
+ url: '/model/dcBusiAlertParamPolicy/listNoPage',
+ method: 'get',
+ params: query
+ })
+}
+
+// 批量修改参数值状态策略
+export function updatePolicyBatch(data) {
+ return request({
+ url: '/model/dcBusiAlertParamPolicy/batchUpdate',
+ method: 'put',
+ data: data
+ })
+}
+
+
+// 查询参数值状态策略信息列表
+export function listPolicyInfo(data) {
+ return request({
+ url: '/model/dcBusiAlertParamPolicy/listInfo',
+ method: 'post',
+ data: data
+ })
+}
+
+// 删除参数值状态策略
+export function newDelPolicy(ids) {
+ return request({
+ url: '/model/dcBusiAlertParamPolicy/newBatchRemove/' + ids,
+ method: 'delete'
+ })
}
\ No newline at end of file
diff --git a/src/views/model/alert/addalertconfig.vue b/src/views/model/alert/addalertconfig.vue
index b0f646a..2c0ac23 100644
--- a/src/views/model/alert/addalertconfig.vue
+++ b/src/views/model/alert/addalertconfig.vue
@@ -63,7 +63,7 @@ import { required } from "@vee-validate/rules";
import noalertdevices from "./noalertdevices";
import noalertparams from "./noalertparams";
import { onMounted } from "vue";
-import { ElMessage, ElMessageBox } from 'element-plus'
+import { ElMessage, ElMessageBox } from 'element-plus';
const { proxy } = getCurrentInstance();
const {dc_class_type, dc_device_partion, dc_model_type} = proxy.useDict('dc_class_type', 'dc_device_partion','dc_model_type');
const router = useRouter();
diff --git a/src/views/model/alert/deviceparamalert.vue b/src/views/model/alert/deviceparamalert.vue
index c1aa185..223c64e 100644
--- a/src/views/model/alert/deviceparamalert.vue
+++ b/src/views/model/alert/deviceparamalert.vue
@@ -77,14 +77,18 @@
-
+
+
+
+
+
+
+
-
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -237,12 +254,15 @@
diff --git a/src/views/model/alert/model.vue b/src/views/model/alert/model.vue
new file mode 100644
index 0000000..697dcd1
--- /dev/null
+++ b/src/views/model/alert/model.vue
@@ -0,0 +1,382 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/model/alert/policy.vue b/src/views/model/alert/policy.vue
index 928a135..b1db897 100644
--- a/src/views/model/alert/policy.vue
+++ b/src/views/model/alert/policy.vue
@@ -76,27 +76,6 @@
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
+
+ 】
-
-
-
-
+
+
+
+
+
+
+
-
-
+
+
+
+
+
-
-
+
+
+ {{ getMethodName(scope.row.methodId) }}
+
+
+
-
+
-
-
-
-
-
@@ -186,20 +171,15 @@
-
+
-
-
-
-
-
-
-
-
-
-
@@ -225,7 +205,7 @@