123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- var grid = null;
- var paramsEw = { "listId" :'365', "condition" : " 1=1 and IS_DEL='0' and is_alert = '0' and is_send = '3' " } ;
- function initComplete(){
- grid = $("#ewgrid").quiGrid({
- columns:[
- {name: 'FD_OBJECTID365', hide : true},
- { display: "名称", name: "EARLY_WARNING_NAME_365", align:"center", width:"30%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + value + "</span>" ;
- }
- },
- { display: "时间", name: "RELEASE_RELIEVE_DATE_365", align:"center", width:"40%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + value + "</span>" ;
- }
- },
- { display: "级别", name: "CURRENT_EW_LEVEL_365_SHOW", align:"center", width:"10%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + value + "</span>" ;
- }
- },
- { display: "概要", name: "EW_SUMMARY_365", align:"center", width:"20%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + value + "</span>" ;
- }
- }] ,
- url: $.pathname() + '/ws/crud/CRUDService/queryQui',
- "params":paramsEw,
- pageSize: 10,
- sortName: "CURRENT_EW_LEVEL_365",
- width:"300",
- height:"auto",
- showTitle:true,
- showPageInfo:false,
- fixedCellHeight:true,
- alternatingRow: false,
- rowHeight:30,
- rowAttrRender: function(rowdata, rowindex, rowid){
- return rowdata["__index"] % 2 == 0 ? "style='background-color:#212749;'" : "style='background-color:#2C3A54;'" ;
- }
- }
- )};
-
- //查询
- function searchEw(query){
- grid.setOptions({ params : query});
- grid.setNewPage(1);
- grid.loadData();//加载数据
- };
-
|