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({