123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- var nodes1 = [
- { id:1, parentId:0, name:"中心1", open: true},
- { id:11, parentId:1, name:"部门1"},
- { id:12, parentId:1, name:"部门2"},
- { id:13, parentId:1, name:"部门3"},
- { id:2, parentId:0, name:"中心2", open: true},
- { id:21, parentId:2, name:"部门4"},
- { id:22, parentId:2, name:"部门5"},
- { id:23, parentId:2, name:"部门6"}
- ];
- var g;
-
- function initComplete(){
-
- $("#layout1").layout({ leftWidth: 150,onEndResize:function(){
- g.resetWidth();
- }});
-
- //本地数据源
- $.fn.zTree.init($("#tree-1"), {}, nodes1);
-
- alert("开始");
-
- g = $("#maingrid").quiGrid({
-
- columns:[
- { name: 'FD_OBJECTID280', hide : true},
- { display: '用户名称', name: '', align: 'center', width: "10%"},
- { display: '用户编号', name: '', align: 'center' , width: "20%"},
- { display: '用电地址', name: '', align: 'center', width: "15%" },
- { display: '用电类别', name: '', align: 'center', width: "10%" },
- { display: '供电单位', name: '', align: 'center', width: "10%" },
- { display: '电压等级', name: '', align: 'center' , width: "15%"},
- { display: '重要客户等级', name: '', align: 'center', width: "20%" }
- ],
- url :$.pathname() + '/ws/crud/CRUDService/queryQui',
- params : loadParams,
- sortName : 'UPDATEDATE_280 ',
- sortOrder : 'desc nulls last',
- rownumbers:true,
- checkbox:true,
- height: '100%',
- width:"100%",
- pageSize: 10,
- percentWidthMode:true,
- //顶部图标按钮栏
- toolbar:{
- items:[
- {text: '查看详情', click: addUnit, iconClass: 'icon_view'},
- { line : true },
- {text: '导出', click: updateUnit, iconClass: 'icon_history'},
- { line : true },
- {text: '汇总', click: deleteUnit, iconClass: 'icon_poll'},
- { line : true }
- ]
- }
- });
- alert("结束");
- }
|