This commit is contained in:
sjl
2025-10-23 10:36:32 +08:00
parent cedf1b6c5e
commit baccbe6f33
8 changed files with 68 additions and 53 deletions

View File

@@ -383,7 +383,7 @@
<script lang="ts" setup>
import { type CascaderOption, ElMessage, type FormItemRule } from 'element-plus'
import { computed, reactive, ref } from 'vue'
import { computed, reactive, ref, watch } from 'vue'
import { dialogBig } from '@/utils/elementBind'
import { type Plan } from '@/api/plan/interface'
import {
@@ -761,7 +761,7 @@ const open = async (sign: string, data: Plan.ReqPlan, currentMode: string, plan:
user_Result: any
if (mode.value === '比对式') {
;[
[
PqErrSys_Result,
pqDevList_Result,
pqReportName_Result,
@@ -800,8 +800,14 @@ const open = async (sign: string, data: Plan.ReqPlan, currentMode: string, plan:
.map((user: any) => ({ ...user, disabled: false }))
}
}
// 默认选择 cp95值 作为数据处理原则
const dataRuleDict = dictStore.getDictData('Data_Rule')
const rule = dataRuleDict.find(item => item.code === 'Cp95_Value')
formContent.dataRule = rule ? rule.id : ''
} else {
;[pqSource_Result, PqScript_Result, PqErrSys_Result, pqDevList_Result, pqReportName_Result] =
[pqSource_Result, PqScript_Result, PqErrSys_Result, pqDevList_Result, pqReportName_Result] =
await Promise.all([
getTestSourceList(data),
getPqScriptList(data),