|
@@ -78,25 +78,27 @@
|
|
|
<script>
|
|
|
import MxSelectTranslate from '@/components/Cache/modules/mx-select-translate-mixin.js'
|
|
|
import ElectivePreferenceDrag from './elective-preference-drag'
|
|
|
-import ChooseSubjectDialog from './choose-subject-dialog'
|
|
|
+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/system/user/profile/components/esign-dialog'
|
|
|
-import ReportStep from './report-step'
|
|
|
+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/system/user/profile/components/elective-enroll-info'
|
|
|
+import ElectiveEnrollInfo from '@/views/elective/select/components/elective-enroll-info'
|
|
|
import ElectiveToolsMixin from './elective-tools-mixins'
|
|
|
-import ElectivePreferenceInfo from '@/views/system/user/profile/components/elective-preference-info'
|
|
|
-import ElectivePreferenceReject from '@/views/system/user/profile/components/elective-preference-reject'
|
|
|
-import ElectivePreferenceCommand from '@/views/system/user/profile/components/elective-preference-command'
|
|
|
-import AiAnalysisDialog from '@/views/system/user/profile/components/ai-analysis-dialog'
|
|
|
+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'
|
|
|
|
|
|
const resolverModules = require.context('./round-select-resolvers', false, /\.js$/)
|
|
|
const resolvers = resolverModules.keys().map(key => resolverModules(key).default)
|
|
|
|
|
|
export default {
|
|
|
+ mixins: [ElectiveToolsMixin, MxSelectTranslate, ...resolvers],
|
|
|
+ name: 'elective-table',
|
|
|
props: {
|
|
|
generation: Object,
|
|
|
readonly: Boolean, // 校长端不允许操作
|
|
@@ -121,7 +123,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- mixins: [ElectiveToolsMixin, MxSelectTranslate, ...resolvers],
|
|
|
computed: {
|
|
|
...mapGetters(['hasPermissions']),
|
|
|
enrollInfoVisible() {
|
|
@@ -175,10 +176,7 @@ export default {
|
|
|
return this.enableSelect && this.generation.active > this.generation.options.primary.value
|
|
|
},
|
|
|
enableAIFeature() {
|
|
|
- if (!this.generation.activeOpt) return false
|
|
|
- const options = this.generation.options
|
|
|
- return !this.generation.activeOpt.decisionMaking &&
|
|
|
- this.generation.activeOpt != options.primary && !this.readonly
|
|
|
+ return !this.generation.activeOpt.decisionMaking && this.generation.activeOpt != options.primary && !this.readonly
|
|
|
},
|
|
|
resolveTablePrefix() {
|
|
|
return {
|