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

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"> <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 :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-options">
<div class="filter-option"> <div class="filter-option">
@ -255,7 +255,7 @@ export default {
initialMDC: {}, // initialMDC: {}, //
queryParams: { queryParams: {
xeResFlag: false, xeResultFlag: false,
}, },
detectorList: [], // detectorList: [], //
} }

View File

@ -5,7 +5,7 @@
<span class="processing-monitor-content-bar-percent">{{ percent * 100 }}%</span> <span class="processing-monitor-content-bar-percent">{{ percent * 100 }}%</span>
</div> </div>
</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"> <div slot="custom-footer">
<a-button @click="visible = false">Cancel</a-button> <a-button @click="visible = false">Cancel</a-button>
</div> </div>
@ -22,6 +22,14 @@ export default {
}, },
analysedFileName: { analysedFileName: {
type: Array, 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>), content: () => arr.map((text) => <div>{text}</div>),
}) })
} }
return message
} }
} catch (error) { } catch (error) {
console.error(error) console.error(error)

View File

@ -794,6 +794,8 @@ export default {
}, },
handleReprocessAll() { handleReprocessAll() {
this.percentBar = 0
this.finishCont = 0
this.analyzeAllModalVisible = true this.analyzeAllModalVisible = true
const { inputFileName, sampleType } = this.sampleData const { inputFileName, sampleType } = this.sampleData
// gamma list // gamma list
@ -829,6 +831,14 @@ export default {
if (fileNames.length > 0) { if (fileNames.length > 0) {
this.fetchReprocessing(fileNames, currFileName, sampleType) 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 { } else {
@ -841,6 +851,14 @@ export default {
if (fileNames.length > 0) { if (fileNames.length > 0) {
this.fetchReprocessing(fileNames, currFileName, sampleType) 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) { } catch (error) {
console.error(error) console.error(error)