Browse Source

告警筛选补充

pull/1/head
ljlong_2630 1 year ago
parent
commit
f0ea49eb51
  1. 9
      src/api/model/policy.js
  2. 5
      src/views/model/alert/deviceparamalert.vue

9
src/api/model/policy.js

@ -106,3 +106,12 @@ export function newDelPolicy(ids) {
method: 'delete' method: 'delete'
}) })
} }
//告警设备参数查询
export function listAlertParamSelect(query) {
return request({
url: '/model/dcBusiAlertDevcie/listAlertParamSelect',
method: 'get',
params: query
})
}

5
src/views/model/alert/deviceparamalert.vue

@ -263,11 +263,10 @@
<script setup name="Alert"> <script setup name="Alert">
import { getDeviceParamsAlertInfo, listAlert, getAlert, delAlert, addAlert, updateAlert } from "@/api/model/alert"; import { getDeviceParamsAlertInfo, listAlert, getAlert, delAlert, addAlert, updateAlert } from "@/api/model/alert";
import { listDeviceNoPage } from "@/api/model/device"; import { listDeviceNoPage } from "@/api/model/device";
import { listParamsNoPage } from "@/api/model/params";
import { listMethod } from "@/api/model/method"; import { listMethod } from "@/api/model/method";
import { listModel } from "@/api/model/alertmodel"; import { listModel } from "@/api/model/alertmodel";
import { ElMessageBox } from 'element-plus'; import { ElMessageBox } from 'element-plus';
import { listPolicy,listPolicyInfo,updatePolicy,updatePolicyBatch,addPolicy,addPolicyBatch,newDelPolicy } from "@/api/model/policy"; import { listPolicy,listPolicyInfo,updatePolicy,updatePolicyBatch,addPolicy,addPolicyBatch,newDelPolicy, listAlertParamSelect } from "@/api/model/policy";
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const router = useRouter(); const router = useRouter();
const { operator_sign,dc_param_value_type,alert_value } = proxy.useDict('operator_sign','dc_param_value_type','alert_value'); const { operator_sign,dc_param_value_type,alert_value } = proxy.useDict('operator_sign','dc_param_value_type','alert_value');
@ -537,7 +536,7 @@ function getDeviceList(){
function getParamsList(deviceUuid){ function getParamsList(deviceUuid){
loading.value = true; loading.value = true;
queryParamsParam.value.deviceUuid = deviceUuid; queryParamsParam.value.deviceUuid = deviceUuid;
listParamsNoPage(queryParamsParam.value).then(response => { listAlertParamSelect(queryParamsParam.value).then(response => {
paramsList.value = response.data; paramsList.value = response.data;
loading.value = false; loading.value = false;
}); });

Loading…
Cancel
Save