|
@@ -45,7 +45,8 @@ export default {
|
|
|
// local data
|
|
|
activeStep: '',
|
|
|
options: config.electiveGenerationOptions,
|
|
|
- tableHiddenGenerations: []
|
|
|
+ tableHiddenGenerations: [],
|
|
|
+ callOnce: false
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -102,7 +103,11 @@ export default {
|
|
|
async handleQuery() {
|
|
|
this.loading = true
|
|
|
try {
|
|
|
- await resetMockGeneration() // TODO: remove when test completed
|
|
|
+ // TODO: remove when test completed
|
|
|
+ if (!this.callOnce) {
|
|
|
+ await resetMockGeneration()
|
|
|
+ this.callOnce = true
|
|
|
+ }
|
|
|
const resStatus = await getElectiveStatus(this.queryParams)
|
|
|
const resSummary = await getElectiveSummary(this.queryParams)
|
|
|
this.electiveStatus = resStatus.data
|