fix: 修复Update ROI不能为0的问题
This commit is contained in:
parent
1b549768e7
commit
d82b894c0b
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user