function queryProduct(attachType){ // $.ajax({ type: 'POST', url: SYS_BASE + "/queryProduct.jspx", success: function(resp){ All_PRO_JSON = resp; reloadSecondLevelData(732,attachType); }, dataType: 'json' }); } function firstLevelChange(thisp,channelId,attachType){ $("#firstlevel .on").removeClass("on"); $(thisp).addClass("on"); reloadSecondLevelData(channelId,attachType); } function secondLevelChange(thisp,channelId,attachType){ $("#secondlevel .on").removeClass("on"); $(thisp).addClass("on"); reloadThridLevelData(channelId,attachType); } function thirdLevelChange(thisp,channelId,attachType){ $("#thridlevel .on").removeClass("on"); $(thisp).addClass("on"); queryProFileToList(channelId,attachType); } function reloadSecondLevelData(parentId,attachType){ $("#secondlevel").empty(""); var channelId = -1; var isFirst = true; var showname = ""; for(var i=0;i'+ showname +''); isFirst = false; //娣诲姞绗笁灞 reloadThridLevelData(channelId,attachType); }else{ $("#secondlevel").append('
  • '+ showname +'
  • '); } } } } function reloadThridLevelData(clickChannelId,type){ var firstchannelId = -1; var channelId = -1; var childrenArray = null; var showname = ""; var secondChannelId = -1; var isFirst = true; $("#thridlevel").empty(); for(var i=0;i'+showname+''); isFirst = false; queryProFileToList(secondChannelId,type); }else{ $("#thridlevel").append('
  • '+showname+'
  • '); } } } } } } function queryProFileToList(selectChannelId,type){ $.ajax({ type: 'POST', url: SYS_BASE + "/queryNewProductFile.jspx", data: { channleId : selectChannelId, level : 3, type : type }, success: function(resp){ addProFileToList(resp); }, dataType: 'json' }); } //娣诲姞鏂囦欢 function addProFileToList(fileList){ $("#downfilelist").empty(); var sigleFile = ""; var showname = null; var filesize = null; var filepath = null; for(var m=0;m'; sigleFile +='
  • '+filesize+'  Mb
  • '; sigleFile +='
  • '; sigleFile +='
  • '; sigleFile +='
  • '; sigleFile +=''; $("#downfilelist").append(sigleFile); } } function updateAttachmentDownLoadCount(attachName,attachPath,atype){ $.ajax({ type: 'POST', url: "/updateDownLoadCount.jspx", data: { attachName : attachName, attachPath : attachPath, atype : atype }, success: function(resp){ } }); } function downLoadByName(attachName,attachPath,atype){ $.ajax({ type: 'POST', url: "/updateDownLoadCount.jspx", data: { attachName : attachName, attachPath : attachPath, atype : atype }, success: function(resp){ } }); if(attachPath && !attachPath.startsWith("http")){ window.open("/downloadByName.jspx?filePath="+attachPath+"&fileName="+attachName); } }