|
@ -57,10 +57,10 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="4" v-show="collapseVisible"> |
|
|
<el-col :span="4" v-show="collapseVisible"> |
|
|
<el-form-item label="参数单位" prop="contrlType" label-width="auto"> |
|
|
<el-form-item label="控制类型" prop="contrlType" label-width="auto"> |
|
|
<el-select v-model="queryParams.contrlType" placeholder="请选择参数单位" clearable> |
|
|
<el-select v-model="queryParams.contrlType" placeholder="请选择控制类型" clearable> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="dict in dc_param_uint_type" |
|
|
v-for="dict in dc_param_control_type" |
|
|
:key="dict.value" |
|
|
:key="dict.value" |
|
|
:label="dict.label" |
|
|
:label="dict.label" |
|
|
:value="dict.value" |
|
|
:value="dict.value" |
|
@ -197,11 +197,11 @@ |
|
|
<dict-tag :options="enabledTable" :value="scope.row.enabled"/> |
|
|
<dict-tag :options="enabledTable" :value="scope.row.enabled"/> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="参数单位" align="center" prop="contrlType" column-key="contrlType" filter-placement="bottom-end" |
|
|
<el-table-column label="控制类型" align="center" prop="contrlType" column-key="contrlType" filter-placement="bottom-end" |
|
|
:filters="getfilterNameItem('contrlType')" :filter-method="filterMethod" :width="120" sortable |
|
|
:filters="getfilterNameItem('contrlType')" :filter-method="filterMethod" :width="120" sortable |
|
|
> |
|
|
> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<dict-tag :options="dc_param_uint_type" :value="scope.row.contrlType" :default-value="'Unknown'"/> |
|
|
<dict-tag :options="dc_param_control_type" :value="scope.row.contrlType" :default-value="'Unknown'"/> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="设置值" align="center" prop="setDefautvalue" :width="120" sortable/> |
|
|
<el-table-column label="设置值" align="center" prop="setDefautvalue" :width="120" sortable/> |
|
@ -294,10 +294,10 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="参数单位" prop="contrlType"> |
|
|
<el-form-item label="控制类型" prop="contrlType"> |
|
|
<el-select v-model="form.contrlType" placeholder="请选择参数单位"> |
|
|
<el-select v-model="form.contrlType" placeholder="请选择控制类型"> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="dict in dc_param_uint_type" |
|
|
v-for="dict in dc_param_control_type" |
|
|
:key="dict.value" |
|
|
:key="dict.value" |
|
|
:label="dict.label" |
|
|
:label="dict.label" |
|
|
:value="dict.value"> |
|
|
:value="dict.value"> |
|
@ -392,7 +392,7 @@ import lock from "@/assets/icons/svg/lock.svg"; |
|
|
import { ElMessageBox } from 'element-plus'; |
|
|
import { ElMessageBox } from 'element-plus'; |
|
|
const { proxy } = getCurrentInstance(); |
|
|
const { proxy } = getCurrentInstance(); |
|
|
const router = useRouter(); |
|
|
const router = useRouter(); |
|
|
const { dc_param_uint_type, dc_param_value_type, dc_device_partion } = proxy.useDict('dc_param_uint_type', 'dc_param_value_type', 'dc_device_partion'); |
|
|
const { dc_param_control_type, dc_param_value_type, dc_device_partion } = proxy.useDict('dc_param_control_type', 'dc_param_value_type', 'dc_device_partion'); |
|
|
const paramsList = ref([]); |
|
|
const paramsList = ref([]); |
|
|
const open = ref(false); |
|
|
const open = ref(false); |
|
|
const loading = ref(true); |
|
|
const loading = ref(true); |
|
@ -834,7 +834,7 @@ function getfilterNameItem(value){ |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}else if(value==='contrlFlag'){ |
|
|
}else if(value==='contrlFlag'){ |
|
|
if(sortItemMap.value[value]?.length>0 && sortItemMap.value[value].value != undefined && sortItemMap.value[value].value != null){ |
|
|
if(sortItemMap.value[value]?.length>0){ |
|
|
result = sortItemMap.value[value].map(element=>{ |
|
|
result = sortItemMap.value[value].map(element=>{ |
|
|
contrlFlag.value.forEach(item=>{ |
|
|
contrlFlag.value.forEach(item=>{ |
|
|
if(item.value===element.text){ |
|
|
if(item.value===element.text){ |
|
@ -862,10 +862,11 @@ function getfilterNameItem(value){ |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}else if(value==='paramModelId'){ |
|
|
}else if(value==='paramModelId'){ |
|
|
if(sortItemMap.value[value]?.length>0 && sortItemMap.value[value].value != undefined && sortItemMap.value[value].value != null){ |
|
|
if(sortItemMap.value[value]?.length>0){ |
|
|
result = sortItemMap.value[value].map(element=>{ |
|
|
result = sortItemMap.value[value].map(element=>{ |
|
|
|
|
|
let textValue = getParamModelName(element.value); |
|
|
return { |
|
|
return { |
|
|
text: getParamModelName(element.value), |
|
|
text: textValue, |
|
|
value: element.value, |
|
|
value: element.value, |
|
|
}; |
|
|
}; |
|
|
}); |
|
|
}); |
|
@ -884,6 +885,20 @@ function getfilterNameItem(value){ |
|
|
}; |
|
|
}; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
}else if(value==='contrlType'){ |
|
|
|
|
|
if(sortItemMap.value[value]?.length>0){ |
|
|
|
|
|
result = sortItemMap.value[value].map(element=>{ |
|
|
|
|
|
dc_param_control_type.value.forEach(item=>{ |
|
|
|
|
|
if(item.value===String(element.text)){ |
|
|
|
|
|
resultItem = item.label; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
return { |
|
|
|
|
|
text: resultItem, |
|
|
|
|
|
value: element.value, |
|
|
|
|
|
}; |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
result = sortItemMap.value[value]; |
|
|
result = sortItemMap.value[value]; |
|
|
} |
|
|
} |
|
|