|
@@ -20,7 +20,7 @@
|
|
|
|
|
|
<script>
|
|
|
import config from '@/common/mx-config'
|
|
|
-import { getElectiveStatus, getElectiveSummary } from '@/api/webApi/elective/generation'
|
|
|
+import { getElectiveStatus, getElectiveSummary, resetMockGeneration } from '@/api/webApi/elective/generation'
|
|
|
import MxCondition from '@/components/MxCondition/mx-condition'
|
|
|
import ElectiveGenerationSteps from '@/views/elective/generation/components/elective-generation-steps'
|
|
|
import ElectiveGenerationMaster from '@/views/elective/generation/components/elective-generation-master'
|
|
@@ -102,9 +102,10 @@ export default {
|
|
|
async handleQuery() {
|
|
|
this.loading = true
|
|
|
try {
|
|
|
+ await resetMockGeneration() // TODO: remove when test completed
|
|
|
const resStatus = await getElectiveStatus(this.queryParams)
|
|
|
- this.electiveStatus = resStatus.data
|
|
|
const resSummary = await getElectiveSummary(this.queryParams)
|
|
|
+ this.electiveStatus = resStatus.data
|
|
|
this.electiveSummary = resSummary.data
|
|
|
} finally {
|
|
|
this.loading = false
|