|
@@ -68,30 +68,29 @@
|
|
|
<el-button v-if="enableSelect" @click="commitBatch" type="primary" :disabled="!enableCommit">提交</el-button>
|
|
|
</div>
|
|
|
<elective-preference-reject v-if="enableReject" :generation="generation"></elective-preference-reject>
|
|
|
- <esign-dialog ref="esignDialog"></esign-dialog>
|
|
|
+ <elective-esign-dialog ref="esignDialog"></elective-esign-dialog>
|
|
|
<choose-subject-dialog ref="chooseDialog"></choose-subject-dialog>
|
|
|
<select-subject-report-dialog ref="reportDialog"></select-subject-report-dialog>
|
|
|
- <ai-analysis-dialog ref="aiDialog" :optionalMajors="optionalMajors" :prevPreferencesInfo="currentSupplyInfo"
|
|
|
- :generation="generation"></ai-analysis-dialog>
|
|
|
+ <elective-ai-analysis-dialog ref="aiDialog" :optionalMajors="optionalMajors"
|
|
|
+ :generation="generation"></elective-ai-analysis-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import MxSelectTranslate from '@/components/Cache/modules/mx-select-translate-mixin.js'
|
|
|
-import ElectivePreferenceDrag from './elective-preference-drag'
|
|
|
import ChooseSubjectDialog from '../../../system/user/profile/components/choose-subject-dialog'
|
|
|
import SelectSubjectReportDialog from '@/views/system/user/profile/components/select-subject-report-dialog'
|
|
|
-import EsignDialog from '@/views/elective/select/components/elective-esign-dialog'
|
|
|
-import ReportStep from '../../../system/user/profile/components/report-step'
|
|
|
import OverUnderBadge from '@/views/elective/publish/components/steps/fauclty/over-under-badge'
|
|
|
import { submitElectiveModels } from '@/api/webApi/elective/selected-subject'
|
|
|
import consts from '@/common/mx-const'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import ElectiveEnrollInfo from '@/views/elective/select/components/elective-enroll-info'
|
|
|
+import ElectivePreferenceDrag from './elective-preference-drag'
|
|
|
import ElectiveToolsMixin from './elective-tools-mixins'
|
|
|
import ElectivePreferenceInfo from '@/views/elective/select/components/elective-preference-info'
|
|
|
import ElectivePreferenceReject from '@/views/elective/select/components/elective-preference-reject'
|
|
|
import ElectivePreferenceCommand from '@/views/elective/select/components/elective-preference-command'
|
|
|
-import AiAnalysisDialog from '@/views/elective/select/components/elective-ai-analysis-dialog'
|
|
|
+import ElectiveAiAnalysisDialog from '@/views/elective/select/components/elective-ai-analysis-dialog'
|
|
|
+import ElectiveEsignDialog from '@/views/elective/select/components/elective-esign-dialog'
|
|
|
|
|
|
const resolverModules = require.context('./round-select-resolvers', false, /\.js$/)
|
|
|
const resolvers = resolverModules.keys().map(key => resolverModules(key).default)
|
|
@@ -105,15 +104,14 @@ export default {
|
|
|
optionalMajors: { type: Array, default: () => [] }
|
|
|
},
|
|
|
components: {
|
|
|
- AiAnalysisDialog,
|
|
|
+ ElectiveEsignDialog,
|
|
|
+ ElectiveAiAnalysisDialog,
|
|
|
ElectivePreferenceCommand,
|
|
|
ElectivePreferenceReject,
|
|
|
ElectivePreferenceInfo,
|
|
|
ElectiveEnrollInfo,
|
|
|
OverUnderBadge,
|
|
|
SelectSubjectReportDialog,
|
|
|
- ReportStep,
|
|
|
- EsignDialog,
|
|
|
ElectivePreferenceDrag,
|
|
|
ChooseSubjectDialog
|
|
|
},
|
|
@@ -176,7 +174,9 @@ export default {
|
|
|
return this.enableSelect && this.generation.active > this.generation.options.primary.value
|
|
|
},
|
|
|
enableAIFeature() {
|
|
|
- return !this.generation.activeOpt.decisionMaking && this.generation.activeOpt != options.primary && !this.readonly
|
|
|
+ return !this.generation.activeOpt.decisionMaking
|
|
|
+ && this.generation.activeOpt != this.generation.options.primary
|
|
|
+ && !this.readonly
|
|
|
},
|
|
|
resolveTablePrefix() {
|
|
|
return {
|