
diff --git a/src/DataView/assets/加载失败.png b/src/DataView/assets/加载失败.png new file mode 100644 index 0000000..1548436 Binary files /dev/null and b/src/DataView/assets/加载失败.png differ diff --git a/src/DataView/vuecomponents/GuiForDataShow.vue b/src/DataView/vuecomponents/GuiForDataShow.vue index 8529b36..e64fb0a 100644 --- a/src/DataView/vuecomponents/GuiForDataShow.vue +++ b/src/DataView/vuecomponents/GuiForDataShow.vue @@ -70,6 +70,11 @@ async function onloaddata(data) { // 处理数据 await processSpectralData(); + + if (!spectralDataList.value || spectralDataList.value.length === 0) { + const typeLabel = spectralTypeList.find(i => i.value === fromData.value.comBox1)?.label || fromData.value.comBox1; + ElMessage.warning(`当前数据没有${typeLabel}数据`); + } } catch (error) { console.error('加载数据失败:', error); updateChildComponents([], [], []); diff --git a/src/DataView/vuecomponents/PictureDisplayInterface.vue b/src/DataView/vuecomponents/PictureDisplayInterface.vue index f1128bc..3dba809 100644 --- a/src/DataView/vuecomponents/PictureDisplayInterface.vue +++ b/src/DataView/vuecomponents/PictureDisplayInterface.vue @@ -2,14 +2,13 @@