|
|
@ -167,7 +167,7 @@ |
|
|
|
</template> |
|
|
|
</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-row> |
|
|
|
<el-col :span="12" v-show="boolValueVisiable"> |
|
|
@ -202,7 +202,14 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="12" v-show="statusValueVisiable"> |
|
|
|
<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-col> |
|
|
|
<el-col :span="12" v-show="statusTypeVisiable"> |
|
|
@ -257,7 +264,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="状态值" align="center" prop="statusValue"> |
|
|
|
<!-- <el-table-column label="状态值" align="center" prop="statusValue"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-select v-model="scope.row.statusValue" placeholder="请选择状态类型"> |
|
|
|
<el-option |
|
|
@ -280,7 +287,7 @@ |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> --> |
|
|
|
</el-table> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -339,6 +346,7 @@ const logicCode = ref(""); |
|
|
|
const rowPolicySelected = ref([]); |
|
|
|
const colorValue = ref({}); |
|
|
|
const tableVisiable = ref(false); |
|
|
|
const dialogWidth = ref('1600px'); |
|
|
|
const alert_value = ref([ |
|
|
|
{label: '1', value: true, elTagType: 'default', elTagClass: null}, |
|
|
|
{label: '0', value: false, elTagType: 'default', elTagClass: null} |
|
|
@ -515,15 +523,17 @@ function handlePolicy(row) { |
|
|
|
logicCode.value = row.logicCode; |
|
|
|
formPolicy.value.enabled = row.enabled; |
|
|
|
if(row.logicCode=='A'){ |
|
|
|
dialogWidth.value = '800px'; |
|
|
|
getModelListSwitch(row); |
|
|
|
boolValueVisiable.value=true; |
|
|
|
policyModelVisiable.value=false; |
|
|
|
statusValueVisiable.value=true; |
|
|
|
statusTypeVisiable.value=true; |
|
|
|
statusValueVisiable.value=false; |
|
|
|
statusTypeVisiable.value=false; |
|
|
|
sortIdVisiable.value=false; |
|
|
|
methodIdsVisiable.value=true; |
|
|
|
tableVisiable.value=false; |
|
|
|
}else if(row.logicCode == 'B'){ |
|
|
|
dialogWidth.value = '1600px'; |
|
|
|
getModelList(row); |
|
|
|
policyModelVisiable.value=true; |
|
|
|
boolValueVisiable.value=false; |
|
|
@ -998,9 +1008,6 @@ function changeEnabled(row){ |
|
|
|
} |
|
|
|
updateAlert(param); |
|
|
|
} |
|
|
|
function selectionDisabled(){ |
|
|
|
return formPolicy.value.enabled === 1; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
getList(); |
|
|
|