yangfeng
2023-12-07 1dbdda3517a01851d8d9894b22e61aa4462b541c
tooltip值优化
4个文件已修改
17 ■■■■ 已修改文件
src/views/cockpitPage/components/BarChart.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/cockpitPage/components/DeviceChart.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/cockpitPage/components/MaterialChart.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/cockpitPage/components/PerSonnelProductivity.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/cockpitPage/components/BarChart.vue
@@ -4,7 +4,7 @@
    <div class="bar-contents">
      <div class="bar-total">
        <div class="bar-item">当日合计生产:{{ chartData.total }}</div>
        <div class="bar-item">正品率:{{ chartData.rate }}</div>
        <div class="bar-item">正品率:{{ chartData.rate }}%</div>
      </div>
      <div class="chart" ref="chart"></div>
    </div>
@@ -116,7 +116,8 @@
                '<span style=width:70px;display:inline-block">' +
                "正品率" +
                "</span>&nbsp;" +
                data.rate;
                data.rate +
                "%";
              list.push(lastString);
              listItem = list.join("<br>");
              return '<div class="showBox">' + listItem + "</div>";
src/views/cockpitPage/components/DeviceChart.vue
@@ -65,6 +65,9 @@
            axisPointer: {
              type: "none",
            },
            valueFormatter: function (value) {
              return value + "%";
            },
          },
          grid: {
            right: "80px",
src/views/cockpitPage/components/MaterialChart.vue
@@ -63,6 +63,9 @@
            axisPointer: {
              type: "none",
            },
            valueFormatter: function (value) {
              return "物料不足的数量:" + value;
            },
          },
          grid: {
            right: "80px",
src/views/cockpitPage/components/PerSonnelProductivity.vue
@@ -70,6 +70,9 @@
            axisPointer: {
              type: "none",
            },
            valueFormatter: function (value) {
              return value + "%";
            },
          },
          grid: {
            right: "80px",
@@ -253,6 +256,9 @@
          color: ["#dcb018", "#735b09", "#ebd68e", "#c7b36e"],
          tooltip: {
            trigger: "item",
            valueFormatter: function (value) {
              return value + "%";
            },
          },
          graphic: {
            elements: [