diff --git a/src/views/match/add/index.vue b/src/views/match/add/index.vue index 41cb45f..fb37d37 100644 --- a/src/views/match/add/index.vue +++ b/src/views/match/add/index.vue @@ -384,12 +384,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) }, @@ -436,7 +437,6 @@ export default { rangeSubmit() { // 处理提交需要的id const data = [] - const isSearch = this.rangeList.length // 如果是搜索,则只存schoolId const checked = this.rangeChecked checked.map(e => { data.push({