function echartsSMLine(n){$.ajax({type:"POST",dataType:"json",url:"/DataFund/_PrivateStrategyIndex/",data:n,success:function(n){try{var t=n;t.code==200&&t.data.length>0&&(smDataAry=t.data,GetAllMarket())}catch(i){}},error:function(n){console.log(n)}})}function echartsGMLine(n){$.ajax({type:"POST",dataType:"json",url:"/DataFund/_PublicStrategyIndex/",data:n,success:function(n){try{var t=n;t.code==200&&t.data.length>0&&(gmDataAry=t.data,GetAllMarket())}catch(i){}},error:function(){}})}function GetDataByName(n,t){for(var r=[],i=0;i0){for(w.push(i),f=0;f2&&(rt=GetData(e[e.length-2][0]),b=e[e.length-2][1]);var g=d-b,ht=(g/b*100).toFixed(2),ut="center_red",ft="../../Content/img/rise_red.png",et="+";g<0&&(ut="center_green",ft="../../Content/img/rise_green.png",et="");y="";y+='
'+d.toFixed(2)+"<\/span>";y+='<\/span>

'+et+""+g.toFixed(2)+"<\/p>"+ht+'%<\/span><\/div>

<\/span><\/div>';y+='

上期:'+b.toFixed(2)+"<\/span>("+rt+")<\/span><\/p>";$("#"+t).parent().parent().find(".div_index_datevalue").html(y);nt="";nt+='

最新指数:<\/span>'+k+"<\/span><\/p>";$("#"+t).parent().parent().find(".newindexData").html(nt)}if(r!=null&&u!=null)for(w.push(u),f=0;fs?s:a,v=v>s?v:s;if(o=null,r!=null&&u!=null)for(c[1]=[],f=0;fs?s:a,v=v>s?v:s;for(f=0;f●<\/a>'+r.data[t]+" : "+u}return f}},grid:{top:"8%",bottom:45,left:"15%",right:"8%"},xAxis:{boundaryGap:!0,data:h,axisLine:{show:!1,lineStyle:{color:"#999999"}},axisTick:{show:!1}},yAxis:{type:"value",boundaryGap:!0,axisLabel:{show:!0,formatter:function(n){return u!=null?(n*1).toFixed(1)+"%":n}},position:"left",axisLine:{show:!1,lineStyle:{color:"#999999"}},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:["#f0f0f0"],width:1,type:"solid"}}},legend:{data:w,bottom:0,textStyle:{fontSize:10,color:"#666666"}},series:it};p.clear();p.setOption(l);p.off("legendselectchanged");p.on("legendselectchanged",function(n){var t=n.selected;l.legend.selected=t})}function GetShowMarketData(n,t,i){for(var u=[],r=0;r=t&&strategyAry[r].index_date<=i&&(n=="HS300"?u.push([strategyAry[r].hs300,strategyAry[r].index_date]):n=="ZZQZ"?u.push([strategyAry[r].csi_total_debt,strategyAry[r].index_date]):n=="NHSPZS"?u.push([strategyAry[r].south_china_commodity,strategyAry[r].index_date]):n=="上证指数"?u.push([strategyAry[r].szzz,strategyAry[r].index_date]):n=="SZ50"?u.push([strategyAry[r].sz50,strategyAry[r].index_date]):n=="ZZ100"?u.push([strategyAry[r].zz100,strategyAry[r].index_date]):n=="ZZ200"?u.push([strategyAry[r].zz200,strategyAry[r].index_date]):n=="ZZ500"?u.push([strategyAry[r].zz500,strategyAry[r].index_date]):n=="ZZ800"?u.push([strategyAry[r].zz800,strategyAry[r].index_date]):n=="ZZZHZS"?u.push([strategyAry[r].cb_composite,strategyAry[r].index_date]):n=="ZZGZZZS"?u.push([strategyAry[r].cb_national,strategyAry[r].index_date]):n=="ZZJRZQZZS"?u.push([strategyAry[r].cb_financial,strategyAry[r].index_date]):n=="ZZXYZZZS"&&u.push([strategyAry[r].cb_credit,strategyAry[r].index_date]));return u}function open_window(n){var i=$(n).attr("data-value"),t="";i==="私募全市场"?t="/Report/Report?report_type=SM_index":i==="私募股票"?t="/Report/Report?report_type=SM_gpcl":i==="私募固定收益"?t="/Report/Report?report_type=SM_gdsy":i==="私募管理期货"?t="/Report/Report?report_type=SM_glqh":i==="私募相对价值"?t="/Report/Report?report_type=SM_xdjz":i==="私募宏观策略"?t="/Report/Report?report_type=SM_hgcl":i==="公募全市场"?t="/Report/Report?report_type=GM_index":i==="公募股票策略"?t="/Report/Report?report_type=GM_gpx":i==="公募混合策略"?t="/Report/Report?report_type=GM_hhx":i==="公募债券策略"&&(t="/Report/Report?report_type=GM_zqx");t!=""&&(analyticsCap(ENUM_M.EQUITYSTRATEGY,ENUM_F.EQUITYSTRATEGY_REPORT,t),window.open(t))}function TwoDateCompare(n,t){var i=n.split("-"),r=t.split("-"),u=new Date(i[0],i[1],i[2]),f=new Date(r[0],r[1],r[2]);return(u-f)/864e5}function GetAllMarket(){var t,i,n,r,u,f;if(smDataAry!=null&&smDataAry.length>0&&gmDataAry!=null&&gmDataAry.length>0){for(t=GetData(smDataAry[0].data[0][0]),i=t,n=0;n1&&(i=u),TwoDateCompare(r,t)<1&&(t=r);for(n=0;n1&&(i=u),TwoDateCompare(r,t)<1&&(t=r);f={strategy:"全市场",date_begin:t,date_end:i};$.ajax({type:"POST",dataType:"json",url:"/DataFund/_MarketStrategyIndex/",data:f,success:function(n){var i,t;try{if(i=n,i.code==200&&i.data.length>0&&(strategyAry=i.data,strategyAry!=null&&strategyAry.length>0)){for(t=0;t0&&(t='