|
@ -167,7 +167,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<!-- 添加或修改参数值状态策略对话框 --> |
|
|
<!-- 添加或修改参数值状态策略对话框 --> |
|
|
<el-dialog :title="titlePolicy" v-model="openPolicy" width="1600px" append-to-body> |
|
|
<el-dialog :title="titlePolicy" v-model="openPolicy" :width="dialogWidth" append-to-body> |
|
|
<el-form ref="policyRef" :model="formPolicy" :rules="rulesPolicy" label-width="120px"> |
|
|
<el-form ref="policyRef" :model="formPolicy" :rules="rulesPolicy" label-width="120px"> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="12" v-show="boolValueVisiable"> |
|
|
<el-col :span="12" v-show="boolValueVisiable"> |
|
@ -202,7 +202,14 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12" v-show="statusValueVisiable"> |
|
|
<el-col :span="12" v-show="statusValueVisiable"> |
|
|
<el-form-item label="状态值" prop="statusValue"> |
|
|
<el-form-item label="状态值" prop="statusValue"> |
|
|
<el-input v-model="formPolicy.statusValue" placeholder="请输入状态值" /> |
|
|
<el-select v-model="formPolicy.statusType" placeholder="请选择状态值"> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in status" |
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item.value" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12" v-show="statusTypeVisiable"> |
|
|
<el-col :span="12" v-show="statusTypeVisiable"> |
|
@ -243,7 +250,7 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="级别" align="center" prop="level" /> |
|
|
<el-table-column label="级别" align="center" prop="level" /> |
|
|
<el-table-column label="排序" align="center" prop="sort"/> |
|
|
<el-table-column label="排序" align="center" prop="sort"/> |
|
|
<el-table-column label="告警方式" align="center" prop="methodIds"> |
|
|
<el-table-column label="告警方式" align="center" prop="methodIds" > |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<el-form-item :class="{'is-error': isInvalid(scope.row.methodIds,scope.row)}" label-width="0px" > |
|
|
<el-form-item :class="{'is-error': isInvalid(scope.row.methodIds,scope.row)}" label-width="0px" > |
|
|
<el-select v-model="scope.row.methodIds" multiple @change="methodIdsChange" placeholder="请选择告警方式"> |
|
|
<el-select v-model="scope.row.methodIds" multiple @change="methodIdsChange" placeholder="请选择告警方式"> |
|
@ -257,7 +264,7 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="状态值" align="center" prop="statusValue"> |
|
|
<!-- <el-table-column label="状态值" align="center" prop="statusValue"> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<el-select v-model="scope.row.statusValue" placeholder="请选择状态类型"> |
|
|
<el-select v-model="scope.row.statusValue" placeholder="请选择状态类型"> |
|
|
<el-option |
|
|
<el-option |
|
@ -280,7 +287,7 @@ |
|
|
/> |
|
|
/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> --> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
@ -339,6 +346,7 @@ const logicCode = ref(""); |
|
|
const rowPolicySelected = ref([]); |
|
|
const rowPolicySelected = ref([]); |
|
|
const colorValue = ref({}); |
|
|
const colorValue = ref({}); |
|
|
const tableVisiable = ref(false); |
|
|
const tableVisiable = ref(false); |
|
|
|
|
|
const dialogWidth = ref('1600px'); |
|
|
const alert_value = ref([ |
|
|
const alert_value = ref([ |
|
|
{label: '1', value: true, elTagType: 'default', elTagClass: null}, |
|
|
{label: '1', value: true, elTagType: 'default', elTagClass: null}, |
|
|
{label: '0', value: false, elTagType: 'default', elTagClass: null} |
|
|
{label: '0', value: false, elTagType: 'default', elTagClass: null} |
|
@ -515,15 +523,17 @@ function handlePolicy(row) { |
|
|
logicCode.value = row.logicCode; |
|
|
logicCode.value = row.logicCode; |
|
|
formPolicy.value.enabled = row.enabled; |
|
|
formPolicy.value.enabled = row.enabled; |
|
|
if(row.logicCode=='A'){ |
|
|
if(row.logicCode=='A'){ |
|
|
|
|
|
dialogWidth.value = '800px'; |
|
|
getModelListSwitch(row); |
|
|
getModelListSwitch(row); |
|
|
boolValueVisiable.value=true; |
|
|
boolValueVisiable.value=true; |
|
|
policyModelVisiable.value=false; |
|
|
policyModelVisiable.value=false; |
|
|
statusValueVisiable.value=true; |
|
|
statusValueVisiable.value=false; |
|
|
statusTypeVisiable.value=true; |
|
|
statusTypeVisiable.value=false; |
|
|
sortIdVisiable.value=false; |
|
|
sortIdVisiable.value=false; |
|
|
methodIdsVisiable.value=true; |
|
|
methodIdsVisiable.value=true; |
|
|
tableVisiable.value=false; |
|
|
tableVisiable.value=false; |
|
|
}else if(row.logicCode == 'B'){ |
|
|
}else if(row.logicCode == 'B'){ |
|
|
|
|
|
dialogWidth.value = '1600px'; |
|
|
getModelList(row); |
|
|
getModelList(row); |
|
|
policyModelVisiable.value=true; |
|
|
policyModelVisiable.value=true; |
|
|
boolValueVisiable.value=false; |
|
|
boolValueVisiable.value=false; |
|
@ -998,9 +1008,6 @@ function changeEnabled(row){ |
|
|
} |
|
|
} |
|
|
updateAlert(param); |
|
|
updateAlert(param); |
|
|
} |
|
|
} |
|
|
function selectionDisabled(){ |
|
|
|
|
|
return formPolicy.value.enabled === 1; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getList(); |
|
|
getList(); |
|
|