fix: 部分页面增加sampleFileName字段
This commit is contained in:
parent
cbaa99e334
commit
08ca6c154d
|
@ -122,7 +122,7 @@
|
||||||
<!-- 主体部分结束 -->
|
<!-- 主体部分结束 -->
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
|
||||||
<statistics-paramer-history-modal-for-qc-flags v-model="statisticModalVisible" :sampleId="sample.sampleId" :statisticsType="statisticsType" />
|
<statistics-paramer-history-modal-for-qc-flags v-model="statisticModalVisible" :statisticsType="statisticsType" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<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">
|
||||||
|
<div class="comment">
|
||||||
<title-over-border title="Spectrum Comment">
|
<title-over-border title="Spectrum Comment">
|
||||||
<a-textarea v-model="comments.spectrumCommentInfo" :rows="8" :disabled="true"></a-textarea>
|
<a-textarea v-model="comments.spectrumCommentInfo" :rows="8" :disabled="true"></a-textarea>
|
||||||
</title-over-border>
|
</title-over-border>
|
||||||
|
@ -10,6 +11,7 @@
|
||||||
<title-over-border title="Spectrum Analysis Comment">
|
<title-over-border title="Spectrum Analysis Comment">
|
||||||
<a-textarea v-model="comments.spectrumAnalysisCommentInfo" :rows="8" :disabled="!isAdd"></a-textarea>
|
<a-textarea v-model="comments.spectrumAnalysisCommentInfo" :rows="8" :disabled="!isAdd"></a-textarea>
|
||||||
</title-over-border>
|
</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
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -142,9 +142,6 @@ export default {
|
||||||
components: { TitleOverBorder, CustomChart },
|
components: { TitleOverBorder, CustomChart },
|
||||||
mixins: [ModalMixin],
|
mixins: [ModalMixin],
|
||||||
props: {
|
props: {
|
||||||
sampleId: {
|
|
||||||
type: Number
|
|
||||||
},
|
|
||||||
statisticsType: {
|
statisticsType: {
|
||||||
type: String
|
type: String
|
||||||
}
|
}
|
||||||
|
@ -162,8 +159,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)
|
||||||
|
|
|
@ -167,7 +167,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 弹窗 -->
|
||||||
|
@ -192,7 +192,6 @@
|
||||||
<!-- 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>
|
||||||
|
@ -941,6 +940,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