5fb09e6fe9f7984c89033b215098f00c1ed4c29f.svn-base 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. var fd_id = (window.location.href).split('?')[1];
  2. var fd_id1 = (window.location.href).split('?')[2];
  3. var g;
  4. /**定义变量**/
  5. var condition="";
  6. if(fd_id=="0"){
  7. condition = "FD_OBJECTID = '"+fd_id1+"' ";
  8. }else{
  9. condition = "(COLUMN_1='0' AND FD_OBJECTID='"+ fd_id+"') OR (COLUMN_1='"+ fd_id+"') ";
  10. }
  11. var loadParams = {
  12. "listId" : '261',
  13. "condition" : condition
  14. };
  15. function initComplete(){
  16. g = $("#maingrid").quiGrid({
  17. columns: [
  18. //为了解决自定义表格,头上显示的主键ID,先暂时注掉2015-10-10
  19. { display: '队伍名称', name: 'TEAM_NAME_261', align: 'center', width: "10%"},
  20. { display: '所属单位', name: 'TEAM_COMP_ID_261_SHOW', align: 'center', width: "10%"},
  21. { display: '队伍类型', name: 'TEAM_TYPE_261_SHOW', align: 'center', width: "5%"},
  22. { display: '状态', name: 'TEAM_STAT_261_SHOW', align: 'center', width: "5%"},
  23. { display: '所在地区', name: 'TEAM_AEAR_261', align: 'center', width: "10%"},
  24. { display: '负责人', name: 'TEAM_LEADER_261', align: 'center', width: "5%"},
  25. { display: '值班电话', name: 'TEAM_TEL_261', align: 'center', width: "10%"},
  26. { display: '手机', name: 'TEAM_PHONE_261', align: 'center', width: "10%"},
  27. { display: '办公电话', name: 'TEAM_OFFICE_TEL_261', align: 'center', width: "10%"},
  28. { display: '人数', name: 'TEAM_MEMBER_NUMBER_261', align: 'center', width: "5%"},
  29. { display: '电压等级', name: 'TEAM_LEVEL_261_SHOW', align: 'center', width: "5%"},
  30. // { display: '专长描述', name: 'TEAM_SPECIALITY_261', align: 'center', width: "5%"},
  31. { display: '维护时间', name: 'UPDATEDATE_261', align: 'center', width: "15%"}
  32. ],
  33. url :$.pathname() + '/ws/crud/CRUDService/queryQui',
  34. params : loadParams,
  35. sortName : 'UPDATEDATE_261',
  36. sortOrder : 'desc nulls last',
  37. rownumbers:true,
  38. // checkbox:true,
  39. height: '100%',
  40. width:"100%",
  41. pageSize: 10,
  42. percentWidthMode:true,
  43. });
  44. }