处理rlr弹窗数据问题,及增加loading效果
This commit is contained in:
parent
8e4b721414
commit
4a77ea8f82
|
@ -72,25 +72,35 @@ export default {
|
|||
watch: {
|
||||
allData: {
|
||||
handler(val) {
|
||||
console.log(val);
|
||||
this.model.msgId = val.header_msg_id;
|
||||
this.model.dataType = val.header_data_type;
|
||||
this.model.priorityLevel = val.header_priority_level;
|
||||
this.model.stationCode = val.header_station_code;
|
||||
this.model.srid = val.header_srid;
|
||||
this.model.labCode = val.header_lab_code;
|
||||
this.model.labDetector = val.header_lab_detector;
|
||||
this.model.reportType = val.header_report_type;
|
||||
this.model.reportnumber = val.header_report_number;
|
||||
this.model.sampleCategory = val.header_sample_category;
|
||||
this.model.transmission = val.header_transmission;
|
||||
},
|
||||
deep: true,
|
||||
immediate:true
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.model.msgId = this.allData.header_msg_id;
|
||||
this.model.dataType = this.allData.header_data_type;
|
||||
this.model.priorityLevel = this.allData.header_priority_level;
|
||||
this.model.stationCode = this.allData.header_station_code;
|
||||
this.model.srid = this.allData.header_srid;
|
||||
this.model.labCode = this.allData.header_lab_code;
|
||||
this.model.labDetector = this.allData.header_lab_detector;
|
||||
this.model.reportType = this.allData.header_report_type;
|
||||
this.model.reportnumber = this.allData.header_report_number;
|
||||
this.model.sampleCategory = this.allData.header_sample_category;
|
||||
this.model.transmission = this.allData.header_transmission;
|
||||
},
|
||||
// mounted () {
|
||||
// this.model.msgId = this.allData.header_msg_id;
|
||||
// this.model.dataType = this.allData.header_data_type;
|
||||
// this.model.priorityLevel = this.allData.header_priority_level;
|
||||
// this.model.stationCode = this.allData.header_station_code;
|
||||
// this.model.srid = this.allData.header_srid;
|
||||
// this.model.labCode = this.allData.header_lab_code;
|
||||
// this.model.labDetector = this.allData.header_lab_detector;
|
||||
// this.model.reportType = this.allData.header_report_type;
|
||||
// this.model.reportnumber = this.allData.header_report_number;
|
||||
// this.model.sampleCategory = this.allData.header_sample_category;
|
||||
// this.model.transmission = this.allData.header_transmission;
|
||||
// },
|
||||
data() {
|
||||
this.priorityLevbelOptions = priorityLevbelOptions
|
||||
this.reportTypeOptions = reportTypeOptions
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<custom-modal v-model="visible" :width="1280" title="Mini Radionuclide Laboratory Reports" :destroyOnClose="true">
|
||||
<a-spin :spinning="isLoading">
|
||||
<div class="rlr">
|
||||
<div class="rlr-tabs">
|
||||
<div
|
||||
|
@ -66,6 +67,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-spin>
|
||||
</custom-modal>
|
||||
</template>
|
||||
|
||||
|
@ -136,23 +138,23 @@ export default {
|
|||
data() {
|
||||
this.tabs = tabs
|
||||
return {
|
||||
isLoading: false,
|
||||
activeKey: 0,
|
||||
allInfo: {}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.getGammaViewRLR();
|
||||
},
|
||||
methods: {
|
||||
beforeModalOpen() {
|
||||
this.activeKey = 0
|
||||
this.getGammaViewRLR();
|
||||
},
|
||||
getGammaViewRLR() {
|
||||
this.isLoading = true
|
||||
let params = {
|
||||
sampleId: this.sampleId
|
||||
}
|
||||
getAction("/gamma/viewRLR", params).then(res => {
|
||||
console.log(res);
|
||||
this.isLoading = false
|
||||
if (res.success) {
|
||||
this.allInfo = res.result
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user