|
|
@ -384,12 +384,13 @@ export default { |
|
|
|
showRange() { |
|
|
|
showRange() { |
|
|
|
this.rangeVisible = true |
|
|
|
this.rangeVisible = true |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// 范围勾选回调 |
|
|
|
rangeChange(val, e) { |
|
|
|
rangeChange(val, e) { |
|
|
|
const checked = this.$refs.range.getCheckedNodes() |
|
|
|
const checked = this.$refs.range.getCheckedNodes() |
|
|
|
const name = [] |
|
|
|
const name = [] |
|
|
|
const { rangeChecked } = this |
|
|
|
const { rangeChecked } = this |
|
|
|
checked.map(e => { |
|
|
|
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) |
|
|
|
this.rangeChecked.push(...name) |
|
|
|
}, |
|
|
|
}, |
|
|
@ -436,7 +437,6 @@ export default { |
|
|
|
rangeSubmit() { |
|
|
|
rangeSubmit() { |
|
|
|
// 处理提交需要的id |
|
|
|
// 处理提交需要的id |
|
|
|
const data = [] |
|
|
|
const data = [] |
|
|
|
const isSearch = this.rangeList.length // 如果是搜索,则只存schoolId |
|
|
|
|
|
|
|
const checked = this.rangeChecked |
|
|
|
const checked = this.rangeChecked |
|
|
|
checked.map(e => { |
|
|
|
checked.map(e => { |
|
|
|
data.push({ |
|
|
|
data.push({ |
|
|
|