|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | getWorkBody () { | 
|---|
|  |  |  | getWorkbenchData({ queryType: 2 }).then(res => { | 
|---|
|  |  |  | console.log(res) | 
|---|
|  |  |  | this.staticData = res || {} | 
|---|
|  |  |  | this.initEchart2() | 
|---|
|  |  |  | this.initEchart21() | 
|---|
|  |  |  | 
|---|
|  |  |  | if (!document.getElementById('echart2')) { | 
|---|
|  |  |  | return | 
|---|
|  |  |  | } | 
|---|
|  |  |  | echarts.dispose(document.getElementById('echart2')) | 
|---|
|  |  |  | const myChart = echarts.init(document.getElementById('echart2')) | 
|---|
|  |  |  | const that = this | 
|---|
|  |  |  | var ydata = that.staticData.internalList.map(i => i.num) | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | initEchart21 () { | 
|---|
|  |  |  | console.log('initEchart21') | 
|---|
|  |  |  | console.log('initEchart21',this.staticData.lwList) | 
|---|
|  |  |  | if (!document.getElementById('echart21')) { | 
|---|
|  |  |  | return | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | echarts.dispose(document.getElementById('echart21')) | 
|---|
|  |  |  | const myChart = echarts.init(document.getElementById('echart21')) | 
|---|
|  |  |  | const that = this | 
|---|
|  |  |  | var le1 = that.staticData.internalList.length | 
|---|