|
@@ -2,7 +2,7 @@
|
|
<el-row>
|
|
<el-row>
|
|
<mx-table :propDefines="propDefines" :rows="displayRows">
|
|
<mx-table :propDefines="propDefines" :rows="displayRows">
|
|
<template #classCount="{row,$index}">
|
|
<template #classCount="{row,$index}">
|
|
- <el-input-number size="small" v-model="row.classCount" @change="classCountChange(row,$index)" :min="0"
|
|
|
|
|
|
+ <el-input-number size="mini" v-model="row.classCount" @change="classCountChange(row,$index)" :min="0"
|
|
:disabled="row.classCount != 0" label="label"
|
|
:disabled="row.classCount != 0" label="label"
|
|
></el-input-number>
|
|
></el-input-number>
|
|
</template>
|
|
</template>
|
|
@@ -35,8 +35,6 @@
|
|
@click="adjust(row)"
|
|
@click="adjust(row)"
|
|
>调整
|
|
>调整
|
|
</el-button>
|
|
</el-button>
|
|
- </template>
|
|
|
|
- <template #detail="{row}">
|
|
|
|
<el-button
|
|
<el-button
|
|
type="success"
|
|
type="success"
|
|
plain
|
|
plain
|
|
@@ -93,7 +91,8 @@ export default {
|
|
},
|
|
},
|
|
classCount: {
|
|
classCount: {
|
|
label: '班级数',
|
|
label: '班级数',
|
|
- slot: 'classCount'
|
|
|
|
|
|
+ slot: 'classCount',
|
|
|
|
+ width: 150
|
|
},
|
|
},
|
|
edit: {
|
|
edit: {
|
|
label: '分班编辑',
|
|
label: '分班编辑',
|
|
@@ -106,17 +105,14 @@ export default {
|
|
expectedCount: {
|
|
expectedCount: {
|
|
label: '人数'
|
|
label: '人数'
|
|
},
|
|
},
|
|
|
|
+ proportion: {
|
|
|
|
+ label: '男女比例',
|
|
|
|
+ },
|
|
adjust: {
|
|
adjust: {
|
|
label: '操作',
|
|
label: '操作',
|
|
|
|
+ width: 200,
|
|
slot: 'adjust'
|
|
slot: 'adjust'
|
|
},
|
|
},
|
|
- proportion: {
|
|
|
|
- label: '男女比例',
|
|
|
|
- },
|
|
|
|
- detail: {
|
|
|
|
- label: '详情',
|
|
|
|
- slot: 'detail'
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -146,9 +142,7 @@ export default {
|
|
return rows
|
|
return rows
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
|
|
+ inject: ['parentQuery'],
|
|
methods: {
|
|
methods: {
|
|
openEditDialog(row) {
|
|
openEditDialog(row) {
|
|
if (!row.classCount) {
|
|
if (!row.classCount) {
|
|
@@ -168,10 +162,16 @@ export default {
|
|
this.$refs.adjustDialog.open(row,this.settings.filter(item => item.groupId == row.groupId))
|
|
this.$refs.adjustDialog.open(row,this.settings.filter(item => item.groupId == row.groupId))
|
|
},
|
|
},
|
|
toDetail(row,classId ='') {
|
|
toDetail(row,classId ='') {
|
|
|
|
+ const filterSettings = this.settings.filter(item => item.groupId == row.groupId)
|
|
|
|
+ if(filterSettings.length == 0){
|
|
|
|
+ this.$message.warning('该组合还未设定班级')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
console.log(classId)
|
|
console.log(classId)
|
|
- const params = {group: row,classId:classId,groupIds: (this.round.groupIds &&this.round.groupIds.split(','))||[]}
|
|
|
|
|
|
+ const params = {group: row,classId:classId,groupIds: (this.round.groupIds &&this.round.groupIds.split(','))||[],
|
|
|
|
+ parentQuery: this.parentQuery
|
|
|
|
+ }
|
|
const path = '/elective/dispatch/detail'
|
|
const path = '/elective/dispatch/detail'
|
|
- console.log('prev transfer', row, this.round)
|
|
|
|
this.transferTo(path, params)
|
|
this.transferTo(path, params)
|
|
},
|
|
},
|
|
editCount(row) {
|
|
editCount(row) {
|