参数调整,接口错误信息处理

This commit is contained in:
任珮宇 2023-11-16 19:01:00 +08:00
parent eb1ea53b8f
commit 9038fc5116
4 changed files with 30 additions and 3 deletions

View File

@ -61,7 +61,7 @@
<template slot="title">
<a-checkbox v-model="queryParams.filterGrpbox">Filter</a-checkbox>
</template>
<a-checkbox :disabled="filterDisabled" v-model="queryParams.xeResFlag">Xe Result Flag</a-checkbox>
<a-checkbox :disabled="filterDisabled" v-model="queryParams.xeResultFlag">Xe Result Flag</a-checkbox>
<!-- 配置详情 -->
<div class="filter-options">
<div class="filter-option">
@ -255,7 +255,7 @@ export default {
initialMDC: {}, //
queryParams: {
xeResFlag: false,
xeResultFlag: false,
},
detectorList: [], //
}

View File

@ -5,7 +5,7 @@
<span class="processing-monitor-content-bar-percent">{{ percent * 100 }}%</span>
</div>
</div>
<div style="margin-top: 15px; font-size: 12px">{{ analysedFileName[0] }}</div>
<div style="margin-top: 15px; font-size: 12px">{{ analysedFileName.length > 0 ? analysedFileName[0] : '' }}</div>
<div slot="custom-footer">
<a-button @click="visible = false">Cancel</a-button>
</div>
@ -22,6 +22,14 @@ export default {
},
analysedFileName: {
type: Array,
default: () => [],
},
},
watch: {
percent(newValue, oldValue) {
if (newValue == 1) {
this.visible = false
}
},
},
}

View File

@ -1557,6 +1557,7 @@ export default {
content: () => arr.map((text) => <div>{text}</div>),
})
}
return message
}
} catch (error) {
console.error(error)

View File

@ -794,6 +794,8 @@ export default {
},
handleReprocessAll() {
this.percentBar = 0
this.finishCont = 0
this.analyzeAllModalVisible = true
const { inputFileName, sampleType } = this.sampleData
// gamma list
@ -829,6 +831,14 @@ export default {
if (fileNames.length > 0) {
this.fetchReprocessing(fileNames, currFileName, sampleType)
}
} else {
this.analyzeAllModalVisible = false
const arr = res.split('\n')
this.$warning({
title: 'Warning',
content: () => arr.map((text) => <div>{text}</div>),
})
return
}
})
} else {
@ -841,6 +851,14 @@ export default {
if (fileNames.length > 0) {
this.fetchReprocessing(fileNames, currFileName, sampleType)
}
} else {
this.analyzeAllModalVisible = false
const arr = message.split('\n')
this.$warning({
title: 'Warning',
content: () => arr.map((text) => <div>{text}</div>),
})
return
}
} catch (error) {
console.error(error)