稍微摸索了一下,在列表中显示进度条。如下图所示:
![](https://i-blog.csdnimg.cn/blog_migrate/e9eb7b20aef460baa0125fdaf87a962d.png)
闲话少说,直接上代码:
<t:datagrid name="taskMgrList" checkbox="false" fitColumns="false"
title="进度" treegrid="true" actionUrl="tController.dotaskGrid" idField="id" fit="true" queryMode="group" onDblClick="editRecord" pagination="true" pageSize="10">
<t:dgCol title="进度" field="taskProgress" treefield="fieldMap.taskProgress" formatterjs="progressFormatter" queryMode="single" width="120"></t:dgCol>
</t:datagrid>
主要是使用了formatterjs这个属性,