$(function(){ var url = $.pathname() + '/ws/scoreGrade/ScoreService/getOuterStatisticsScore'; var params = { eventId : fd_id, sysId : sys_id }; $.request.query(url,params,function(data){ console.log(data); //console.log(JSON.stringify(data.projectResult[0])); $(".titleShow").html(data.projectResult[0].NAME+"得分情况"); var grid = $("#dataBasic").quiGrid({ columns:[ { display: '序号', name: 'OBJ_STRIPE',align: 'center', width: "5%"}, { display: '建设项目', name: 'NAME', align: 'center', width: "8%",isSort:false}, { display: '标准分', name: 'STA_SCORE', align: 'center', width: "4%",isSort:false}, { display: '建设内容', name: 'SUGGESTION',align: 'left', width:"27%",isSort:false} , { display: '评估方法', name: 'CHECK_INSTRUCTION',align: 'left', width:"8%",isSort:false} , { display: '评估标准', name: 'standards',align: 'left', width:"20%",isSort:false,render:renderStandards} , { display: '主要问题', name: 'questions',align: 'left', width:"12%",isSort:false,render:renderQuestions} , { display: '修改建议', name: 'suggestions',align: 'left', width:"12%",isSort:false,render:renderSuggestions} , { display: '实得分', name: 'SCORE',align: 'center', width:"4%",render:renderScore} ], /*usePager:false, pageSize :5, percentWidthMode : true, height: 'auto', width:"100%", minColumnWidth:60, headerRowHeight:45, minRowHeight:38, rowHeight:"auto", headFixMode:true,*/ usePager:false, pageSize: 5, fixedCellHeight:false, percentWidthMode : true, showPageSize:false, minColumnWidth:60, rownumbers:false, checkbox:false, height: 'auto', width:"100%", isScroll:true, headerRowHeight:50, data:{rows:data.rowsResult} //onLoaded:setPageHeight }); setPageHeight(); }); $('.go_img').hover(function(){ $('.go_img img').attr('src','/nwyj/images/temp/back_hover.png'); },function(){ $('.go_img img').attr('src','/nwyj/images/temp/back.png'); }); }); function renderStandards(rowdata, rowindex, value, column){ value = value || ""; var valueArr = value.split("|standards|"); var result = ""; for(var i=0;i"; }; return result; } function renderQuestions(rowdata, rowindex, value, column){ value = value || ""; var valueArr = value.split("|questions|"); var result = ""; for(var i=0;i"; }; return result; } function renderSuggestions(rowdata, rowindex, value, column){ value = value || ""; var valueArr = value.split("|suggestions|"); var result = ""; for(var i=0;i"; }; return result; } function renderScore(rowdata, rowindex, value, column){ /*console.log(rowdata); console.log(value);*/ var result = value || ""; if(".".indexOf(value)<0){ result = parseInt(value); } //console.log(result); return result.toString(); } function setPageHeight(){ $(parent.document.body).find("#frmright").css("height",$(window.document.body).height()+30); } function goback(){ top.$.removeFrameTabs(); top.$.indexOpenSelfWindow($.pathname()+"/page/business/em/evaluate/grade/Grade.jsp"); };