|
@@ -34,6 +34,7 @@
|
|
|
plain
|
|
|
icon="el-icon-edit"
|
|
|
size="mini"
|
|
|
+ @click="toDetail(row)"
|
|
|
>详情
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -47,7 +48,8 @@ import MxClassTreeTranslateMixin from '@/components/Cache/modules/mx-classTree-t
|
|
|
import MxSelectTranslateMixin from '@/components/Cache/modules/mx-select-translate-mixin.js'
|
|
|
import ClassAdjust from './class-adjust'
|
|
|
import SetClasscount from './set-classcount'
|
|
|
-import EditGroup from './editGroup'
|
|
|
+import EditGroup from './edit-group'
|
|
|
+import MxTransferMixin from '@/components/mx-transfer-mixin.js'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -55,7 +57,7 @@ export default {
|
|
|
SetClasscount,
|
|
|
ClassAdjust,
|
|
|
},
|
|
|
- mixins: [MxClassTreeTranslateMixin, MxSelectTranslateMixin],
|
|
|
+ mixins: [MxClassTreeTranslateMixin, MxSelectTranslateMixin,MxTransferMixin],
|
|
|
props: {
|
|
|
loading: {
|
|
|
type: Boolean,
|
|
@@ -73,7 +75,6 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
modifyGroupSettings: [],
|
|
|
- settingList: [],
|
|
|
dataList: [],
|
|
|
propDefines: {
|
|
|
groupName: {
|
|
@@ -117,11 +118,10 @@ export default {
|
|
|
// if (!this.settings.length) return []
|
|
|
if (!this.round.groupList) return []
|
|
|
const rows = this.round.roundGroups.map(rg => ({
|
|
|
-
|
|
|
groupId: rg.groupId,
|
|
|
roundId: this.round.roundId,
|
|
|
groupName: this.translateGroup(rg.groupId),
|
|
|
- number: this.round.enrollGroupCount[rg.groupId] || 200, // 录取人数
|
|
|
+ number: this.round.enrollGroupCount[rg.groupId] || 0, // 录取人数
|
|
|
classCount: rg.classCount, // 班级数
|
|
|
expectedCount: this.settings.filter(item => item.groupId == rg.groupId).map(item => item.expectedCount).toString(),
|
|
|
groupClass: this.settings
|
|
@@ -153,6 +153,12 @@ export default {
|
|
|
}
|
|
|
this.$refs.adjustDialog.open(row,this.settings.filter(item => item.groupId == row.groupId))
|
|
|
},
|
|
|
+ toDetail(row) {
|
|
|
+ const params = {groupId: row.groupId,groupIds: (this.round.groupIds &&this.round.groupIds.split(','))||[]}
|
|
|
+ const path = '/elective/dispatch/detail'
|
|
|
+ console.log('prev transfer', row, this.round)
|
|
|
+ this.transferTo(path, params)
|
|
|
+ },
|
|
|
editCount(row) {
|
|
|
// 设定分配人数
|
|
|
const filter = this.settings.filter(item => item.groupId == row.groupId)
|