Ver código fonte

李博更改合计列部分小数保留小数不正确

新疆警官学校中职
ndbs 1 ano atrás
pai
commit
12cd43619b
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/grid/jfgrid.js

+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/grid/jfgrid.js Ver arquivo

@@ -154,7 +154,7 @@
op.running.statisticData[item.name] = op.running.statisticData[item.name] || 0;
op.running.statisticData[item.name] += (parseFloat(text || 0) - rowItem.statisticsNum);
rowItem.statisticsNum = parseFloat(text || 0);
$('#jfgrid_statistic_' + op.id + ' [name="' + item.name + '"]').text(op.running.statisticData[item.name]);
$('#jfgrid_statistic_' + op.id + ' [name="' + item.name + '"]').text(op.running.statisticData[item.name].toFixed(2));
}

$expend = null;
@@ -174,7 +174,7 @@
op.running.statisticData[item.name] = op.running.statisticData[item.name] || 0;
op.running.statisticData[item.name] += (parseFloat(text || 0) - rowItem.statisticsNum);
rowItem.statisticsNum = parseFloat(text || 0);
$('#jfgrid_statistic_' + op.id + ' [name="' + item.name + '"]').text(op.running.statisticData[item.name]);
$('#jfgrid_statistic_' + op.id + ' [name="' + item.name + '"]').text(op.running.statisticData[item.name].toFixed(2));
}

}, value, row, op, rowItem.$cell);
@@ -449,7 +449,7 @@
op.running.statisticData[item.name] += (parseFloat(rowItem.text || 0) - rowItem.statisticsNum);
rowItem.statisticsNum = parseFloat(rowItem.text || 0);

$('#jfgrid_statistic_' + op.id + ' [name="' + item.name + '"]').text(op.running.statisticData[item.name]);
$('#jfgrid_statistic_' + op.id + ' [name="' + item.name + '"]').text(op.running.statisticData[item.name].toFixed(2));
}

$expend = null;


Carregando…
Cancelar
Salvar