Merge branch 'feature-spectrum-analysis' into feature-analysis-RLR-renpy
# Conflicts: # src/views/spectrumAnalysis/beta-gamma-analysis.vue # src/views/spectrumAnalysis/index.vue
This commit is contained in:
commit
8835f93580
|
@ -115,11 +115,7 @@
|
||||||
<!-- 主体部分结束 -->
|
<!-- 主体部分结束 -->
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
|
||||||
<statistics-paramer-history-modal-for-qc-flags
|
<statistics-paramer-history-modal-for-qc-flags v-model="statisticModalVisible" :statisticsType="statisticsType" />
|
||||||
v-model="statisticModalVisible"
|
|
||||||
:sampleId="sample.sampleId"
|
|
||||||
:statisticsType="statisticsType"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,17 @@
|
||||||
<template>
|
<template>
|
||||||
<custom-modal v-model="visible" :width="800" title="Comments">
|
<custom-modal v-model="visible" :width="800" title="Comments">
|
||||||
<a-spin :spinning="isLoading">
|
<a-spin :spinning="isLoading">
|
||||||
<title-over-border title="Spectrum Comment">
|
<div class="comment">
|
||||||
<a-textarea v-model="comments.spectrumCommentInfo" :rows="8" :disabled="true"></a-textarea>
|
<title-over-border title="Spectrum Comment">
|
||||||
</title-over-border>
|
<a-textarea v-model="comments.spectrumCommentInfo" :rows="8" :disabled="true"></a-textarea>
|
||||||
<title-over-border title="Other Analyser's Comment">
|
</title-over-border>
|
||||||
<a-textarea v-model="comments.spectrumOtherCommentInfo" :rows="8" :disabled="true"></a-textarea>
|
<title-over-border title="Other Analyser's Comment">
|
||||||
</title-over-border>
|
<a-textarea v-model="comments.spectrumOtherCommentInfo" :rows="8" :disabled="true"></a-textarea>
|
||||||
<title-over-border title="Spectrum Analysis Comment">
|
</title-over-border>
|
||||||
<a-textarea v-model="comments.spectrumAnalysisCommentInfo" :rows="8" :disabled="!isAdd"></a-textarea>
|
<title-over-border title="Spectrum Analysis Comment">
|
||||||
</title-over-border>
|
<a-textarea v-model="comments.spectrumAnalysisCommentInfo" :rows="8" :disabled="!isAdd"></a-textarea>
|
||||||
|
</title-over-border>
|
||||||
|
</div>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<a-space slot="custom-footer" :size="20">
|
<a-space slot="custom-footer" :size="20">
|
||||||
<a-button v-if="isAdd" type="primary" @click="handleOk">Commit Comment Indormations</a-button>
|
<a-button v-if="isAdd" type="primary" @click="handleOk">Commit Comment Indormations</a-button>
|
||||||
|
@ -47,10 +49,10 @@ export default {
|
||||||
async getCommets() {
|
async getCommets() {
|
||||||
try {
|
try {
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
const { sampleId, inputFileName: fileName } = this.sampleData
|
const { sampleId, inputFileName: sampleFileName } = this.sampleData
|
||||||
const res = await getAction('/spectrumAnalysis/viewComment', {
|
const res = await getAction('/spectrumAnalysis/viewComment', {
|
||||||
sampleId,
|
sampleId,
|
||||||
fileName
|
sampleFileName
|
||||||
})
|
})
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.comments = res.result
|
this.comments = res.result
|
||||||
|
@ -76,6 +78,10 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
.comment {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.title-over-border {
|
.title-over-border {
|
||||||
&:not(:first-child) {
|
&:not(:first-child) {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
|
@ -173,6 +173,7 @@ import { exportEchartImg, getXAxisAndYAxisByPosition, splitAxis } from '@/utils/
|
||||||
import { getAction } from '@/api/manage'
|
import { getAction } from '@/api/manage'
|
||||||
import { useBaseChartSetting } from '../../../useChart'
|
import { useBaseChartSetting } from '../../../useChart'
|
||||||
import TitleOverBorder from '../../TitleOverBorder.vue'
|
import TitleOverBorder from '../../TitleOverBorder.vue'
|
||||||
|
import SampleDataMixin from '@/views/spectrumAnalysis/SampleDataMixin'
|
||||||
|
|
||||||
const initialGammaChartOption = {
|
const initialGammaChartOption = {
|
||||||
grid: {
|
grid: {
|
||||||
|
@ -417,16 +418,11 @@ const columns = [
|
||||||
]
|
]
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [ModalMixin],
|
mixins: [ModalMixin, SampleDataMixin],
|
||||||
components: {
|
components: {
|
||||||
CustomChart,
|
CustomChart,
|
||||||
TitleOverBorder
|
TitleOverBorder
|
||||||
},
|
},
|
||||||
props: {
|
|
||||||
sampleId: {
|
|
||||||
type: Number
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
this.columns = columns
|
this.columns = columns
|
||||||
|
|
||||||
|
@ -461,8 +457,10 @@ export default {
|
||||||
async getDetail() {
|
async getDetail() {
|
||||||
try {
|
try {
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
|
const { sampleId, inputFileName: sampleFileName } = this.sampleData
|
||||||
const { success, result, message } = await getAction('/spectrumAnalysis/viewExtrapolation', {
|
const { success, result, message } = await getAction('/spectrumAnalysis/viewExtrapolation', {
|
||||||
sampleId: this.sampleId
|
sampleId,
|
||||||
|
sampleFileName
|
||||||
})
|
})
|
||||||
if (success) {
|
if (success) {
|
||||||
this.detail = result
|
this.detail = result
|
||||||
|
|
|
@ -149,6 +149,7 @@ import { getAction, postAction } from '@/api/manage'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import { exportEchartImg } from '@/utils/chartHelper'
|
import { exportEchartImg } from '@/utils/chartHelper'
|
||||||
import { cloneDeep } from 'lodash'
|
import { cloneDeep } from 'lodash'
|
||||||
|
import SampleDataMixin from '@/views/spectrumAnalysis/SampleDataMixin'
|
||||||
|
|
||||||
// 右侧图表配置
|
// 右侧图表配置
|
||||||
const initialOption = {
|
const initialOption = {
|
||||||
|
@ -247,12 +248,7 @@ const initialFilterOption = {
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
components: { TitleOverBorder, CustomChart },
|
components: { TitleOverBorder, CustomChart },
|
||||||
mixins: [ModalMixin],
|
mixins: [ModalMixin, SampleDataMixin],
|
||||||
props: {
|
|
||||||
sampleId: {
|
|
||||||
type: Number
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
option: cloneDeep(initialOption),
|
option: cloneDeep(initialOption),
|
||||||
|
@ -266,8 +262,10 @@ export default {
|
||||||
// 打开弹窗时初始化左上角Station和Detector信息
|
// 打开弹窗时初始化左上角Station和Detector信息
|
||||||
async getMDCInitialInfo() {
|
async getMDCInitialInfo() {
|
||||||
try {
|
try {
|
||||||
|
const { sampleId, inputFileName: sampleFileName } = this.sampleData
|
||||||
const { success, message, result } = await getAction('/spectrumAnalysis/viewMDC', {
|
const { success, message, result } = await getAction('/spectrumAnalysis/viewMDC', {
|
||||||
sampleId: this.sampleId
|
sampleId,
|
||||||
|
sampleFileName
|
||||||
})
|
})
|
||||||
if (success) {
|
if (success) {
|
||||||
this.setStationAndDetector(result)
|
this.setStationAndDetector(result)
|
||||||
|
@ -303,20 +301,20 @@ export default {
|
||||||
// 设置左上角台站和探测器列表
|
// 设置左上角台站和探测器列表
|
||||||
setStationAndDetector({ detectorList, stationName, stationId }) {
|
setStationAndDetector({ detectorList, stationName, stationId }) {
|
||||||
this.queryParams.stationName = stationName
|
this.queryParams.stationName = stationName
|
||||||
this.detectorList = detectorList.map(item => ({
|
this.detectorList = detectorList.map(({ detectorCode }) => ({
|
||||||
label: item,
|
label: detectorCode,
|
||||||
value: item
|
value: detectorCode
|
||||||
}))
|
}))
|
||||||
this.queryParams.detectorName = detectorList[0]
|
this.queryParams.detectorName = detectorList[0].detectorCode
|
||||||
this.queryParams.stationId = stationId
|
this.queryParams.stationId = stationId
|
||||||
},
|
},
|
||||||
|
|
||||||
// 重置左上角查询信息
|
// 重置左上角查询信息
|
||||||
handleReset() {
|
handleReset() {
|
||||||
this.queryParams.stationName = this.initialMDC.stationName
|
this.queryParams.stationName = this.initialMDC.stationName
|
||||||
this.detectorList = this.initialMDC.detectorList.map(item => ({
|
this.detectorList = this.initialMDC.detectorList.map(({ detectorCode }) => ({
|
||||||
label: item,
|
label: detectorCode,
|
||||||
value: item
|
value: detectorCode
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@ import { getAction } from '@/api/manage'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import { exportEchartImg } from '@/utils/chartHelper'
|
import { exportEchartImg } from '@/utils/chartHelper'
|
||||||
import { cloneDeep } from 'lodash'
|
import { cloneDeep } from 'lodash'
|
||||||
|
import SampleDataMixin from '@/views/spectrumAnalysis/SampleDataMixin'
|
||||||
|
|
||||||
// 右侧图表配置
|
// 右侧图表配置
|
||||||
const initialOption = {
|
const initialOption = {
|
||||||
|
@ -72,61 +73,66 @@ const initialOption = {
|
||||||
right: 10,
|
right: 10,
|
||||||
left: 40,
|
left: 40,
|
||||||
top: 20,
|
top: 20,
|
||||||
bottom: 60
|
bottom: 60,
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'category',
|
type: 'category',
|
||||||
axisLine: {
|
axisLine: {
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: 'rgba(119, 181, 213, .3)'
|
color: 'rgba(119, 181, 213, .3)',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#ade6ee',
|
color: '#ade6ee',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
rotate: 45,
|
rotate: 45,
|
||||||
margin: 10,
|
margin: 10,
|
||||||
formatter: value => {
|
formatter: (value) => {
|
||||||
return moment(value).format('YYYY/MM/DD')
|
return moment(value).format('YYYY/MM/DD')
|
||||||
},
|
},
|
||||||
interval: 0
|
interval: 0,
|
||||||
},
|
},
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: true,
|
show: true,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: 'rgba(119, 181, 213, .3)'
|
color: 'rgba(119, 181, 213, .3)',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
axisTick: {
|
axisTick: {
|
||||||
show: false
|
show: false,
|
||||||
},
|
},
|
||||||
data: new Array(5).fill(0).map((_, index) => {
|
data: new Array(5)
|
||||||
return moment().add(-8 * index, 'hour').format('YYYY-MM-DD HH:mm:ss')
|
.fill(0)
|
||||||
}).reverse()
|
.map((_, index) => {
|
||||||
|
return moment()
|
||||||
|
.add(-8 * index, 'hour')
|
||||||
|
.format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
})
|
||||||
|
.reverse(),
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
axisLine: {
|
axisLine: {
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: 'rgba(119, 181, 213, .3)'
|
color: 'rgba(119, 181, 213, .3)',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: '#ade6ee',
|
color: '#ade6ee',
|
||||||
fontSize: 12
|
fontSize: 12,
|
||||||
},
|
},
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: true,
|
show: true,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: 'rgba(119, 181, 213, .3)'
|
color: 'rgba(119, 181, 213, .3)',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
axisTick: {
|
axisTick: {
|
||||||
show: false
|
show: false,
|
||||||
},
|
},
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 100
|
max: 100,
|
||||||
},
|
},
|
||||||
series: []
|
series: [],
|
||||||
}
|
}
|
||||||
|
|
||||||
// 左侧配置
|
// 左侧配置
|
||||||
|
@ -136,18 +142,15 @@ const initialFilterOption = {
|
||||||
stationName: '',
|
stationName: '',
|
||||||
statisticsType: '',
|
statisticsType: '',
|
||||||
startTime: null,
|
startTime: null,
|
||||||
endTime: null
|
endTime: null,
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
components: { TitleOverBorder, CustomChart },
|
components: { TitleOverBorder, CustomChart },
|
||||||
mixins: [ModalMixin],
|
mixins: [ModalMixin, SampleDataMixin],
|
||||||
props: {
|
props: {
|
||||||
sampleId: {
|
|
||||||
type: Number
|
|
||||||
},
|
|
||||||
statisticsType: {
|
statisticsType: {
|
||||||
type: String
|
type: String,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -155,15 +158,17 @@ export default {
|
||||||
initialMDC: {}, // 初始化的信息,用于重置
|
initialMDC: {}, // 初始化的信息,用于重置
|
||||||
|
|
||||||
queryParams: {},
|
queryParams: {},
|
||||||
detectorList: [] // 探测器列表
|
detectorList: [], // 探测器列表
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 打开弹窗时初始化左上角Station和Detector信息
|
// 打开弹窗时初始化左上角Station和Detector信息
|
||||||
async getMDCInitialInfo() {
|
async getMDCInitialInfo() {
|
||||||
try {
|
try {
|
||||||
|
const { sampleId, inputFileName: sampleFileName } = this.sampleData
|
||||||
const { success, message, result } = await getAction('/spectrumAnalysis/viewMDC', {
|
const { success, message, result } = await getAction('/spectrumAnalysis/viewMDC', {
|
||||||
sampleId: this.sampleId
|
sampleId,
|
||||||
|
sampleFileName,
|
||||||
})
|
})
|
||||||
if (success) {
|
if (success) {
|
||||||
this.setStationAndDetector(result)
|
this.setStationAndDetector(result)
|
||||||
|
@ -199,9 +204,9 @@ export default {
|
||||||
// 设置左上角台站和探测器列表
|
// 设置左上角台站和探测器列表
|
||||||
setStationAndDetector({ detectorList, stationName, stationId }) {
|
setStationAndDetector({ detectorList, stationName, stationId }) {
|
||||||
this.queryParams.stationName = stationName
|
this.queryParams.stationName = stationName
|
||||||
this.detectorList = detectorList.map(item => ({
|
this.detectorList = detectorList.map((item) => ({
|
||||||
label: item,
|
label: item,
|
||||||
value: item
|
value: item,
|
||||||
}))
|
}))
|
||||||
this.queryParams.detectorName = detectorList[0]
|
this.queryParams.detectorName = detectorList[0]
|
||||||
this.queryParams.stationId = stationId
|
this.queryParams.stationId = stationId
|
||||||
|
@ -210,9 +215,9 @@ export default {
|
||||||
// 重置左上角查询信息
|
// 重置左上角查询信息
|
||||||
handleReset() {
|
handleReset() {
|
||||||
this.queryParams.stationName = this.initialMDC.stationName
|
this.queryParams.stationName = this.initialMDC.stationName
|
||||||
this.detectorList = this.initialMDC.detectorList.map(item => ({
|
this.detectorList = this.initialMDC.detectorList.map((item) => ({
|
||||||
label: item,
|
label: item,
|
||||||
value: item
|
value: item,
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -236,12 +241,12 @@ export default {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
data,
|
data,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: result.m_GraphPen
|
color: result.m_GraphPen,
|
||||||
},
|
},
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: result.m_GraphPen
|
color: result.m_GraphPen,
|
||||||
},
|
},
|
||||||
symbol: 'circle'
|
symbol: 'circle',
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.option.series = []
|
this.option.series = []
|
||||||
|
@ -266,12 +271,12 @@ export default {
|
||||||
...initialFilterOption,
|
...initialFilterOption,
|
||||||
statisticsType: this.statisticsType,
|
statisticsType: this.statisticsType,
|
||||||
startTime: moment().format('YYYY-MM-DD'),
|
startTime: moment().format('YYYY-MM-DD'),
|
||||||
endTime: moment().format('YYYY-MM-DD')
|
endTime: moment().format('YYYY-MM-DD'),
|
||||||
}
|
}
|
||||||
|
|
||||||
this.option = cloneDeep(initialOption)
|
this.option = cloneDeep(initialOption)
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@
|
||||||
<!-- Beta-Gamma 的Energy Calibration结束 -->
|
<!-- Beta-Gamma 的Energy Calibration结束 -->
|
||||||
|
|
||||||
<!-- Beta-Gamma 的 Extrapolation 弹窗开始 -->
|
<!-- Beta-Gamma 的 Extrapolation 弹窗开始 -->
|
||||||
<beta-gamma-extrapolation-modal v-model="betaGammaExtrapolationModalVisible" :sampleId="sampleData.sampleId" />
|
<beta-gamma-extrapolation-modal v-model="betaGammaExtrapolationModalVisible" />
|
||||||
<!-- Beta-Gamma 的 Extrapolation 弹窗结束 -->
|
<!-- Beta-Gamma 的 Extrapolation 弹窗结束 -->
|
||||||
|
|
||||||
<!-- Beta-Gamma 的 Spectrum 弹窗 -->
|
<!-- Beta-Gamma 的 Spectrum 弹窗 -->
|
||||||
|
@ -185,10 +185,7 @@
|
||||||
<!-- Beta-Gamma 的 RLR 弹窗 结束 -->
|
<!-- Beta-Gamma 的 RLR 弹窗 结束 -->
|
||||||
|
|
||||||
<!-- Beta-Gamma 的 Statistics Paramer History 弹窗 -->
|
<!-- Beta-Gamma 的 Statistics Paramer History 弹窗 -->
|
||||||
<statistics-paramer-history-modal
|
<statistics-paramer-history-modal v-model="statisticsParamerHistoryModalVisible" />
|
||||||
v-model="statisticsParamerHistoryModalVisible"
|
|
||||||
:sampleId="this.sampleData.sampleId"
|
|
||||||
/>
|
|
||||||
<!-- Beta-Gamma 的 Statistics Paramer History 弹窗 结束 -->
|
<!-- Beta-Gamma 的 Statistics Paramer History 弹窗 结束 -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -993,6 +990,7 @@ export default {
|
||||||
{
|
{
|
||||||
type: 'a-menu-item',
|
type: 'a-menu-item',
|
||||||
title: 'Color Config',
|
title: 'Color Config',
|
||||||
|
show: this.isGamma,
|
||||||
handler: () => (this.colorConfigModalVisible = true),
|
handler: () => (this.colorConfigModalVisible = true),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user