//获取下拉框参数的值 var compe_code1 =_g().parameterEl.getWidgetByName("compe_code"); compe_code=compe_code1.getValue(); var factory1 =_g().parameterEl.getWidgetByName("factory"); factory=factory1.getValue(); var brand1 =_g().parameterEl.getWidgetByName("brand"); brand=brand1.getValue(); var model_name1 =_g().parameterEl.getWidgetByName("model_name"); model_name=model_name1.getValue(); var VLRR1 =_g().parameterEl.getWidgetByName("VLRR"); VLRR=VLRR1.getValue(); var week1 =_g().parameterEl.getWidgetByName("week"); week=week1.getValue(); var month_week1 =_g().parameterEl.getWidgetByName("month_week"); month_week=month_week1.getValue(); var year_month1 =_g().parameterEl.getWidgetByName("year_month"); year_month=year_month1.getValue(); var quarter1 =_g().parameterEl.getWidgetByName("quarter"); quarter=quarter1.getValue(); var modelname1 =_g().parameterEl.getWidgetByName("modelname"); modelname=modelname1.getValue(); var year11 =_g().parameterEl.getWidgetByName("year1"); year1=year11.getValue(); var customerlevel1 =_g().parameterEl.getWidgetByName("customerlevel"); customerlevel=customerlevel1.getValue(); var codetype1 =_g().parameterEl.getWidgetByName("codetype"); codetype=codetype1.getValue();
//alert(compe_code); //按excel格式导出 factory brand model_name VLRR week window.open(encodeURI ("${servletURL}?viewlet=test/yy/VLRR_BAD_DETAIL.cpt&compe_code="+compe_code+"&month_week="+month_week+"&factory="+factory+"&brand="+brand+"&model_name="+model_name+"&VLRR="+VLRR+"&week="+week+"&year_month="+year_month+"&modelname="+modelname+"&year1="+year1+"&quarter="+quarter+"&codetype="+codetype+"&customerlevel="+customerlevel+"&format=excel"));
同样的JS 除了地址不一样其他都一样倒是别人可以导出,我的为啥不可以 |