diff --git a/src/views/classMessage/classMessage/components/initClass.vue b/src/views/classMessage/classMessage/components/initClass.vue index 0174b31..d58ac9f 100644 --- a/src/views/classMessage/classMessage/components/initClass.vue +++ b/src/views/classMessage/classMessage/components/initClass.vue @@ -104,7 +104,7 @@ border fit highlight-current-row - @select="updateSelect" + @selection-change="updateSelect" > @@ -164,6 +164,7 @@
+
已选择人员数量:{{ ($refs.multipleTable && $refs.multipleTable.selection)?$refs.multipleTable.selection.length:0 }}
已选择人员名称:
this.form.CLASS_SIZE) { + this.$message.error('已超出班级容量') + return + } + this.selectPeopleList = rows } - if (rows.length > this.form.CLASS_SIZE) { - this.$message.error('已超出班级容量') - 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 = ''