From 35d5f9188a0d675df7b3e416610e63e85c970c60 Mon Sep 17 00:00:00 2001 From: renlixin Date: Mon, 27 Jul 2026 14:05:13 +0800 Subject: [PATCH] 6.98 --- src-tauri/tauri.conf.json | 2 +- src/components/menubox/SetWavelenthcoeff.vue | 25 ++++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index a88e5eb..1c205bb 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -10,7 +10,7 @@ "package": { "productName": "SpectralPlot", - "version": "0.6.97" + "version": "0.6.98" }, "tauri": { diff --git a/src/components/menubox/SetWavelenthcoeff.vue b/src/components/menubox/SetWavelenthcoeff.vue index d5a32b2..775eaf5 100644 --- a/src/components/menubox/SetWavelenthcoeff.vue +++ b/src/components/menubox/SetWavelenthcoeff.vue @@ -28,6 +28,8 @@ export default { },all_averagetime:1, + sensor1Status: "", // loaded | computed | set + sensor2Status: "", // loaded | computed | set WeavePeaksDeffine: [ 0, 253.652, @@ -104,6 +106,8 @@ export default { // } // let message = await invoke("sendtoport_andgetreturn", data); this.Devinfo = await SensorMethod.Get_Device_Info(); + this.sensor1Status = "loaded"; + this.sensor2Status = "loaded"; this.sensor_gain_down = this.Devinfo.sensor_gain_down; if (typeof (this.Devinfo.fiber_type) == "string") { this.Devinfo.fiber_type = this.Devinfo.fiber_type; @@ -606,6 +610,7 @@ export default { chart_up.setOption(this.option); await this.savePeakResultToCSV(0, orgdata); + this.sensor1Status = "computed"; } else if (spectralnumber == 1) { this.Devinfo.bochangxishu2.a0 = result[3]; @@ -629,14 +634,18 @@ export default { chart_up.setOption(this.optiondown); await this.savePeakResultToCSV(1, orgdata); + this.sensor2Status = "computed"; } }, async Set_Weave_Coeff() { await SensorMethod.Set_Weave_Coeff(0, this.Devinfo.bochangxishu.a0, this.Devinfo.bochangxishu.a1, this.Devinfo.bochangxishu.a2, this.Devinfo.bochangxishu.a3); - if (this.Devinfo.fiber_type == "Dual") - await SensorMethod.Set_Weave_Coeff(1, this.Devinfo.bochangxishu2.a0, this.Devinfo.bochangxishu2.a1, this.Devinfo.bochangxishu2.a2, this.Devinfo.bochangxishu2.a3); + this.sensor1Status = "set"; + if (this.Devinfo.fiber_type == "Dual") { + await SensorMethod.Set_Weave_Coeff(1, this.Devinfo.bochangxishu2.a0, this.Devinfo.bochangxishu2.a1, this.Devinfo.bochangxishu2.a2, this.Devinfo.bochangxishu2.a3); + this.sensor2Status = "set"; + } await this.saveCoeffToFile(); @@ -815,6 +824,12 @@ export default {
+ a0 @@ -838,6 +853,12 @@ export default { + a0