Merge branch 'master-dev' into feature-Beta-dev-renpy

This commit is contained in:
nieziyan 2024-03-13 18:53:44 +08:00
commit 54b95ae609
5 changed files with 15 additions and 25 deletions

View File

@ -14,7 +14,7 @@
style="width: 154px" style="width: 154px"
class="sample-select" class="sample-select"
></custom-select> ></custom-select>
<pop-over-with-icon placement="right" v-model="qcFlagsVisible"> <pop-over-with-icon placement="right" v-model="qcFlagsVisible" :auto-adjust-overflow="false">
QC Flags QC Flags
<beta-gamma-qc-flags slot="content" :data="qcFlags" @click="handleQcFlagClick" /> <beta-gamma-qc-flags slot="content" :data="qcFlags" @click="handleQcFlagClick" />
</pop-over-with-icon> </pop-over-with-icon>
@ -134,6 +134,7 @@ import PopOverWithIcon from './components/SubOperators/PopOverWithIcon.vue'
import Spectra from './components/SubOperators/Spectra.vue' import Spectra from './components/SubOperators/Spectra.vue'
import CustomSelect from '@/components/CustomSelect/index.vue' import CustomSelect from '@/components/CustomSelect/index.vue'
import axios from 'axios' import axios from 'axios'
import { cloneDeep } from 'lodash'
const StatisticsType = { const StatisticsType = {
'Collection Time': 'Colloc_Time', 'Collection Time': 'Colloc_Time',
@ -191,14 +192,12 @@ export default {
}, },
data() { data() {
this.SampleType = SampleType this.SampleType = SampleType
this.sampleDetail = {}
return { return {
currSpectrum: '', currSpectrum: '',
// analyseCurrentSpectrum: {}, // analyseCurrentSpectrum: {},
qcFlags: {}, qcFlags: {},
sampleDetail: {},
spectraVisible: false, spectraVisible: false,
spectraType: 'sample', spectraType: 'sample',
@ -227,7 +226,6 @@ export default {
statisticModalVisible: false, // Qc Flags statisticModalVisible: false, // Qc Flags
statisticsType: StatisticsType['Collection Time'], statisticsType: StatisticsType['Collection Time'],
currSample: {}, currSample: {},
copyXeData: null,
qcFlagsVisible: false, qcFlagsVisible: false,
} }
}, },
@ -336,7 +334,7 @@ export default {
} catch (error) { } catch (error) {
console.error(error) console.error(error)
const isCancel = axios.isCancel(error) const isCancel = axios.isCancel(error)
if(!isCancel) { if (!isCancel) {
this.isLoading = false this.isLoading = false
} }
} }
@ -383,7 +381,7 @@ export default {
} catch (error) { } catch (error) {
console.error(error) console.error(error)
const isCancel = axios.isCancel(error) const isCancel = axios.isCancel(error)
if(!isCancel) { if (!isCancel) {
this.isLoading = false this.isLoading = false
} }
} }
@ -454,12 +452,7 @@ export default {
console.log('this.resultDisplaythis.resultDisplay', this.resultDisplay) console.log('this.resultDisplaythis.resultDisplay', this.resultDisplay)
this.resultDisplay = this.copyXeData this.resultDisplay = XeData
? this.copyXeData
: this.resultDisplay.length > 0
? this.resultDisplay
: XeData
this.sortResultDisplay() this.sortResultDisplay()
this.$emit('sendInfo', this.resultDisplay, this.spectrumData.stationCode, savedAnalysisResult) this.$emit('sendInfo', this.resultDisplay, this.spectrumData.stationCode, savedAnalysisResult)
@ -563,8 +556,6 @@ export default {
item.mdc = parseFloat(item.mdc.toPrecision(6)) item.mdc = parseFloat(item.mdc.toPrecision(6))
}) })
this.$emit('reAnalyCurr', true, res.result.XeData) this.$emit('reAnalyCurr', true, res.result.XeData)
this.copyXeData = res.result.XeData
this.handleReAnalyse(res.result) this.handleReAnalyse(res.result)
} }
} else { } else {
@ -685,7 +676,7 @@ export default {
analyseCurrentSpectrum: { analyseCurrentSpectrum: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
// this.currResultDisplay = newVal.XeData // this.currResultDisplay = newVal.XeData
this.resultDisplay = newVal.XeData || [] this.resultDisplay = cloneDeep(newVal.XeData) || []
this.sortResultDisplay() this.sortResultDisplay()
this.$store.commit('UPDATE_SAMPLE_DATA', { this.$store.commit('UPDATE_SAMPLE_DATA', {
inputFileName: this.sample.inputFileName, inputFileName: this.sample.inputFileName,
@ -735,6 +726,7 @@ export default {
.pop-over-with-icon { .pop-over-with-icon {
height: 32px; height: 32px;
flex-shrink: 0;
&:nth-child(1) { &:nth-child(1) {
width: 224px; width: 224px;

View File

@ -223,7 +223,7 @@ import { buildLineSeries, findSeriesByName, getXAxisAndYAxisByPosition, rangeNum
import SampleDataMixin from '@/views/spectrumAnalysis/SampleDataMixin' import SampleDataMixin from '@/views/spectrumAnalysis/SampleDataMixin'
import GeneralCommentModal from './components/GeneralCommentModal.vue' import GeneralCommentModal from './components/GeneralCommentModal.vue'
import EditSlopeModal from './components/EditSlopeModal.vue' import EditSlopeModal from './components/EditSlopeModal.vue'
import Response from './Response.json' // import Response from './Response.json'
import { updateBaseLine } from '@/utils/WasmHelper' import { updateBaseLine } from '@/utils/WasmHelper'
import RectList from './components/RectList.vue' import RectList from './components/RectList.vue'
import { isNullOrUndefined } from '@/utils/util' import { isNullOrUndefined } from '@/utils/util'

View File

@ -221,7 +221,6 @@ export default {
// //
handleSourceChange() { handleSourceChange() {
console.log('%c [ ]-226', 'font-size:13px; background:pink; color:#bf2c9f;', this.queryParam.dbName)
this.searchQuery() this.searchQuery()
}, },

View File

@ -26,7 +26,7 @@
<div class="peak-info"> <div class="peak-info">
<button-with-switch-icon @change="handlePeakInfoChange" @click="handleTogglePeak"></button-with-switch-icon> <button-with-switch-icon @change="handlePeakInfoChange" @click="handleTogglePeak"></button-with-switch-icon>
</div> </div>
<pop-over-with-icon placement="right" v-model="subOperatorsState.qcFlagsVisible"> <pop-over-with-icon placement="right" v-model="subOperatorsState.qcFlagsVisible" :auto-adjust-overflow="false">
QC Flags QC Flags
<qc-flags slot="content" :data="qcFlags" /> <qc-flags slot="content" :data="qcFlags" />
</pop-over-with-icon> </pop-over-with-icon>
@ -111,7 +111,7 @@ import GraphAssistance from './components/SubOperators/GraphAssistance/GraphAssi
import NuclideLibrary from './components/SubOperators/NuclideLibrary.vue' import NuclideLibrary from './components/SubOperators/NuclideLibrary.vue'
import ButtonWithSwitchIcon from './components/SubOperators/ButtonWithSwitchIcon.vue' import ButtonWithSwitchIcon from './components/SubOperators/ButtonWithSwitchIcon.vue'
import { getAction, postAction } from '@/api/manage' import { getAction, postAction } from '@/api/manage'
import Response from './response.json' // import Response from './response.json'
import { import {
buildLineSeries, buildLineSeries,
findSeriesByName, findSeriesByName,
@ -252,8 +252,6 @@ export default {
window.addEventListener('keydown', this.handleKeyboardEvent) window.addEventListener('keydown', this.handleKeyboardEvent)
window.addEventListener('click', this.closePeakInfomationTooltip) window.addEventListener('click', this.closePeakInfomationTooltip)
console.log('%c [ this.channelData ]-256', 'font-size:13px; background:#e2a49d; color:#ffe8e1;', this.channelData)
}, },
destroyed() { destroyed() {
this.cancelLastRequest() this.cancelLastRequest()
@ -661,8 +659,6 @@ export default {
baseLineCP: shapeEnergyData, baseLineCP: shapeEnergyData,
} }
console.log('%c [ this.channelData ]-664', 'font-size:13px; background:#9bcb26; color:#dfff6a;', this.channelData)
this.resetThumbnailChartDataMax() this.resetThumbnailChartDataMax()
// Spectrum Line // Spectrum Line
@ -2130,6 +2126,7 @@ export default {
overflow: auto; overflow: auto;
height: 46px; height: 46px;
align-items: center; align-items: center;
flex-shrink: 0;
.pop-over-with-icon { .pop-over-with-icon {
height: 32px; height: 32px;
@ -2151,7 +2148,7 @@ export default {
.peak-info { .peak-info {
width: 226px; width: 226px;
height: 32px; height: 32px;
display: inline-block; flex-shrink: 0;
} }
} }
// //

View File

@ -1829,6 +1829,8 @@ export default {
padding: 0; padding: 0;
position: relative; position: relative;
border-right: 0; border-right: 0;
max-height: calc(100vh - 506px);
overflow: hidden auto;
&-submenu { &-submenu {
&-active { &-active {