yangfeng
2023-12-05 8b8c05d36567e18230604d48558df6daff9bccc8
人员技能饼图优化
1个文件已修改
17 ■■■■ 已修改文件
src/views/cockpitPage/components/PerSonnelProductivity.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/cockpitPage/components/PerSonnelProductivity.vue
@@ -17,6 +17,7 @@
//引入echart
import * as echarts from "echarts";
let myChart;
let myRightChart;
export default {
  components: {
    ChartTitle,
@@ -108,7 +109,7 @@
                // rotate:45,
                margin: 10,
                show: true,
                fontSize:12,
                fontSize: 12,
                textStyle: {
                  color: function (params, index) {
                    let colorList = ["#dcb018", "#00FFFF"];
@@ -215,7 +216,15 @@
    },
    getChartRight(chartName, data) {
      let chartDom = this.$refs[chartName];
      let myChart = echarts.init(chartDom);
      // let myRightChart = echarts.init(chartDom);
      if (
        myRightChart != null &&
        myRightChart != "" &&
        myRightChart != undefined
      ) {
        myRightChart.dispose(); //销毁
      }
      myRightChart = echarts.init(chartDom);
      let img = "/cockpitPage/dotted-circle.png";
      let option;
      if (data) {
@@ -295,10 +304,10 @@
          ],
        };
        option && myChart.setOption(option);
        option && myRightChart.setOption(option);
      } else {
        option = {};
        myChart.setOption(option, true);
        myRightChart.setOption(option, true);
      }
    },
  },