接口调整
This commit is contained in:
@@ -736,6 +736,22 @@ const handleTest2 = () => {
|
||||
if (matchedItem) {
|
||||
dataSources.value = matchedItem.datasourceIds
|
||||
}
|
||||
// 获取选中计划的测试项配置
|
||||
const compareTestItem = ref<CheckData.CompareTestItem[]>([])
|
||||
const names = matchedItem.testItemNameStr ? matchedItem.testItemNameStr.split(',') : []
|
||||
const ids = matchedItem.testItems || []
|
||||
|
||||
// 构造 compareTestItem 数组
|
||||
compareTestItem.value = ids.map((id: string, index: number) => {
|
||||
return {
|
||||
id: id,
|
||||
name: names[index] || ''
|
||||
}
|
||||
})
|
||||
checkStore.clearCompareTestItem()
|
||||
checkStore.setCompareTestItem(compareTestItem.value)
|
||||
|
||||
|
||||
deviceConnectionPopupRef.value?.open(channelsSelection.value, pqStandardDevList.value,props.id)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user