自己的项目遇到的 总结下:假的数据可以实现 具体进度还是要根据项目需求进行计算。
table列表:
<th dataoptions="field:'progress',width:120,halign:'center',formatter:showProcessBar "></th>
js实现:
function showProcessBar(value,row,index){
var htmlsrt=' <div class="progressbar-text" style="width:98px;">' +value+ '<div><div class="progress-value" style="width:'+value+';"> </div>'
return htmlstr;
}