class

      class Point {
           constructor(item) {
              this.value = item.value;
              this.name = item.name;
              this.icon = 'circle';
              this.percent = item.percent;
              this.itemStyle = {
                normal: {
                  color: item.itemStyle.normal.color
                }
              };
              this.selected = item.selected
            }
          }
          let mm = []
          tt.forEach((item) => {
            mm.push(new Point({
              value: item.itemCount,
              name: item.diagnoseName,
              percent: item.percent,
              selected: item.isTrue,
              icon : 'circle',
              itemStyle: {
                normal: {
                  color: item.color
                }
              },
            }))
          })

 

posted @ 2018-06-01 18:00  happynood  阅读(149)  评论(0编辑  收藏  举报