工作效率
This commit is contained in:
parent
a484709bc3
commit
bb13c16bef
|
|
@ -242,7 +242,15 @@ function initEchartsOne(obj) {
|
|||
trigger: 'axis',
|
||||
formatter: function (params) {
|
||||
var str = params[0].name + ":";
|
||||
str += "<br/>" + "工序:" + obj.gxName;
|
||||
let gxName = '';
|
||||
if (obj.gxName) {
|
||||
if (obj.gxName.length > 80) {
|
||||
gxName = obj.gxName.substring(0, 80) + '...' ;
|
||||
} else {
|
||||
gxName = obj.gxName;
|
||||
}
|
||||
}
|
||||
str += "<br/>" + "工序:" + gxName;
|
||||
params.filter(function (item) {
|
||||
if (item.componentSubType == "bar") {
|
||||
str += "<br/>" + item.seriesName + ":" + item.value;
|
||||
|
|
|
|||
Loading…
Reference in New Issue