默认选中第一条检测计划

This commit is contained in:
caozehui
2024-12-17 11:12:21 +08:00
parent a027dc75c3
commit 07d02307e2
6 changed files with 66 additions and 31 deletions

View File

@@ -385,9 +385,12 @@ const tableList = ref([]);
const boundPqDevList=ref<Device.ReqPqDevParams[]>([])//根据检测计划id查询出所有已绑定的设备
const getTableList = async (params: any) => {
const pqDevList_Result2 = await getBoundPqDevList({'planId': props.id, 'checkStateList':[0,1,2]});
boundPqDevList.value = pqDevList_Result2.data as Device.ReqPqDevParams[];
return getBoundPqDevList({'planId': props.id, 'checkStateList':[0,1,2]});
debugger
if(props.id) {
// const pqDevList_Result2 = await getBoundPqDevList({'planId': props.id,'checkStateList':[0,1,2]});
// boundPqDevList.value = pqDevList_Result2.data as Device.ReqPqDevParams[];
return getBoundPqDevList({'planId': props.id,'checkStateList':[0,1,2]});
}
};