浏览代码

标段进度点击

ellisran 1 月之前
父节点
当前提交
3a8dce1e1f
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      app/view/dashboard/workspace.ejs

+ 14 - 0
app/view/dashboard/workspace.ejs

@@ -630,6 +630,20 @@
             },
             formatter: function (p) {
                 _param = p
+                let html = `<div style="line-height:20px;">`;  // 行距控制
+                html += `<div style="font-weight:bold;margin-bottom:4px;">${p[0].axisValue}</div>`;
+
+                p.forEach(item => {
+                    html += `
+              <div style="display:flex; justify-content:space-between; align-items:center;">
+                <span>${item.marker}${item.seriesName}</span>
+                <span style="margin-left:12px; text-align:right; min-width:80px;">${item.value}</span>
+              </div>
+            `;
+                });
+
+                html += `</div>`;
+                return html;
             }
         },
         legend: {},