diff --git a/src-tauri/config.json b/src-tauri/config.json
index d0a3e2b..a830e05 100644
--- a/src-tauri/config.json
+++ b/src-tauri/config.json
@@ -1 +1 @@
-{"pathofsave":null,"Filename":"testaa","caijiavgNumber":"1","useSG":false,"usehighpass":false,"Dispatcher":{"isenable":true,"begin":"06:25","end":"23:59"},"sensor_typeforset":"IRIS-IS11"}
\ No newline at end of file
+{"pathofsave":null,"Filename":"testaa","caijiavgNumber":"1","useSG":false,"usehighpass":false,"Dispatcher":{"isenable":true,"begin":"09:28","end":"23:59"},"sensor_typeforset":"IS11"}
\ No newline at end of file
diff --git a/src/DataView/APPDataview.vue b/src/DataView/APPDataview.vue
index b45b53f..fc77f6b 100644
--- a/src/DataView/APPDataview.vue
+++ b/src/DataView/APPDataview.vue
@@ -13,7 +13,7 @@
显示曲线
-
+ 数据导出
@@ -36,6 +36,7 @@ import GuiForDataShow from './vuecomponents/GuiForDataShow.vue';
import GuiLeftSider from './vuecomponents/GuiLeftSider.vue';
import SaveFileDialog from './vuecomponents/SaveFileDialog.vue';
import { fs } from '@tauri-apps/api';
+import { ElMessage } from 'element-plus';
export default {
name: 'APPDataview',
@@ -171,7 +172,7 @@ export default {
await fs.copyFile(file.path, targetPath)
}
- this.$message.success(`成功保存 ${files.length} 个文件到 ${location}`)
+ ElMessage.success(`成功保存 ${files.length} 个文件到 ${location}`)
} catch (error) {
console.error('保存文件失败:', error)
alert('保存文件失败: ' + error.message)
@@ -182,13 +183,21 @@ export default {
handleCancelSave() {
this.showSaveDialog = false
this.filesToSave = []
- }
+ },
+ async openCurveSaveDialogForSelectedFiles() {
+ const paths = (this.selectedFilePaths && this.selectedFilePaths.length > 0)
+ ? this.selectedFilePaths
+ : (this.selectedFilePath ? [this.selectedFilePath] : []);
+
+ if (!paths.length) {
+ alert('请先选择一个或多个文件后再导出');
+ return;
+ }
+
+ this.$refs.GuiForDataShow.openSaveCurveDialogByPaths(paths);
+ },
},
-
-
-
}
-