parent
a5cda7aa2b
commit
06f3746c8a
|
@ -104,7 +104,7 @@
|
|||
border
|
||||
fit
|
||||
highlight-current-row
|
||||
@select="updateSelect"
|
||||
@selection-change="updateSelect"
|
||||
|
||||
>
|
||||
<el-table-column :reserve-selection="true" type="selection" width="55" align="center"/>
|
||||
|
@ -164,6 +164,7 @@
|
|||
</el-col>
|
||||
<el-col :span="6">
|
||||
<div style="margin-left: 10px">
|
||||
<div>已选择人员数量:{{ ($refs.multipleTable && $refs.multipleTable.selection)?$refs.multipleTable.selection.length:0 }}</div>
|
||||
<div class="el-form-item__label">已选择人员名称:</div>
|
||||
<el-table
|
||||
:data="selectPeopleList"
|
||||
|
@ -270,9 +271,10 @@ export default {
|
|||
this.getDic()
|
||||
},
|
||||
updateSelect(rows, row) {
|
||||
console.log(rows)
|
||||
if (this.visible) {
|
||||
if (this.form.CLASS_SIZE === '' || !this.form.CLASS_SIZE) {
|
||||
this.$message.error('请先选择班级容量')
|
||||
this.$refs.multipleTable.clearSelection()
|
||||
return
|
||||
}
|
||||
if (rows.length > this.form.CLASS_SIZE) {
|
||||
|
@ -280,6 +282,7 @@ export default {
|
|||
return
|
||||
}
|
||||
this.selectPeopleList = rows
|
||||
}
|
||||
},
|
||||
confirm() {
|
||||
const list = this.$refs.multipleTable.selection
|
||||
|
@ -325,6 +328,7 @@ export default {
|
|||
}
|
||||
this.selectPeopleList = []
|
||||
this.util.BELONG_TO_CORP = ''
|
||||
this.$refs.multipleTable.clearSelection()
|
||||
},
|
||||
getDic() {
|
||||
let i = 0
|
||||
|
@ -474,7 +478,9 @@ export default {
|
|||
this.$refs.userPdf.init({ CLASS_MESSAGE_ID: CLASS_MESSAGE_ID })
|
||||
},
|
||||
changePeopleList() {
|
||||
requestFN('/classMessage/getPeopleList?showCount=' + this.form.CLASS_SIZE + '¤tPage=1').then((data) => {
|
||||
requestFN('/classMessage/getPeopleList?showCount=' + this.form.CLASS_SIZE + '¤tPage=1',
|
||||
{ BELONG_TO_CORP: this.util.BELONG_TO_CORP }
|
||||
).then((data) => {
|
||||
this.peopleList = data.varList
|
||||
for (let i = 0; i < this.peopleList.length; i++) {
|
||||
this.peopleList[i].STATUS = ''
|
||||
|
|
Loading…
Reference in New Issue