Commit 6b72ca17 authored by co_dengxiongwen's avatar co_dengxiongwen

tj

parent d051e13e
...@@ -195,8 +195,9 @@ export default { ...@@ -195,8 +195,9 @@ export default {
name: '', name: '',
list: [] list: []
} }
let list = []
e.list.forEach((el) => { e.list.forEach((el) => {
let list = []
let newThresholdList = this.thresholdList.filter( let newThresholdList = this.thresholdList.filter(
(res) => res.dicId === e.id (res) => res.dicId === e.id
) )
...@@ -216,11 +217,12 @@ export default { ...@@ -216,11 +217,12 @@ export default {
element.unit element.unit
}) })
}) })
el.children = list
console.log('list:', list) console.log('list:', list)
}) })
item.id = e.id item.id = e.id
item.name = e.name item.name = e.name
item.list = list item.list = e.list
this.dataList.push(item) this.dataList.push(item)
}) })
console.log('dataList:', this.dataList) console.log('dataList:', this.dataList)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment