- 注册时间
- 2013-9-28
- 最后登录
- 2015-9-11
- 阅读权限
- 10
- 积分
- 60
- 精华
- 0
- 帖子
- 14
|
<div class="mini-fit">
<div id="datagrid1" class="mini-datagrid" style="width:100%;height:100%;"
url="${ctx}/policy/list.do" idField="id" showSummaryRow="true"
totalField="rows" dataField="list" allowAlternating="true"
sizeList="[5,10,20,50]" pageSize="10" onrowdblclick="check" sortMode="client">
<div property="columns">
<div type="checkcolumn"></div>
<div field="distCode" width="120" renderer="onAreaCodeRenderer" headerAlign="center" allowSort="true">所属辖区</div>
<div field="isLine" align="center" renderer="onLineRenderer" width="100" headerAlign="center" allowSort="true">是否有封顶线</div>
<div field="isValid" align="center" renderer="onValidRenderer" width="100" headerAlign="center" allowSort="true">是否有效</div>
<div field="operator" width="40" headerAlign="center" allowSort="true">添加人</div>
<div field="operator" width="100" headerAlign="center" allowSort="true">更新人</div>
<div field="updateTime" align="center" dateFormat="yyyy-MM-dd HH:mm:ss" width="100" headerAlign="center" allowSort="true">更新时间</div>
</div>
</div>
</div>
function onAreaCodeRenderer(e){ var value = e.value; var ret = value; $.ajax({ url:"${ctx}/area/getAreaByCode.do", data:{areaCode:value}, async:false,//异步同步都渲染不了 success:function(data){ //ret = data.distName; return data.distName; } }); }
异步同步都渲染不了 不知道是怎么回事,请大家帮忙看看
|
|