|
@@ -47,13 +47,13 @@
|
|
|
</template>
|
|
|
</mx-table>
|
|
|
<edit-group :year="round.year" ref="editDialog"></edit-group>
|
|
|
- <class-adjust ref="adjustDialog"></class-adjust>
|
|
|
+ <class-adjust-dialog ref="adjustDialog"></class-adjust-dialog>
|
|
|
</el-row>
|
|
|
</template>
|
|
|
<script>
|
|
|
import MxClassTreeTranslateMixin from '@/components/Cache/modules/mx-classTree-translate-mixin.js'
|
|
|
import MxSelectTranslateMixin from '@/components/Cache/modules/mx-select-translate-mixin.js'
|
|
|
-import ClassAdjust from './class-adjust'
|
|
|
+import ClassAdjustDialog from './class-adjust-dialog'
|
|
|
import SetClasscount from './set-classcount'
|
|
|
import EditGroup from './edit-group'
|
|
|
import MxTransferMixin from '@/components/mx-transfer-mixin.js'
|
|
@@ -62,7 +62,7 @@ export default {
|
|
|
components: {
|
|
|
EditGroup,
|
|
|
SetClasscount,
|
|
|
- ClassAdjust
|
|
|
+ ClassAdjustDialog
|
|
|
},
|
|
|
mixins: [MxClassTreeTranslateMixin, MxSelectTranslateMixin, MxTransferMixin],
|
|
|
props: {
|
|
@@ -78,6 +78,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
modifyGroupSettings: [],
|
|
|
+ classAdjustShow: false,
|
|
|
dataList: [],
|
|
|
propDefines: {
|
|
|
groupName: {
|
|
@@ -99,7 +100,7 @@ export default {
|
|
|
label: '班级名称',
|
|
|
slot: 'className'
|
|
|
},
|
|
|
- expectedCount: {
|
|
|
+ actualCount: {
|
|
|
label: '人数'
|
|
|
},
|
|
|
proportion: {
|
|
@@ -125,7 +126,8 @@ export default {
|
|
|
groupName: this.translateGroup(rg.groupId),
|
|
|
number: this.round.enrollGroupCount[rg.groupId] || 0, // 录取人数
|
|
|
classCount: rg.classCount, // 班级数
|
|
|
- expectedCount: this.settings.filter(item => item.groupId == rg.groupId).map(item => item.expectedCount).toString(),
|
|
|
+ actualCount: this.settings.filter(item => item.groupId == rg.groupId).map(item => item.actualCount).toString(),
|
|
|
+ proportion: this.settings.filter(item => item.groupId == rg.groupId).map(item => `${item.actualCountInMale}/${item.actualCountInFemale}`).toString(),
|
|
|
groupClass: this.settings
|
|
|
.filter(item => item.groupId == rg.groupId)
|
|
|
.map(item => {
|
|
@@ -162,7 +164,10 @@ export default {
|
|
|
this.$message.warning('未分班不可调整')
|
|
|
return
|
|
|
}
|
|
|
- this.$refs.adjustDialog.open(row, this.settings.filter(item => item.groupId == row.groupId))
|
|
|
+ this.$nextTick(_ => {
|
|
|
+ this.$refs.adjustDialog.open(row, this.settings.filter(item => item.groupId == row.groupId))
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
toDetail(row, classId = '') {
|
|
|
const filterSettings = this.settings.filter(item => item.groupId == row.groupId)
|