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