导出radionuclide Activity接口 增加日期参数

This commit is contained in:
任珮宇 2024-01-18 17:57:52 +08:00
parent 2f147ed144
commit 320dab11f0

View File

@ -10,10 +10,10 @@
<a-form-model class="search-form"> <a-form-model class="search-form">
<div class="time-pickers"> <div class="time-pickers">
<a-form-model-item label="Activity reference time"> <a-form-model-item label="Activity reference time">
<custom-date-picker show-time v-model="queryParam.activityReferenceTime" /> <custom-date-picker show-time v-model="queryParam.activityReferenceTime" @change="arDateChange" />
</a-form-model-item> </a-form-model-item>
<a-form-model-item label="Concentration reference time"> <a-form-model-item label="Concentration reference time">
<custom-date-picker show-time v-model="queryParam.concentrationReferenceTime" /> <custom-date-picker show-time v-model="queryParam.concentrationReferenceTime" @change="crDateChange" />
</a-form-model-item> </a-form-model-item>
</div> </div>
<a-space class="operators" :size="20"> <a-space class="operators" :size="20">
@ -112,6 +112,12 @@ export default {
} }
}, },
methods: { methods: {
arDateChange(mont, date) {
this.queryParam.activityReferenceTime = date
},
crDateChange(mont, date) {
this.queryParam.concentrationReferenceTime = date
},
// //
handleComparision() { handleComparision() {
this.compareVisible = !this.compareVisible this.compareVisible = !this.compareVisible
@ -176,6 +182,8 @@ export default {
let params = { let params = {
sampleId, sampleId,
fileName, fileName,
arTime: this.queryParam.activityReferenceTime,
crTime: this.queryParam.concentrationReferenceTime,
} }
getFileAction('/gamma/exportRadionuclideActivity', params).then((res) => { getFileAction('/gamma/exportRadionuclideActivity', params).then((res) => {
if (res.code && res.code == 500) { if (res.code && res.code == 500) {