windy 7 years ago
parent
commit
c2d0fba086
  1. 11
      dist/bundle.js
  2. 11
      dist/fineui.js

11
dist/bundle.js vendored

@ -25698,6 +25698,7 @@ BI.ShowAction = BI.inherit(BI.Action, {
text = +text;
return eFormat(text, fmt);
/**
* 科学计数格式具体计算过程
* @param num
@ -25717,7 +25718,7 @@ BI.ShowAction = BI.inherit(BI.Action, {
var magnitude = Math[funcName](Math.log(num) / Math.log(10));
if (!isFinite(magnitude)) {
return format.replace(/#/ig, "").replace(/\.e/ig, 'E');
return format.replace(/#/ig, "").replace(/\.e/ig, "E");
}
num = num / Math.pow(10, magnitude);
@ -25742,7 +25743,7 @@ BI.ShowAction = BI.inherit(BI.Action, {
num *= Math.pow(10, precision);
num = Math.round(num);
// 如果出现进位的情况,将num除以10
isValueCarry && (num /= 10, magnitude += magnitudeNeg === '-' ? -1 : 1);
isValueCarry && (num /= 10, magnitude += magnitudeNeg === "-" ? -1 : 1);
num /= Math.pow(10, precision);
// 小数部分保留precision位
@ -26269,11 +26270,11 @@ BI.ShowAction = BI.inherit(BI.Action, {
// 毫秒数类型
cv = new Date(cv);
} else {
// 字符串类型,如yyyyMMdd、MMddyyyy等这样无分隔符的结构
cv = BI.parseDateTime(cv + "", "Y-m-d H:i:s");
//字符串类型转化为date类型
cv = new Date(Date.parse(("" + cv).replace(/-|\./g, "/")));
}
}
if (!BI.isNull(cv)) {
if (!isInvalidDate(cv) && !BI.isNull(cv)) {
var needTrim = fmt.match(/^DT/);
text = BI.date2Str(cv, fmt.substring(needTrim ? 2 : 1));
}

11
dist/fineui.js vendored

@ -25947,6 +25947,7 @@ BI.ShowAction = BI.inherit(BI.Action, {
text = +text;
return eFormat(text, fmt);
/**
* 科学计数格式具体计算过程
* @param num
@ -25966,7 +25967,7 @@ BI.ShowAction = BI.inherit(BI.Action, {
var magnitude = Math[funcName](Math.log(num) / Math.log(10));
if (!isFinite(magnitude)) {
return format.replace(/#/ig, "").replace(/\.e/ig, 'E');
return format.replace(/#/ig, "").replace(/\.e/ig, "E");
}
num = num / Math.pow(10, magnitude);
@ -25991,7 +25992,7 @@ BI.ShowAction = BI.inherit(BI.Action, {
num *= Math.pow(10, precision);
num = Math.round(num);
// 如果出现进位的情况,将num除以10
isValueCarry && (num /= 10, magnitude += magnitudeNeg === '-' ? -1 : 1);
isValueCarry && (num /= 10, magnitude += magnitudeNeg === "-" ? -1 : 1);
num /= Math.pow(10, precision);
// 小数部分保留precision位
@ -26518,11 +26519,11 @@ BI.ShowAction = BI.inherit(BI.Action, {
// 毫秒数类型
cv = new Date(cv);
} else {
// 字符串类型,如yyyyMMdd、MMddyyyy等这样无分隔符的结构
cv = BI.parseDateTime(cv + "", "Y-m-d H:i:s");
//字符串类型转化为date类型
cv = new Date(Date.parse(("" + cv).replace(/-|\./g, "/")));
}
}
if (!BI.isNull(cv)) {
if (!isInvalidDate(cv) && !BI.isNull(cv)) {
var needTrim = fmt.match(/^DT/);
text = BI.date2Str(cv, fmt.substring(needTrim ? 2 : 1));
}

Loading…
Cancel
Save