正常的图
在点击第一排的验证利润比例框后,本来应该有两位小数的数据直接变成整数了
代码片段如下:
{ title: '验证利润比', field: 'AddShLrbl', width: 80,
editor: {
type: 'numberbox',
options: { precision: 2, min: 0, max: 100 }
},
formatter: function (value, row, index) {
if (row.ShLrbl == "")
return "-";
else {
ShState = row.State;
return row.AddShLrbl;
}
}
},
为什么会这样呢?
已经解决了,是我自己后台绑定数据时,转换问题,前台没毛病