From 7ecd6091854f246fc839aae19013d0ce0404f38c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Wed, 8 Nov 2023 10:52:26 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=85=88=E5=8A=A0=E8=BD=BD=20Gamma=20?= =?UTF-8?q?=E8=B0=B1=EF=BC=8C=E7=84=B6=E5=90=8E=E4=BB=8E=20From=20DB=20?= =?UTF-8?q?=E5=8A=A0=E8=BD=BDBeta=20=E8=B0=B1=EF=BC=8C=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=88=B0=20Beta=20=E5=8F=B3=E4=B8=8B=E8=A7=92=E6=9C=89?= =?UTF-8?q?=E5=88=86=E6=9E=90=E7=BB=93=E6=9E=9C=EF=BC=8C=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=88=B0=20Gamma=20=E8=B0=B1=E5=86=8D=E5=88=87=E5=9B=9E=20Beta?= =?UTF-8?q?=EF=BC=8C=E5=8F=B3=E4=B8=8B=E8=A7=92=E5=88=86=E6=9E=90=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=B2=A1=E6=9C=89=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spectrumAnalysis/beta-gamma-analysis.vue | 16 ++++++++-------- src/views/spectrumAnalysis/index.vue | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/spectrumAnalysis/beta-gamma-analysis.vue b/src/views/spectrumAnalysis/beta-gamma-analysis.vue index e1fada0..62300ba 100644 --- a/src/views/spectrumAnalysis/beta-gamma-analysis.vue +++ b/src/views/spectrumAnalysis/beta-gamma-analysis.vue @@ -183,15 +183,15 @@ export default { sampleInfo: { type: Object, }, - analyseCurrentSpectrum: { - type: Object, - }, + // analyseCurrentSpectrum: { + // type: Object, + // }, }, data() { this.SampleType = SampleType return { - // analyseCurrentSpectrum: {}, + analyseCurrentSpectrum: {}, qcFlags: {}, spectraVisible: false, @@ -539,9 +539,9 @@ export default { } const minX = left - 10, - maxX = right + 10, - minY = bottom - 10, - maxY = top + 10 + maxX = right + 10, + minY = bottom - 10, + maxY = top + 10 this.$refs.betaGammaChartRef.setRange(minX, maxX, 'x') this.$refs.betaGammaChartRef.setRange(minY, maxY, 'y') @@ -590,7 +590,7 @@ export default { data: newVal.XeData, }) }, - immediate: true, + // immediate: true, deep: true, }, sampleInfo: { diff --git a/src/views/spectrumAnalysis/index.vue b/src/views/spectrumAnalysis/index.vue index 2789556..7730ff1 100644 --- a/src/views/spectrumAnalysis/index.vue +++ b/src/views/spectrumAnalysis/index.vue @@ -53,8 +53,8 @@ @reAnalyAll="getReAnalyAll" :sampleInfo="sampleInfo" :sample="sampleData" - :analyseCurrentSpectrum="analyseCurrentSpectrumData" /> +
Please Select a Sample
@@ -375,7 +375,7 @@ export default { betaGammaRlrModalVisible: false, // beta-gamma RLR 弹窗 statisticsParamerHistoryModalVisible: false, // beta-gamma Statistics Paramer History 弹窗 bgLogViewerVisible: false, // beta-gamma Log 下的BG log viewer 弹窗 - analyseCurrentSpectrumData: {}, + // analyseCurrentSpectrumData: {}, resultDisplayFlag: [], params_toDB: { comment: '', @@ -463,7 +463,7 @@ export default { this.params_toDB.checkDet = val.checkDet }, getXeData(val) { - this.$set(this.analyseCurrentSpectrumData, 'XeData', val) + // this.$set(this.analyseCurrentSpectrumData, 'XeData', val) this.resultDisplayFlag = val }, // formDB 来源 吧接口返回的文件名称添加到sampleData From c8c1c021ead4eda667d5c46f0b88b0d8cd1b5a1b Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Wed, 8 Nov 2023 11:47:49 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=E5=90=84=E9=A1=B5=E9=9D=A2keepAlive?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layouts/BasicLayout.vue | 11 +---------- src/components/layouts/RouteView.vue | 5 ++--- src/config/router.config.js | 4 ++-- src/utils/util.js | 2 +- src/views/logManage/index.vue | 1 + src/views/spectrumAnalysis/index.vue | 1 + src/views/stationOperation/index.vue | 1 + 7 files changed, 9 insertions(+), 16 deletions(-) diff --git a/src/components/layouts/BasicLayout.vue b/src/components/layouts/BasicLayout.vue index 65b40cd..2f1c697 100644 --- a/src/components/layouts/BasicLayout.vue +++ b/src/components/layouts/BasicLayout.vue @@ -1,10 +1,9 @@ @@ -22,14 +21,6 @@ } }, - computed: { - keepAlive () { - return this.$route.meta.keepAlive - } - }, - methods: { - - }, } diff --git a/src/components/layouts/RouteView.vue b/src/components/layouts/RouteView.vue index 5482e2b..6b37da8 100644 --- a/src/components/layouts/RouteView.vue +++ b/src/components/layouts/RouteView.vue @@ -1,9 +1,8 @@ diff --git a/src/config/router.config.js b/src/config/router.config.js index bdf036e..caabb1f 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -1,4 +1,4 @@ -import { TabLayout, RouteView, BlankLayout, PageView } from '@/components/layouts' +import { TabLayout, RouteView, BlankLayout, PageView, BasicLayout } from '@/components/layouts' import Login from '@/views/user/Login' /** @@ -10,7 +10,7 @@ export const asyncRouterMap = [ { path: '/', name: 'dashboard', - component: TabLayout, + component: BasicLayout, meta: { title: '首页' }, redirect: '/station-operation', children: [ diff --git a/src/utils/util.js b/src/utils/util.js index ca46492..452a351 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -88,7 +88,7 @@ export function generateIndexRouter(data) { path: '/', name: 'dashboard', //component: () => import('@/components/layouts/BasicLayout'), - component: resolve => require(['@/components/layouts/TabLayout'], resolve), + component: resolve => require(['@/components/layouts/BasicLayout'], resolve), meta: { title: '首页' }, redirect: '/station-operation', children: [ diff --git a/src/views/logManage/index.vue b/src/views/logManage/index.vue index 8c2742e..2a71486 100644 --- a/src/views/logManage/index.vue +++ b/src/views/logManage/index.vue @@ -99,6 +99,7 @@ const columns = [ ] export default { + name: 'LogManage', mixins: [JeecgListMixin], components: { TreeWithLine diff --git a/src/views/spectrumAnalysis/index.vue b/src/views/spectrumAnalysis/index.vue index 7730ff1..f4063da 100644 --- a/src/views/spectrumAnalysis/index.vue +++ b/src/views/spectrumAnalysis/index.vue @@ -259,6 +259,7 @@ const ANALYZE_TYPE = { BETA_GAMMA: 'betaGammaAnalysis', } export default { + name: 'SpectrumAnalysis', components: { BetaGammaAnalysis, GammaAnalysis, diff --git a/src/views/stationOperation/index.vue b/src/views/stationOperation/index.vue index 3acfadf..65838b5 100644 --- a/src/views/stationOperation/index.vue +++ b/src/views/stationOperation/index.vue @@ -166,6 +166,7 @@ import { getAction } from '../../api/manage' import { cloneDeep } from 'lodash' export default { + name: 'StationOperation', components: { Map, MapMarker, From b026200b253b918a28ecb55137a116fcc352a77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Wed, 8 Nov 2023 14:28:14 +0800 Subject: [PATCH 3/3] =?UTF-8?q?BetaGamma=20Analyser=20Log=20=E5=92=8C?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E4=B8=80=E6=A0=B7=20=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=96=87=E4=BB=B6=EF=BC=8C=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E8=BE=93=E5=85=A5=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modals/BetaGammaModals/BGLogViewer.vue | 16 +++++-- .../Modals/DataProcessingLogModal.vue | 46 ++++++------------- 2 files changed, 27 insertions(+), 35 deletions(-) diff --git a/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BGLogViewer.vue b/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BGLogViewer.vue index f16bb6d..6c4be6f 100644 --- a/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BGLogViewer.vue +++ b/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BGLogViewer.vue @@ -13,7 +13,7 @@ import ModalMixin from '@/mixins/ModalMixin' import { getAction } from '@/api/manage' import SampleDataMixin from '@/views/spectrumAnalysis/SampleDataMixin' -import { showSaveFileModal } from '@/utils/file' +import { saveAs } from 'file-saver' export default { mixins: [ModalMixin, SampleDataMixin], data() { @@ -25,7 +25,14 @@ export default { async getDetail() { try { this.isLoading = true - const { dbName, sampleId, inputFileName: sampleFileName, gasFileName, detFileName, qcFileName } = this.newSampleData + const { + dbName, + sampleId, + inputFileName: sampleFileName, + gasFileName, + detFileName, + qcFileName, + } = this.newSampleData const result = await getAction('/spectrumAnalysis/viewBGLogViewer', { dbName, sampleId, @@ -34,7 +41,7 @@ export default { detFileName, qcFileName, }) - if(typeof result == 'string') { + if (typeof result == 'string') { this.content = result } else { const { success, result, message } = res @@ -56,8 +63,9 @@ export default { }, handleClick() { + let name = this.newSampleData.inputFileName.split('.')[0] const blob = new Blob([this.content], { type: 'text/plain' }) - showSaveFileModal(blob, 'txt') + saveAs(blob, `${name}_beta analysis log.txt`) }, }, } diff --git a/src/views/spectrumAnalysis/components/Modals/DataProcessingLogModal.vue b/src/views/spectrumAnalysis/components/Modals/DataProcessingLogModal.vue index d0b72fc..aa34f88 100644 --- a/src/views/spectrumAnalysis/components/Modals/DataProcessingLogModal.vue +++ b/src/views/spectrumAnalysis/components/Modals/DataProcessingLogModal.vue @@ -3,7 +3,7 @@
{{ text }}
-
+
Export Cancel @@ -15,64 +15,48 @@