12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- var deptName;
- //数据表格
- var g;
- var myCols = [{
- display: '网级制度文件', name: 'netclass', width: "20%", align: 'center'
- },{
- display: '省级制度文件', name: 'provincial', width: "20%", align: 'center'
- },{
- display: '地市级制度文件', name: 'municipal', width: "20%", align: 'center'
- },{
- display: '行政规章制度', name: 'administrative', width: "20%", align: 'center'
- }];
- function initComplete(){
- deptName = (window.location.href).split('?')[1];
- g = $("#maingrid").quiGrid({
- columns: [{display : '所属单位',"name" : 'name',id : 'name',width : "10%",dept_id:'dept_id',align : 'center',render: addStatus},
- {display: '文件分类', columns: myCols, width: "80%"},
- {display: '合计', name: 'num', width: "10%", align: 'center'}
- ],
- url : $.pathname() + '/ws/FILEPOLL/FileAMService/getFileAMInfo',
- params : {
- id : deptName
- },
- rownumbers : true,
- height : '100%',
- width : "100%",
- usePager : false,
- // autoCheckChildren : true,
- // tree : {
- // columnId : 'name'
- // },
- // treeAjax : true,
- // treeChildDataPath : $.pathname() + '/ws/EXPERT/ExpertService/getExpertInfoList?deptId=',
- // treeAutoParam:"dept_id"
- });
- }
- function addStatus(rowdata, rowindex, value, column){
- var comp_id='"'+rowdata.dept_id+'"';
- var name = '"'+value+'"';
- return "<a href='javascript:newHtml("+comp_id+","+name+")'>" + value +" </a>";
- }
- function newHtml(comp_id,name){
- if(name=="总计"){
- return;
- }else if(deptName==comp_id){
- return;
- }else{
- window.open("/nwyj/page/business/am/file/FileAM-poll1.jsp?"+comp_id);
- // window.location.href = "/nwyj/page/business/am/resource/expert/expert-poll.jsp?"+comp_id;
- // alert(comp_id);
- }
-
- }
|