matchHouseList.jsp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
  2. <script type="text/javascript">
  3. var list_load = function(id){
  4. $("#matchHouseListDataGrid").datagrid({
  5. rownumbers:true,
  6. border:false,
  7. sortOrder:'desc',
  8. url:whzl.basePath + '/exchangeHouseIntentAction_matchHouseList?exchangeHouseIntent.id='+id,
  9. checkOnSelect:true,
  10. selectOnCheck:false,
  11. loadFilter:function(result){
  12. if(result.success){
  13. return result.obj;
  14. }else{
  15. $.messager.alert("提示",result.message);
  16. return ;
  17. }
  18. }
  19. });
  20. }
  21. /**居住地点*/
  22. var addressFormatter = function(value , row , index){
  23. return row.house.address ;
  24. };
  25. /**人员名称*/
  26. var nameFormatter = function(value , row , index){
  27. return row.securityPerson.name ;
  28. };
  29. </script>
  30. <div class="easyui-layout" data-options="fit:true,border:false">
  31. <table id="matchHouseListDataGrid" title="房源匹配情况">
  32. <thead>
  33. <tr>
  34. <th data-options="field:'id',checkbox:true,width:30">ID</th>
  35. <th data-options="field:'name',align:'center',width:90, formatter:nameFormatter">房源登记人</th>
  36. <th data-options="field:'address',align:'center',width:200, formatter:addressFormatter">登记人房源</th>
  37. <th data-options="field:'communitieNames',align:'center',width:200">意向房源</th>
  38. <!--<th data-options="field:'detail',width:60,align:'center'">查看详情</th>
  39. --></tr>
  40. </thead>
  41. </table>
  42. </div>