'; } $("#imgPer").html(htmlPer); $("#imgDiv").html(html); }else{ alert(data.resultInfo); } } }); } var setting = { data: { simpleData: { enable: true } } }; var zNodes = [{ id:'1', pId:'0', name:'ca6140车床杠杆[831009]机械加工工艺规程及钻2m6孔夹具设计.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'00001', pId:'1', name:'工序片7张 (包含7个文件)', },{ id:'0000100001', pId:'00001', name:'工艺卡1.dwg (39KB)', click:'getBookinfo(8418357)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100002', pId:'00001', name:'工艺卡2.dwg (38KB)', click:'getBookinfo(8418358)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100003', pId:'00001', name:'工艺卡3.dwg (53KB)', click:'getBookinfo(8418359)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100004', pId:'00001', name:'工艺卡4.dwg (53KB)', click:'getBookinfo(8418360)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100005', pId:'00001', name:'工艺卡5.dwg (55KB)', click:'getBookinfo(8418361)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100006', pId:'00001', name:'工艺卡6.dwg (53KB)', click:'getBookinfo(8418362)', icon:'/Images/filetype/DOC16.PNG'},{ id:'0000100007', pId:'00001', name:'工艺卡7.dwg (54KB)', click:'getBookinfo(8418363)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00002', pId:'1', name:'夹具体.dwg (70KB)', click:'getBookinfo(8418364)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00003', pId:'1', name:'机械加工工艺过程卡片.dwg (32KB)', click:'getBookinfo(8418365)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00004', pId:'1', name:'毛坯图.dwg (57KB)', click:'getBookinfo(8418366)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00005', pId:'1', name:'装配图.dwg (99KB)', click:'getBookinfo(8418367)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00006', pId:'1', name:'设计说明书.doc (661KB)', click:'getBookinfo(8418368)', icon:'/Images/filetype/DOC16.PNG'},{ id:'00007', pId:'1', name:'零件图.dwg (78KB)', click:'getBookinfo(8418369)', icon:'/Images/filetype/DOC16.PNG'}]; var zNodes2 = [{ id:'1', pId:'0', name:'ca6140车床杠杆[831009]机械加工工艺规程及钻2m6孔夹具设计.zip', open:true, icon:'/Images/filetype/RAR16.PNG'},{ id:'0000100001', pId:'00001', name:'工艺卡1.dwg',url:'https://www.zsdocx.com/p-8418357.html', target:'_blank' },{ id:'0000100002', pId:'00001', name:'工艺卡2.dwg',url:'https://www.zsdocx.com/p-8418358.html', target:'_blank' },{ id:'0000100003', pId:'00001', name:'工艺卡3.dwg',url:'https://www.zsdocx.com/p-8418359.html', target:'_blank' },{ id:'0000100004', pId:'00001', name:'工艺卡4.dwg',url:'https://www.zsdocx.com/p-8418360.html', target:'_blank' },{ id:'0000100005', pId:'00001', name:'工艺卡5.dwg',url:'https://www.zsdocx.com/p-8418361.html', target:'_blank' },{ id:'0000100006', pId:'00001', name:'工艺卡6.dwg',url:'https://www.zsdocx.com/p-8418362.html', target:'_blank' },{ id:'0000100007', pId:'00001', name:'工艺卡7.dwg',url:'https://www.zsdocx.com/p-8418363.html', target:'_blank' },{ id:'00002', pId:'1', name:'夹具体.dwg',url:'https://www.zsdocx.com/p-8418364.html', target:'_blank' },{ id:'00003', pId:'1', name:'机械加工工艺过程卡片.dwg',url:'https://www.zsdocx.com/p-8418365.html', target:'_blank' },{ id:'00004', pId:'1', name:'毛坯图.dwg',url:'https://www.zsdocx.com/p-8418366.html', target:'_blank' },{ id:'00005', pId:'1', name:'装配图.dwg',url:'https://www.zsdocx.com/p-8418367.html', target:'_blank' },{ id:'00006', pId:'1', name:'设计说明书.doc',url:'https://www.zsdocx.com/p-8418368.html', target:'_blank' },{ id:'00007', pId:'1', name:'零件图.dwg',url:'https://www.zsdocx.com/p-8418369.html', target:'_blank' }]; $(document).ready(function(){ if(JSON.stringify(zNodes)=="{}") { $("#ysyl").hide(); }else { $.fn.zTree.init($("#treeDemo"), setting, zNodes); $.fn.zTree.init($("#treeDemo2"), setting, zNodes2); } }); $(function() { $("#jubao input[type='radio']").click(function() { $("#hidTypeID").val($(this).val()); }); }); function jubao() { var userid = '0'; if (userid != "" && userid != undefined && userid != "0") { $("#jubao").show(); } else { alert("请登录!");window.location.href='login.aspx'; } } function saveJuBao() { var bookid = '7248264'; var type = $("#hidTypeID").val(); if (type != "" && type != undefined && bookid != "" && bookid != undefined) { $.ajax({ type: "post", url: "View.aspx/JuBao", data: "{bookid: '" + bookid + "', type: '" + type + "' }", contentType: "application/json; charset=utf-8", dataType: "json", success: function(data) { $("#jubao").hide(); $("#jubaoResponse").show(); if (data.d != "0") { $("#jubaoResponse h4").html("您的举报提交成功"); } else { $("#jubaoResponse h4").html("您的举报提交失败"); } } }); } else { alert("请选择投诉类型或者数据错误请刷新重试!"); } } $(function(){ $(document).bind("contextmenu",function(e){ return false; }); });