diff --git a/src/views/statistics/imsData/stateOfHealth/rmssoh.vue b/src/views/statistics/imsData/stateOfHealth/rmssoh.vue index 00eb945..15a4da2 100644 --- a/src/views/statistics/imsData/stateOfHealth/rmssoh.vue +++ b/src/views/statistics/imsData/stateOfHealth/rmssoh.vue @@ -16,7 +16,6 @@ :list="dataSource" :pagination="ipagination" :loading="loading" - :canSelect="false" @change="handleTableChange" @detail="handleDetail" > @@ -137,10 +136,12 @@ export default { this.isFileDetail = flag }, handleDetail(record) { + console.log(record); this.currSampleId = record.sohId this.isFileDetail = true }, searchQueryData() { + this.loading = true let days = compareDate(this.queryParam.startTime, this.queryParam.endTime) if (days <= 10) { this.isImmediate = false @@ -155,6 +156,7 @@ export default { pageSize: 10 } getAction(this.url.list, params).then((res) => { + this.loading = false if (res.success) { this.ipagination.current = res.result.current this.ipagination.pageSize = res.result.size diff --git a/src/views/statistics/imsProducts/arr/index.vue b/src/views/statistics/imsProducts/arr/index.vue index f94ad0e..51dfc91 100644 --- a/src/views/statistics/imsProducts/arr/index.vue +++ b/src/views/statistics/imsProducts/arr/index.vue @@ -141,6 +141,7 @@ export default { this.isFileDetail = true }, searchQueryData() { + this.loading = true let days = compareDate(this.queryParam.startTime, this.queryParam.endTime) if (days <= 10) { this.isImmediate = false @@ -155,6 +156,7 @@ export default { pageSize: 10 } getAction(this.url.list, params).then((res) => { + this.loading = false if (res.success) { this.ipagination.current = res.result.current this.ipagination.pageSize = res.result.size diff --git a/src/views/statistics/imsProducts/rrr/index.vue b/src/views/statistics/imsProducts/rrr/index.vue index 0107989..11b1679 100644 --- a/src/views/statistics/imsProducts/rrr/index.vue +++ b/src/views/statistics/imsProducts/rrr/index.vue @@ -141,8 +141,9 @@ export default { this.isFileDetail = true }, searchQueryData() { + this.loading = true let days = compareDate(this.queryParam.startTime, this.queryParam.endTime) - // if (days <= 10) { + if (days <= 10) { this.isImmediate = false // this.queryParam = { // startTime: "2023-01-01", @@ -155,6 +156,7 @@ export default { pageSize: 10 } getAction(this.url.list, params).then((res) => { + this.loading = false if (res.success) { this.ipagination.current = res.result.current this.ipagination.pageSize = res.result.size @@ -164,9 +166,9 @@ export default { this.$message.warning("This operation fails. Contact your system administrator") } }) - // } else { - // this.$message.info("Maximum timespan duration is 10 days. Please, change start or end date.") - // } + } else { + this.$message.info("Maximum timespan duration is 10 days. Please, change start or end date.") + } }, findStationList() { getAction(this.url.findStationList, { menuName: '' }).then((res) => {