From a7eba8b92e210774144098d9377be60b5cc15398 Mon Sep 17 00:00:00 2001 From: liujun Date: Tue, 11 Jun 2024 09:32:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../classMessage/components/initClass.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 })