正式检测-左侧检测大项动态获取

This commit is contained in:
caozehui
2024-12-30 20:55:11 +08:00
parent 0fd6ebf810
commit 65e54ee2b5
3 changed files with 126 additions and 134 deletions

View File

@@ -70,6 +70,7 @@ import DataCheckRawDataTable from './dataCheckRawDataTable.vue'
import {CheckData} from "@/api/check/interface";
import {getFormData, getTreeData, getCheckData} from "@/api/check/test";
import {useDictStore} from "@/stores/modules/dict";
import {useCheckStore} from "@/stores/modules/check";
const {appendToBody} = withDefaults(defineProps<{
appendToBody: boolean
@@ -81,6 +82,7 @@ const defaultProps = {
};
const dictStore = useDictStore()
const checkStore = useCheckStore()
const visible = ref(false)
@@ -314,10 +316,9 @@ watch(switchItem, (newVal, oldVal) => {
const open = async (_deviceId: string, chnNum: number, _scriptType?: string) => {
console.log(_deviceId, chnNum, _scriptType);
deviceId = _deviceId
scriptType = _scriptType ?? ''
switchItem.value = 0
// 发起后端请求,查询详细信息 当chnNum为-1时查询所有通道号
//const result1 = await getFormData({deviceId, chnNum})
//const resFormContent = await getFormData({checkStore.planId,deviceId, chnNum.toString(),scriptType})
// 数据处理
let resFormContent = {