fix: 修复beta下Add Comment、Statistics弹窗及load from file文件名问题
This commit is contained in:
parent
5cc9a647a8
commit
13fc43d8c7
|
@ -34,6 +34,10 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
comment: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -56,7 +60,9 @@ export default {
|
||||||
})
|
})
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.comments = res.result
|
this.comments = res.result
|
||||||
this.$emit('sedInfo', this.comments)
|
if(this.value) { // 如果之前有值,用之前的
|
||||||
|
this.comments.spectrumAnalysisCommentInfo = this.comment
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.message)
|
this.$message.error(res.message)
|
||||||
}
|
}
|
||||||
|
@ -72,7 +78,9 @@ export default {
|
||||||
this.getCommets()
|
this.getCommets()
|
||||||
},
|
},
|
||||||
handleOk() {
|
handleOk() {
|
||||||
console.log('%c [ ]-26', 'font-size:13px; background:pink; color:#bf2c9f;', this.comments)
|
this.$emit('sendInfo', this.comments)
|
||||||
|
this.$message.success('Commit successful')
|
||||||
|
this.visible = false
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<a-checkbox v-model="queryParams.filterGrpbox">Filter</a-checkbox>
|
<a-checkbox v-model="queryParams.filterGrpbox">Filter</a-checkbox>
|
||||||
</template>
|
</template>
|
||||||
<a-checkbox>Xe Result Flag</a-checkbox>
|
<a-checkbox :disabled="filterDisabled">Xe Result Flag</a-checkbox>
|
||||||
<!-- 配置详情 -->
|
<!-- 配置详情 -->
|
||||||
<div class="filter-options">
|
<div class="filter-options">
|
||||||
<div class="filter-option">
|
<div class="filter-option">
|
||||||
|
@ -291,7 +291,7 @@ export default {
|
||||||
this.setStationAndDetector(result)
|
this.setStationAndDetector(result)
|
||||||
} else {
|
} else {
|
||||||
this.detectorList = []
|
this.detectorList = []
|
||||||
this.queryParams.detectorName = undefined
|
this.queryParams.detectorId = ''
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
@ -329,7 +329,7 @@ export default {
|
||||||
try {
|
try {
|
||||||
const find = this.detectorList.find(item => item.value == this.queryParams.detectorId)
|
const find = this.detectorList.find(item => item.value == this.queryParams.detectorId)
|
||||||
const { success, message, result } = await postAction('/spectrumAnalysis/statisticsQuery', {
|
const { success, message, result } = await postAction('/spectrumAnalysis/statisticsQuery', {
|
||||||
detectorCode: find.label,
|
detectorCode: find? find.label: '',
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
})
|
})
|
||||||
if (success) {
|
if (success) {
|
||||||
|
|
|
@ -194,7 +194,7 @@ export default {
|
||||||
this.setStationAndDetector(result)
|
this.setStationAndDetector(result)
|
||||||
} else {
|
} else {
|
||||||
this.detectorList = []
|
this.detectorList = []
|
||||||
this.queryParams.detectorName = undefined
|
this.queryParams.detectorId = ''
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
@ -227,7 +227,7 @@ export default {
|
||||||
try {
|
try {
|
||||||
const find = this.detectorList.find(item => item.value == this.queryParams.detectorId)
|
const find = this.detectorList.find(item => item.value == this.queryParams.detectorId)
|
||||||
const { success, message, result } = await getAction('/spectrumAnalysis/statisticsQueryBtn', {
|
const { success, message, result } = await getAction('/spectrumAnalysis/statisticsQueryBtn', {
|
||||||
detectorCode: find.label,
|
detectorCode: find? find.label: '',
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
})
|
})
|
||||||
if (success) {
|
if (success) {
|
||||||
|
|
|
@ -445,9 +445,10 @@ export default {
|
||||||
})
|
})
|
||||||
|
|
||||||
if (findFile) {
|
if (findFile) {
|
||||||
|
const regExp = new RegExp(`(${otherFilePrefix}${fileType}_${qualify}_\\d{1,}\\.{0,}\\d{0,}).*?(\\.PHD)`)
|
||||||
record[nameKeys[index]] = {
|
record[nameKeys[index]] = {
|
||||||
file: findFile,
|
file: findFile,
|
||||||
fileName: findFile.name,
|
fileName: findFile.name.replace(regExp, '$1$2'),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
record[nameKeys[index]] = {
|
record[nameKeys[index]] = {
|
||||||
|
|
|
@ -157,6 +157,7 @@
|
||||||
<beta-gamma-comments-modal
|
<beta-gamma-comments-modal
|
||||||
v-model="betaGammaCommentsModalVisible"
|
v-model="betaGammaCommentsModalVisible"
|
||||||
:isAdd="isBetaGammaCommentsAdd"
|
:isAdd="isBetaGammaCommentsAdd"
|
||||||
|
:comment="params_toDB.comment"
|
||||||
@sendInfo="getcommentsInfo"
|
@sendInfo="getcommentsInfo"
|
||||||
/>
|
/>
|
||||||
<!-- Beta-Gamma 的Comments 结束 -->
|
<!-- Beta-Gamma 的Comments 结束 -->
|
||||||
|
@ -477,6 +478,7 @@ export default {
|
||||||
this.analysisType = ANALYZE_TYPE.GAMMA
|
this.analysisType = ANALYZE_TYPE.GAMMA
|
||||||
}
|
}
|
||||||
this.sampleData = this.newSampleData = sample
|
this.sampleData = this.newSampleData = sample
|
||||||
|
this.params_toDB.comment = ''
|
||||||
},
|
},
|
||||||
|
|
||||||
// 清理全部
|
// 清理全部
|
||||||
|
|
Loading…
Reference in New Issue
Block a user