Merge branch 'master-dev' of http://git.hivekion.com:3000/xiaoguangbin/AnalysisSystemForRadionuclide_vue into master-dev
This commit is contained in:
commit
2403bb36fd
|
@ -224,10 +224,24 @@ export default {
|
||||||
currSample: {},
|
currSample: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.$bus.$on('ReAnalyse', this.redrawRect)
|
||||||
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
this.cancelLastRequest()
|
this.cancelLastRequest()
|
||||||
|
this.$bus.$off('ReAnalyse', this.redrawRect)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 重新绘制矩形框
|
||||||
|
redrawRect(result) {
|
||||||
|
const keys = ['SampleBoundary', 'GasBoundary', 'DetBoundary', 'QCBoundary']
|
||||||
|
SampleType.forEach((item, index) => {
|
||||||
|
const value = result[keys[index]]
|
||||||
|
this.sampleDetail[item.value].Boundary = value || []
|
||||||
|
this.changeChartByType(this.spectraType)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
handleGetFlag(val, obj) {
|
handleGetFlag(val, obj) {
|
||||||
this.resultDisplay.forEach((item) => {
|
this.resultDisplay.forEach((item) => {
|
||||||
if (item.nuclideName === obj.nuclideName) {
|
if (item.nuclideName === obj.nuclideName) {
|
||||||
|
|
|
@ -151,6 +151,7 @@ export default {
|
||||||
this.$message.success('Analyse Success!')
|
this.$message.success('Analyse Success!')
|
||||||
this.isReanlyze = true
|
this.isReanlyze = true
|
||||||
this.handleExit()
|
this.handleExit()
|
||||||
|
this.$bus.$emit('ReAnalyse', res.result)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
|
|
@ -346,6 +346,8 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeModalOpen() {
|
beforeModalOpen() {
|
||||||
|
this.model.energy = null
|
||||||
|
this.model.efficiency = null
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.funcId = 1
|
this.funcId = 1
|
||||||
this.getData()
|
this.getData()
|
||||||
|
|
|
@ -310,6 +310,8 @@ export default {
|
||||||
beforeModalOpen() {
|
beforeModalOpen() {
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.getData()
|
this.getData()
|
||||||
|
this.model.channel = null
|
||||||
|
this.model.energy = null
|
||||||
},
|
},
|
||||||
|
|
||||||
// 表格单行点击
|
// 表格单行点击
|
||||||
|
|
|
@ -309,6 +309,8 @@ export default {
|
||||||
beforeModalOpen() {
|
beforeModalOpen() {
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.getData()
|
this.getData()
|
||||||
|
this.model.energy = null
|
||||||
|
this.model.fwhm = null
|
||||||
},
|
},
|
||||||
|
|
||||||
// 表格单行点击
|
// 表格单行点击
|
||||||
|
|
Loading…
Reference in New Issue
Block a user