+
已选择人员数量:{{ ($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
@@ -326,6 +328,7 @@ export default {
}
this.selectPeopleList = []
this.util.BELONG_TO_CORP = ''
+ this.$refs.multipleTable.clearSelection()
},
getDic() {
let i = 0
@@ -370,7 +373,13 @@ export default {
return row.USER_ID
},
getPeopleList() {
- requestFN('/classMessage/getPeopleList', { BELONG_TO_CORP: this.util.BELONG_TO_CORP }).then((data) => {
+ let pageSize = 10
+ if (!this.form.CLASS_SIZE || this.form.CLASS_SIZE === 0) {
+ pageSize = 10
+ } else {
+ pageSize = this.form.CLASS_SIZE
+ }
+ requestFN('/classMessage/getPeopleList?showCount=' + pageSize + '¤tPage=1', { BELONG_TO_CORP: this.util.BELONG_TO_CORP }).then((data) => {
this.peopleList = data.varList
this.loading = false
}).catch((e) => {
@@ -469,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 = ''
diff --git a/src/views/classMessage/classMessage/components/list.vue b/src/views/classMessage/classMessage/components/list.vue
index 8631632..2ef7dfd 100644
--- a/src/views/classMessage/classMessage/components/list.vue
+++ b/src/views/classMessage/classMessage/components/list.vue
@@ -60,10 +60,10 @@
width="55"
align="center"/>
-
-
+
+
-
+
@@ -71,11 +71,12 @@
{{ row.CLASS_STATUS === '0'?'待开班':(row.CLASS_STATUS === '1'?'已开班':'完成') }}
-
+
查看
+ 删除
信息反馈
- 删除
+ 修改班级名称
@@ -89,6 +90,7 @@
+