From a92e5c04f747e17ba1803ccb219efb635c583f24 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 13 Jul 2022 16:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/match/add/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/match/add/index.vue b/src/pages/match/add/index.vue index 02bf050..8b5d0c7 100644 --- a/src/pages/match/add/index.vue +++ b/src/pages/match/add/index.vue @@ -383,12 +383,13 @@ export default { showRange() { this.rangeVisible = true }, + // 范围勾选回调 rangeChange(val, e) { const checked = this.$refs.range.getCheckedNodes() const name = [] const { rangeChecked } = this checked.map(e => { - rangeChecked.find(n => n.value === e.value) || name.push(e.data) + rangeChecked.find(n => n.value === e.value) || name.push(e.data) // 未勾选的,则push }) this.rangeChecked.push(...name) }, @@ -435,7 +436,6 @@ export default { rangeSubmit() { // 处理提交需要的id const data = [] - const isSearch = this.rangeList.length // 如果是搜索,则只存schoolId const checked = this.rangeChecked checked.map(e => { data.push({