diff --git a/src/views/classMessage/classMessage/components/initClass.vue b/src/views/classMessage/classMessage/components/initClass.vue index 29604ad..5039c3f 100644 --- a/src/views/classMessage/classMessage/components/initClass.vue +++ b/src/views/classMessage/classMessage/components/initClass.vue @@ -76,6 +76,7 @@ +
{{ '温馨提示:1、输入名称、电话、身份证号按回车或让输入框失去焦点即可搜索。2、双击人员列可直接添加' }}
搜索条件
@@ -143,7 +144,6 @@ highlight-current-row @row-dblclick="clickAddSelect" @selection-change="updateSelect" - > @@ -221,8 +221,7 @@ :data="selectPeopleList" border height="642px" - style="width: 100%;margin-left: 10px" - @row-dblclick="clickAddSelect"> + style="width: 100%;margin-left: 10px"> @@ -321,7 +320,8 @@ export default { }, peopleList: [], selectPeopleList: [], - fullscreenFlag: false + fullscreenFlag: false, + lock: false } }, created() { @@ -354,7 +354,9 @@ export default { for (let i = 0; i < this.selectPeopleList.length; i++) { this.selectPeopleList[i].isSelect = true } - this.getPeopleList() + if (!this.lock) { + this.getPeopleList() + } } }, confirm() { @@ -522,25 +524,23 @@ export default { addSelect(row) { this.selectPeopleList.push(row) this.$refs.multipleTable.toggleRowSelection(row) - this.getPeopleList() }, clickAddSelect(row, column, event) { if (!row.isSelect) { this.addSelect(row) } }, - clickDeleteSelect(row, column, event) { - if (!row.isSelect) { - this.deleteSelect(row) - } - }, deleteSelect(row) { this.selectPeopleList = this.selectPeopleList.filter(ver => ver.USER_ID !== row.USER_ID) + this.form.peopleList = this.form.peopleList.filter(ver => ver.USER_ID !== row.USER_ID) + // 重新选择 this.$refs.multipleTable.clearSelection() + this.lock = true this.form.peopleList.forEach(row => { this.$refs.multipleTable.toggleRowSelection(row) }) this.getPeopleList() + this.lock = false }, viewUserInfo(row) { this.$refs.userInfos.init({ XGF_USER_ID: row.USER_ID })