比对检测计划默认值

This commit is contained in:
caozehui
2026-06-09 19:22:54 +08:00
parent 0423de2683
commit 195b58d798

View File

@@ -895,7 +895,7 @@ const open = async (sign: string, data: Plan.ReqPlan, currentMode: string, plan:
// 默认选择 cp95值 作为数据处理原则 // 默认选择 cp95值 作为数据处理原则
const dataRuleDict = dictStore.getDictData('Data_Rule') const dataRuleDict = dictStore.getDictData('Data_Rule')
const rule = dataRuleDict.find(item => item.code === 'Cp95_Value') const rule = dataRuleDict.find(item => item.code === 'Avg_value')
formContent.dataRule = rule ? rule.id : '' formContent.dataRule = rule ? rule.id : ''
} else { } else {
[pqSource_Result, PqScript_Result, PqErrSys_Result, pqDevList_Result, pqReportName_Result] = [pqSource_Result, PqScript_Result, PqErrSys_Result, pqDevList_Result, pqReportName_Result] =
@@ -1212,10 +1212,12 @@ const loadTestItemsForErrorSys = async (errorSysId: string) => {
if (res.data && typeof res.data === 'object') { if (res.data && typeof res.data === 'object') {
// 将返回的键值对对象转换为下拉选项格式 // 将返回的键值对对象转换为下拉选项格式
Object.keys(res.data).forEach(key => { Object.keys(res.data).forEach(key => {
if((res.data as Record<string, string>)[key]!='谐波有功功率') {
secondLevelOptions.push({ secondLevelOptions.push({
value: key, value: key,
label: (res.data as Record<string, string>)[key] label: (res.data as Record<string, string>)[key]
}) })
}
}) })
formContent.testItems = secondLevelOptions formContent.testItems = secondLevelOptions
.filter(option => option.label !== '闪变') .filter(option => option.label !== '闪变')