Browse Source

告警参数级开关添加代码v2

pull/1/head
ljlong_2630 1 year ago
parent
commit
7e886faa55
  1. 9
      src/views/model/alert/deviceparamalert.vue

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

@ -242,12 +242,12 @@
</el-form-item>
</el-col>
</el-row>
<el-row style="margin-bottom: 10px;">
<el-row style="margin-bottom: 10px;" v-show="tableVisiable">
<el-col>
<h4>告警逻辑</h4>
</el-col>
</el-row>
<el-row>
<el-row v-show="tableVisiable">
<el-col>
<el-table ref="policyTable" v-loading="loading" :data="modelList" :row-key="getRowKey" @selection-change="handleSelectionChange">
<el-table-column type="selection" reserve-selection="true" width="55" align="center" />
@ -362,6 +362,7 @@ const paramTypeValue = ref("");
const logicCode = ref("");
const rowPolicySelected = ref([]);
const colorValue = ref({});
const tableVisiable = ref(false);
const enabledFlagTable = ref([
{label: '可用', value: 'true', elTagType: 'default', elTagClass: null},
{label: '不可用', value: 'false', elTagType: 'default', elTagClass: null}
@ -552,7 +553,8 @@ function handlePolicy(row) {
statusTypeVisiable.value=true;
sortIdVisiable.value=false;
methodIdsVisiable.value=true;
policyEnabledVisiable.value=false;
policyEnabledVisiable.value=true;
tableVisiable.value=false;
}else if(row.logicCode == 'B'){
getModelList(row);
policyModelVisiable.value=true;
@ -562,6 +564,7 @@ function handlePolicy(row) {
sortIdVisiable.value=false;
methodIdsVisiable.value=false;
policyEnabledVisiable.value=true;
tableVisiable.value=true;
}else if(row.logicCode == 'C'){
ElMessageBox.alert('目前该告警逻辑没有实现', '提示', {
confirmButtonText: '确定',

Loading…
Cancel
Save