修改问题
This commit is contained in:
parent
378fdecb89
commit
8e35679b2c
@ -462,15 +462,26 @@ const changeIsDrag = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleChooseRoute = (val, i) => {
|
const handleChooseRoute = (val, i) => {
|
||||||
console.log('============================', val)
|
// console.log('============================', val)
|
||||||
if (lineList.value.length) {
|
if (lineList.value.length) {
|
||||||
lineList.value.forEach((item, index) => {
|
if(val.isSelect){
|
||||||
|
lineList.value.forEach((item, index) => {
|
||||||
|
if (index == i) {
|
||||||
|
item.isSelect = false
|
||||||
|
} else {
|
||||||
|
item.isSelect = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
lineList.value.forEach((item, index) => {
|
||||||
if (index == i) {
|
if (index == i) {
|
||||||
item.isSelect = true
|
item.isSelect = true
|
||||||
} else {
|
} else {
|
||||||
item.isSelect = false
|
item.isSelect = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user