Compare commits

...

2 Commits

2 changed files with 4 additions and 3 deletions

View File

@ -188,7 +188,7 @@ export default {
this.sampleDetail = data this.sampleDetail = data
this.emitGetFiles(data) this.emitGetFiles(data)
} }
this.ROIAnalyzeLists = data.ROIAnalyzeLists this.ROIAnalyzeLists = data.ROIAnalyzeLists || []
} else { } else {
if (newVal.sampleId) { if (newVal.sampleId) {
this.getSampleDetail() this.getSampleDetail()
@ -360,7 +360,7 @@ export default {
// Update // Update
async handleUpdate() { async handleUpdate() {
const hasEmpty = this.roiParamList.some( const hasEmpty = this.roiParamList.some(
([startChannel, endChannel]) => (!startChannel && startChannel !== '0') || (!endChannel && endChannel !== '0') ([startChannel, endChannel]) => (!startChannel && startChannel != '0') || (!endChannel && endChannel != '0')
) )
if (hasEmpty) { if (hasEmpty) {
this.$message.warning('Channel cannot be null') this.$message.warning('Channel cannot be null')

View File

@ -109,7 +109,8 @@
<span <span
:class="[ :class="[
(record.detFileStatus && record.gasFileStatus && record.qcFileStatus) || (record.detFileStatus && record.gasFileStatus && record.qcFileStatus) ||
(record.sampleFileName && !record.gasFileName && !record.detFileName && !record.qcFileName) (record.sampleFileName && !record.gasFileName && !record.detFileName && !record.qcFileName) ||
(record.sampleSystemType == 'C' && record.sampleFileName)
? 'status_true' ? 'status_true'
: 'status_false', : 'status_false',
'status', 'status',