parent
5e7f29b79b
commit
ca78a54090
|
@ -673,7 +673,7 @@ const gettree4 = (data: any) => {
|
||||||
name: localStorage.getItem('loginname'),
|
name: localStorage.getItem('loginname'),
|
||||||
industry: data,
|
industry: data,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res: JsonResult<any>) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
api
|
api
|
||||||
.post('/multialarm/client/alarm_point/getlist', {
|
.post('/multialarm/client/alarm_point/getlist', {
|
||||||
|
@ -686,7 +686,8 @@ const gettree4 = (data: any) => {
|
||||||
})
|
})
|
||||||
let data = [res.data]
|
let data = [res.data]
|
||||||
data.forEach((tree) => {
|
data.forEach((tree) => {
|
||||||
console.log(tree)
|
console.log('tree______', tree)
|
||||||
|
tree.children.reverse() // 长沙市排在前
|
||||||
printLeafs(tree, res1.data)
|
printLeafs(tree, res1.data)
|
||||||
})
|
})
|
||||||
treedataall.value = [...data]
|
treedataall.value = [...data]
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue