2024冀美版美術(shù)一年級上冊《小小船》文檔資料:船的介紹教案_第1頁
2024冀美版美術(shù)一年級上冊《小小船》文檔資料:船的介紹教案_第2頁
2024冀美版美術(shù)一年級上冊《小小船》文檔資料:船的介紹教案_第3頁
2024冀美版美術(shù)一年級上冊《小小船》文檔資料:船的介紹教案_第4頁
2024冀美版美術(shù)一年級上冊《小小船》文檔資料:船的介紹教案_第5頁
已閱讀5頁,還剩4頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

data:{diskId:i.get("diskId")},success:function(e){1==e.status?l.resolve():l.reject(e)},error:function(){l.reject()}}),mise()},setFileOtherCollect:function(i){varl=(newe.Files,n.Deferred());returnn.ajax({url:t.collectother,type:"POST",cache:!1,dataType:"json",data:{diskId:i.get("diskId"),shareId:i.get("shareId"),fileType:0},success:function(e){1==e.status?l.resolve():l.reject(e)},error:function(){l.reject()}}),mise()},setFileOtherUnCollect:function(i){varl=(newe.Files,n.Deferred());returnn.ajax({url:t.uncollectother,type:"POST",cache:!1,dataType:"json",data:{shareId:i.get("shareId")},success:function(e){1==e.status?l.resolve():l.reject(e)},error:function(){l.reject()}}),mise()},setFileEduCollect:function(i){varl=(newe.Files,n.Deferred());returnn.ajax({url:t.collectedu,type:"POST",cache:!1,dataType:"json",data:{resourceId:i.get("resourceId")},success:function(e){1==e.status?l.resolve():l.reject(e)},error:function(){l.reject()}}),mise()},setFileEduUnCollect:function(i){varl=(newe.Files,n.Deferred());returnn.ajax({url:t.uncollectedu,type:"POST",cache:!1,dataType:"json",data:{resourceId:i.get("resourceId")},success:function(e){1==e.status?l.resolve():l.reject(e)},error:function(){l.reject()}}),mise()},setFileOtherPraise:function(i){varl=(newe.Files,n.Deferred());returnn.ajax({url:t.praiseother,type:"POST",cache:!1,dataType:"json",data:{shareId:i.get("shareId")},success:function(e){1==e.status?l.resolve():l.reject(e)},error:function(){l.reject()}}),mise()},setFileOtherUnPraise:function(i){varl=(newe.Files,n.Deferred());returnn.ajax({url:t.unpraiseother,type:"POST",cache:!1,dataType:"json",data:{shareId:i.get("shareId")},success:function(e){1==e.status?l.resolve():l.reject(e)},error:function(){l.reject()}}),mise()},setFileUnCollect:function(i){varl=(newe.Files,n.Deferred());returnn.ajax({url:t.uncollect,type:"POST",cache:!1,dataType:"json",data:{diskId:i.get("diskId")},success:function(e){1==e.status?l.resolve():l.reject(e)},error:function(){l.reject()}}),mise()},setFileDelete:function(i){varl=(newe.Files,n.Deferred());returnn.ajax({url:t["delete"],type:"POST",cache:!1,dataType:"json",data:{diskId:i.get("diskId")},success:function(e){1==e.status?l.resolve():l.reject(e)},error:function(){l.reject()}}),mise()},setFileBatchDelete:function(i){varl=(newe.Files,n.Deferred());returnn.ajax({url:t.deletebatch,type:"POST",cache:!1,dataType:"json",data:{diskIds:i},traditional:!0,success:function(e){1==e.status?l.resolve():l.reject(e)},error:function(){l.reject()}}),mise()},setFileBatchMove:function(i,l,s){varo=(newe.Files,n.Deferred());returnn.ajax({url:t.movebatch,type:"POST",cache:!1,dataType:"json",data:{diskIds:i,fileType:l,unitId:s},traditional:!0,success:function(e){1==e.status?o.resolve():o.reject(e)},error:function(){o.reject()}}),mise()},setFileRename:function(i,l){vars=(newe.Files,n.Deferred());returnn.ajax({url:t.rename,type:"POST",cache:!1,dataType:"json",data:{diskId:i.get("diskId"),name:l},success:function(e){1==e.status?s.resolve():s.reject(e)},error:function(){s.reject()}}),mise()},setFileShare:function(i,l){vars=(newe.Files,n.Deferred());returnn.ajax({url:t.share,type:"POST",cache:!1,dataType:"json",data:{diskId:i.get("diskId"),shareType:l},success:function(e){1==e.status?s.resolve():s.reject(e)},error:function(){s.reject()}}),mise()},setFileUnShare:function(i){varl=(newe.Files,n.Deferred());returnn.ajax({url:t.unshare,type:"POST",cache:!1,dataType:"json",data:{diskId:i.get("diskId")},success:function(e){1==e.status?l.resolve():l.reject(e)},error:function(){l.reject()}}),mise()},setFileMove:function(i,l,s){varo=(newe.Files,n.Deferred());returnn.ajax({url:t.move,type:"POST",cache:!1,dataType:"json",data:{diskId:i.get("diskId"),fileType:l,unitId:s},success:function(e){1==e.status?o.resolve():o.reject(e)},error:function(){o.reject()}}),mise()},setFileProvDelete:function(i){varl=(newe.Files,n.Deferred());returnn.ajax({url:t.deleteprov,type:"POST",cache:!1,dataType:"json",traditional:!0,data:{resourceIdJson:i},success:function(e){1==e.status?l.resolve():l.reject(e)},error:function(){l.reject()}}),mise()},setFileProvMove:function(i,l,s){varo=(newe.Files,n.Deferred());returnn.ajax({url:t.moveprov,type:"POST",cache:!1,dataType:"json",traditional:!0,data:{resourceIdJson:i,fileType:l,unitId:s},success:function(e){1==e.status?o.resolve():o.reject(e)},error:function(){o.reject()}}),mise()},setFileOrders:function(){vart=newe.SimpleModels;returnt.reset([{name:"????????’?o?",val:0},{name:"??€?–°????o?",val:3},{name:"??1èμ???€?¤?",val:1},{name:"?”?è—???€?¤?",val:2},{name:"??‘?”?è—????",val:4}]),t},setFileShareTypes:function(){vart=newe.SimpleModels;returnt.reset([{name:"?…¨é?¨è????′",val:""},{name:"?…¨???è€????",val:0},{name:"?????°???è€????",val:2},{name:"?????o???è€????",val:3},{name:"????

?è€????",val:1}]),t}};i.reqres.setHandler("cate:entities",function(e){returna.getCatesEntities(e)}),i.reqres.setHandler("books:entities",function(){returna.getBooksEntities()}),i.reqres.setHandler("file:entities",function(e){returna.getFileEntities(e)}),i.reqres.setHandler("file:entities:summary",function(e){returna.getFileSummary(e,{unitId:i.params.get("unitId")})}),i.reqres.setHandler("file:entities:extype",function(){returna.getExtType()}),i.reqres.setHandler("unit:current",function(e){returna.setTeacherCurrentUnit(e)}),i.reqres.setHandler("file:top",function(e){returna.setFileTop(e)}),i.reqres.setHandler("file:untop",function(e){returna.setFileUnTop(e)}),i.reqres.setHandler("file:uncollect",function(e){returna.setFileUnCollect(e)}),i.reqres.setHandler("file:delete",function(e){returna.setFileDelete(e)}),i.reqres.setHandler("file:deletebatch",function(e){returna.setFileBatchDelete(e)}),i.reqres.setHandler("file:rename",function(e,t){returna.setFileRename(e,t)}),i.reqres.setHandler("file:share",function(e,t){returna.setFileShare(e,t)}),i.reqres.setHandler("file:unshare",function(e,t){returna.setFileUnShare(e)}),i.reqres.setHandler("file:move",function(e,t,i){returna.setFileMove(e,t,i)}),i.reqres.setHandler("file:movebatch",function(e,t,i){returna.setFileBatchMove(e,t,i)}),i.reqres.setHandler("file:othercollect",function(e){returna.setFileOtherCollect(e)}),i.reqres.setHandler("file:otheruncollect",function(e){returna.setFileOtherUnCollect(e)}),i.reqres.setHandler("file:educollect",function(e){returna.setFileEduCollect(e)}),i.reqres.setHandler("file:eduuncollect",function(e){returna.setFileEduUnCollect(e)}),i.reqres.setHandler("file:otherpraise",function(e){returna.setFileOtherPraise(e)}),i.reqres.setHandler("file:unotherpraise",function(e){returna.setFileOtherUnPraise(e)}),i.reqres.setHandler("file:deleteprov",function(e){returna.setFileProvDelete(e)}),i.reqres.setHandler("file:moveprov",function(e,t,i){returna.setFileProvMove(e,t,i)}),i.reqres.setHandler("file:entities:share",function(){returna.setFileShareTypes()}),i.reqres.setHandler("file:entities:order",function(){returna.setFileOrders()})}),module.exports=e.Entities}),define("page/pan/controller.files",function(require,exports,module){vare=require("page/pan/main"),t=require("page/pan/view.files"),i=require("page/pan/common"),l=require("page/pan/entity"),s=require("page/pan/template");e.module("FilesApp.List",function(e,n,o,a,c,r){vard=a.Controller.extend({resetParams:function(){vart=e.Controller;t.updateParams({page:1,fileType:0,extType:"",shareType:"",order:0})},showColumns:function(){vare=newt.Columns;n.ColumnView=e,n.regions.column.show(e)},showUploadBtn:function(){vare=newi.UploadBtn;n.uploadView=e,n.regions.uploadbtn.show(e)},getFileLayout:function(e,i,l,o){vara;if(1==n.ListStyle)switch(n.ListType){case0:a=newt.FilesLayout({mainView:t.Files,collection:e,filetypes:i,batchView:t.Batch,template:r.template(s.layout[0].fileList)});break;case1:a=newt.FilesShareLayout({mainView:t.FilesShare,collection:e,filetypes:i,template:r.template(s.layout[0].fileShareList),sharetypes:l,orders:o});break;case2:a=newt.FilesEduLayout({mainView:t.FilesEdu,collection:e,filetypes:i,template:r.template(s.layout[0].fileEduList)});break;case3:a=newt.FilesProvLayout({mainView:t.FilesProv,collection:e,total:i,batchView:t.Batch,template:r.template(s.layout[0].fileProvList)})}if(2==n.ListStyle)switch(n.ListType){case0:a=newt.FilesLayoutImg({mainView:t.FilesImg,collection:e,filetypes:i,batchView:t.Batch,template:r.template(s.layout[1].fileListImg)});break;case1:a=newt.FilesShareLayoutImg({mainView:t.FilesShareImg,collection:e,filetypes:i,template:r.template(s.layout[1].fileShareListImg),sharetypes:l,orders:o});break;case2:a=newt.FilesEduLayoutImg({mainView:t.FilesEduImg,collection:e,filetypes:i,template:r.template(s.layout[1].fileEduListImg)});break;case3:a=newt.FilesProvLayoutImg({mainView:t.FilesProvImg,collection:e,total:i,batchView:t.Batch,template:r.template(s.layout[1].fileProvListImg)})}returna},listFiles:function(t){vars=e.Controller;s.showColumns(),t&&(s.resetParams(),n.extTypesView&&n.extTypesView.render());varo=newi.Loading;n.regions.main.show(o);vara=n.request("file:entities",n.ListType),r=n.request("file:entities:summary",n.ListType),d=n.request("file:entities:share"),p=n.request("file:entities:order");n.NowLoading=!0,s.hasMore=!0,c.when(a,r,d,p).done(function(e,t,i,o){s.showUploadBtn(),s.files=newl.Files,s.files.add(e.rows);vara;n.FileTypes=t,n.Files=s.files,n.NowLoading=!1,a=s.getFileLayout(s.files,t,i,o),e.total==s.getPage()&&(s.hasMore=!1),n.regions.main.show(a)}).fail(function(){vare=newi.ErrorMessage;n.regions.main.show(e)})},listFilesProv:function(t){vars=e.Controller;s.showColumns(),t&&s.resetParams();varo=newi.Loading;if(n.regions.main.show(o),"44"!=PAGEUSER.area.substring(0,2)){vara=newi.ErrorMessage({error:"??¨é???1????????”¨??·????—

??????è??é—?é“???¥"});n.regions.main.show(a)}else{varr=n.request("file:entities",n.ListType);n.NowLoading=!0,s.hasMore=!0,c.when(r).done(function(e){s.showUploadBtn(),s.files=newl.Files,s.files.add(e.rows);vart;n.Files=s.files,n.NowLoading=!1,t=s.getFileLayout(s.files,e.records),e.total==s.getPage()&&(s.hasMore=!1),n.regions.main.show(t)}).fail(function(){vare=newi.ErrorMessage;n.regions.main.show(e)})}},listFilesSingle:function(){vart=e.Controller,l=newi.Loading;n.regions.main.show(l);vars=n.request("file:entities",n.ListType);n.NowLoading=!0,t.hasMore=!0,c.when(s).done(function(e){n.NowLoading=!1,e.total==t.getPage()&&(t.hasMore=!1),n.regions.main.show(filesView)})},listFilesMore:function(t){vari=e.Controller;if(!n.NowLoading&&i.hasMore){n.NowLoading=!0,i.updateParams({page:i.getPage()+1});vars=n.request("file:entities",n.ListType);c.when(s).done(function(e){vars=newl.Files;s.add(e.rows),i.files.add(s.models),e.total==i.getPage()&&(i.hasMore=!1),t&&t.render(),n.NowLoading=!1})}},listExtTypes:function(){vare=n.request("file:entities:extype"),i=newt.ExtTypes({collection:e});n.extTypesView=i,n.regions.exttype.show(i)},listCatesById:function(e){vart,i,t=e.bookId,i=e.unitCollection,l=n.request("cate:entities",t);c.when(l).done(function(e){i.reset(e.models)})},setTeacherCurrentUnit:function(e){n.request("unit:current",e)},setFileTop:function(t){vari=e.Controller,l=n.request("file:top",t);c.when(l).done(function(){t.set("stickyStatus",1),i.showCommonMsg("?3????????¤o??????é???–??????????")}).fail(function(e){alert(e.errorMsg)})},setFileUnTop:function(t){vari=e.Controller,l=n.request("file:untop",t);c.when(l).done(function(){t.set("stickyStatus",0),i.showCommonMsg("?3????????¤o?????–??????é???–??????????")}).fail(function(e){alert(e.errorMsg)})},setFileUnCollect:function(t){vari=e.Controller,l=t.model,s=t.filetype,o=t.filesCollection,a=n.request("file:uncollect",l);c.when(a).done(function(){l.destroy(),i.reCalFileTypes(l,s,o,1),i.showCommonMsg("?3????????¤o?????–????”?è—??–??????????")}).fail(function(e){alert(e.errorMsg)})},setFileBatchDelete:function(t){vari=e.Controller,l=t.models,s=t.filetype,o=t.filesCollection,a=[];r.each(l,function(e){a.push(e.get("diskId"))}),i.showDialog({title:"?‰1é????

é?¤?–????",msg:"?–??????

é?¤????????ˉ??¢?¤??????ˉ??|???è?¤???",cb:function(e){if(!i.isRequest){i.isRequest=!0;vart=n.request("file:deletebatch",a);c.when(t).done(function(){r.each(l,function(e){e.destroy(),i.reCalFileTypes(e.get("fileType"),s,o,1)}),e.hide(),i.showCommonMsg("?3????????¤o????‰1é????

é?¤?–??????????")}).fail(function(e){alert(e.errorMsg)}).always(function(){i.isRequest=!1})}}})},setFileDelete:function(t){vari=e.Controller,l=t.model,s=t.filetype,o=t.filesCollection;i.showDialog({title:"??

é?¤?–????",msg:"?–??????

é?¤????????ˉ??¢?¤??????ˉ??|???è?¤???",cb:function(e){if(!i.isRequest){i.isRequest=!0;vart=n.request("file:delete",l);c.when(t).done(function(){l.destroy(),e.hide(),i.reCalFileTypes(l.get("fileType"),s,o,1),i.showCommonMsg("?3????????¤o?????

é?¤?–??????????")}).fail(function(e){alert(e.errorMsg)}).always(function(){i.isRequest=!1})}}})},setFileRename:function(t){varl=e.Controller,s=newi.DialogRename({model:t});l.showDialog({title:"é???‘????",mainView:s,cb:function(e){vari=c("#J_Rename"),s=i.val(),o=function(e){c(".msgtip").size()?c(".msgtip").html(e):i.after('<pclass="msgtip">'+e+"</p>")};if(/[^a-zA-Z0-9\s\?€?\?€?_\.\"\a€?\a€?\u4e00-\u9fa5]/gi.test(s))returno("??…é??è?“?…¥??-?–??€?è?±?–??€???°?-—?€???1?€??????’?o??€??1|?????·?’?????????·"),!1;if(s.length>32)returno("?–????????¤aé???’ˉ"),!1;if(""==c.trim(s))returno("?–??????????è????o??o???"),!1;if(!l.isRequest){l.isRequest=!0;vara=n.request("file:rename",t,s);c.when(a).done(function(){t.set("name",s),e.hide(),l.showCommonMsg("?3????????¤o???é???‘?????–??????????")}).fail(function(e){alert(e.errorMsg)}).always(function(){l.isRequest=!1})}}})},setFileShare:function(t){varl=e.Controller,s=newi.DialogShare;l.showDialog({title:"????o?...",mainView:s,cb:function(e){if(!l.isRequest){vari=s.getArgs("shareWho"),o=s.getArgs("isAgree");if(o){l.isRequest=!0;vara=n.request("file:share",t,i);c.when(a).done(function(){t.set("shareStatus",2),e.hide(),l.showCommonMsg("?3????????¤o???????o??–??????????")}).fail(function(t){e.hide(),l.showDialog({title:"?3???????é?’",msg:"Sorry~"+t.errorMsg,cb:function(e){e.hide()}})}).always(function(){l.isRequest=!1})}}}})},setFileUnShare:function(t){vari=e.Controller,l=n.request("file:unshare",t);c.when(l).done(function(){t.set("shareStatus",0),i.showCommonMsg("?3????????¤o?????–???????o??–??????????")}).fail(function(e){alert(e.errorMsg)})},setFileMove:function(t){varl=e.Controller,s=t.model,o=t.filetype,a=t.filesCollection,r=newi.DialogMove;l.showDialog({title:"?§???¨??°...",mainView:r,className:"alertdialogalertdialogmove",cb:function(e){if(!l.isRequest){vart=r.getArgs("fileType"),i=r.getArgs("unitId");l.isRequest=!0;vard=n.request("file:move",s,t,i);c.when(d).done(function(){varc=s.get("fileType"),r=n.params.get("fileType");s.get("unitId")!=i||s.get("unitId")==i&&0!=r&&r!=t?s.destroy():(l.reCalFileTypes(t,o,a,2),s.set("checked",!1),s.set("fileType",t)),l.reCalFileTypes(c,o,a,1),e.hide(),l.showCommonMsg("?3????????¤o????§???¨?–??????????")}).fail(function(e){alert(e.errorMsg)}).always(function(){l.isRequest=!1})}}})},setFileBatchMove:function(t){varl=e.Controller,s=t.models,o=t.filetype,a=t.filesCollection,d=[];r.each(s,function(e){d.push(e.get("diskId"))});varp=newi.DialogMove;l.showDialog({title:"?‰1é???§???¨??°...",mainView:p,className:"alertdialogalertdialogmove",cb:function(e){if(!l.isRequest){vart=p.getArgs("fileType"),i=p.getArgs("unitId");l.isRequest=!0;varu=n.request("file:movebatch",d,t,i);c.when(u).done(function(){varc=n.params.get("fileType");r.each(s,function(e){e.get("unitId")!=i||c!=t&&0!=c?e.destroy():(e.set("checked",!1),l.reCalFileTypes(t,o,a,2)),l.reCalFileTypes(e.get("fileType"),o,a,1)}),e.hide(),l.showCommonMsg("?3????????¤o????‰1é???§???¨?–??????????")}).fail(function(e){alert(e.errorMsg)}).always(function(){l.isRequest=!1})}}})},setFileOtherCollect:function(t){vari=e.Controller,l=n.request("file:othercollect",t);c.when(l).done(function(){t.set("saveTimes",t.get("saveTimes")+1),t.set("collectState",1),i.showCommonMsg("?3????????¤o????”?è—???????")}).fail(function(e){alert(e.errorMsg)})},setFileOtherUnCollect:function(t){vari=e.Controller,l=n.request("file:otheruncollect",t);c.when(l).done(function(){t.set("saveTimes",t.get("saveTimes")-1),t.set("collectState",0),i.showCommonMsg("?3????????¤o?????–????”?è—???????")}).fail(function(e){alert(e.errorMsg)})},setFileEduCollect:function(t){vari=e.Controller,l=n.request("file:educollect",t);c.when(l).done(function(){t.set("collectState",1),i.showCommonMsg("?3????????¤o????”?è—???????")}).fail(function(e){alert(e.errorMsg)})},setFileEduUnCollect:function(t){vari=e.Controller,l=n.request("file:eduuncollect",t);c.when(l).done(function(){t.set("collectState",0),i.showCommonMsg("?3????????¤o?????–????”?è—???????")}).fail(function(e){alert(e.errorMsg)})},setFileOtherPraise:function(t){vari=e.Controller,l=n.request("file:otherpraise",t);c.when(l).done(function(){t.set("praiseTimes",t.get("praiseTimes")+1),t.set("praiseState",1),i.showCommonMsg("?3????????¤o?????1èμ???????")}).fail(function(e){alert(e.errorMsg)})},setFileOtherUnPraise:function(t){vari=e.Controller,l=n.request("file:unotherpraise",t);c.when(l).done(function(){t.set("praiseTimes",t.get("praiseTimes")-1),t.set("praiseState",0),i.showCommonMsg("?3????????¤o?????–?????1èμ???????")}).fail(function(e){alert(e.errorMsg)})},FileUpload:function(){vart=e.Controller,l=newi.Upload;t.showDialog({title:"?????

?–??????°?o‘???",mainView:l,className:"alertdialogalertdialogupload"})},setFileProvDelete:function(t){vari=e.Controller,l=t.models,s=t.filesCollection,o=[];r.each(l,function(e){o.push(e.get("resourceId"))}),i.showDialog({title:"??

é?¤?–????",msg:"?–??????

é?¤????????ˉ??¢?¤????é?€è|???¨??????????13??°é???–°?”?è—??????ˉ??|???è?¤???",cb:function(e){if(!i.isRequest){i.isRequest=!0;vart=n.request("file:deleteprov",o);c.when(t).done(function(){r.each(l,function(e){e.destroy(),i.reCalFileProvTypes(s)}),e.hide(),i.showCommonMsg("?3????????¤o?????

é?¤?–??????????")}).fail(function(e){alert(e.errorMsg)}).always(function(){i.isRequest=!1})}}})},setFileProvMove:function(t){vars=e.Controller,o=t.models,a=t.filesCollection,d=[],p=!0;if(r.each(o,function(e){d.push(e.get("resourceId")),p=p&&e.get("isAddFs")}),!p)returns.showDialog({title:"?3???????é?’",msg:"Sorry~?3????é?€è|???€??1?—?é—′??????èμ??o?????-¥???èˉ·?¨??€???????é??èˉ?è???§?",cb:function(e){e.hide()}}),!1;varu=newi.Loading,h=newi.Dialog({title:"?3???????é?’",className:"alertdialogalertdialog-loading",mainView:u});n.regions.dialog.show(h);varf=n.request("books:entities");c.when(f).done(function(e){u.trigger("dialog:btclose");vart=e.models[0].get("bookId"),p=n.request("cate:entities",t);c.when(p).done(function(t){varp=newl.SimpleModels;p.reset([{id:"4",name:"èˉ????"},{id:"5",name:"?1

é¢?"},{id:"6",name:"èˉ??¨??′

???"},{id:"2",name:"??????"},{id:"3",name:"?-|???"},{id:"1",name:"?…???–"}]);varu=newi.DialogMoveProv({books:e,units:t,exttypes:p});s.showDialog({title:"?§???¨??°...",mainView:u,className:"alertdialogalertdialogmoveprov",cb:function(e){vart=u.getArgs();if(!s.isRequest){vari=t.id,l=t.unitId;s.isRequest=!0;varp=n.request("file:moveprov",d,i,l);c.when(p).done(function(){r.each(o,function(e){e.destroy(),s.reCalFileProvTypes(a)}),e.hide(),s.showCommonMsg("?3????????¤o????§???¨?–??????????")}).fail(function(e){alert(e.errorMsg)}).always(function(){s.isRequest=!1})}}})})})},reCalFileProvTypes:function(e){0==e.length&&this.listFilesProv()},reCalFileTypes:function(e,t,i,l,s){varn=e,s=s||1;r.each(t.models,function(e){1!=l||e.get("fileType")!=n&&0!=e.get("fileType")||e.set("num",e.get("num")-s),2!=l||e.get("fileType")!=n&&0!=e.get("fileType")||e.set("num",e.get("num")+s)}),0==i.length&&this.listFiles()},updateParams:function(t){e.Controller;r.each(t,function(e,t){n.params.set(t,e)})},getPage:function(){returnparseInt(n.params.get("page"),10)},showDialog:function(e){vart=newi.Dialog({title:e.title,msg:e.msg,cb:e.cb,className:e.className?e.className:"alertdialog",mainView:e.mainView});n.regions.dialog.show(t)},showCommonMsg:function(e){wfe.init("tip",{data:{position:"lb",animation:300}},document.body).show_info(e)}});e.Controller=newd}),module.exports=e.FilesApp.List.Controller}),define(function(require,exports,module){!function(e){_.extend(Marionette.Atotype,{navigate:function(t,i){i||(i={}),e.history.navigate(t,i)},getCurrentRoute:function(){returne.history.fragment}})}(Backbone),function(e,t){window[e]=t}("imageReady",function(){vare=[],t=null,i=[["width","height"],["naturalWidth","naturalHeight"]],l=Number("naturalWidth"innewImage),s=function(){for(vari=0;i<e.length;)e[i].end?e.splice(i,1):n.call(e[i++]);e.length&&(t=setTimeout(s,50))||(t=null)},n=function(){(plete||this[i[l][0]]!==this.__width||this[i[l][1]]!==this.__height||"loading"==this.readyState)&&(this.end=!0,this.onready(this))};returnfunction(o,a,c,r){a=a||newFunction,c=c||newFunction,r=r||newFunction;vard="string"==typeofo?newImage:o;if(d.onerror=function(){d.end=!0,d.onload=d.onerror=d.onreadystatechange=null,r.call(d,d),d=null},"string"==typeofo&&(d.src=o),d){if(plete)returnd.onerror=null,a.call(d,d),c.call(d,d),void(d=null);d.__width=d[i[l][0]],d.__height=d[i[l][1]],d.onready=a,n.call(d),d.onload=d.onreadystatechange=function(){d&&d.readyState&&"loaded"!=d.readyState&&"complete"!=d.readyState||(d.onload=d.onerror=d.onreadystatechange=null,!d.end&&n.call(d),c.call(d,d),d=null)},d.end||(e.push(d),!t&&(t=setTimeout(s,50)))}}}()),function(e){e.fn.thumbshow=function(t){vari={},l=(e.extend(i,t),"/mediaimages/1/{size}_{filekey}.jpg");returnthis.each(function(){vart=e(this),i=t.data("filekey"),s=t.data("ext"),n=l.replace("{filekey}",i).replace("{size}","320x320");"1"!=t.data("isAutoMatched")&&(t.data("isAutoMatched",1),3==xlutil.getTransFileType(s)&&imageReady(n,function(){},function(){t.attr({src:n}).hide().fadeIn()},function(e){}))}),this}}(jQuery);vare=require("page/pan/main");require("page/pan/router"),e.start(),$(function(){$(".pan-list-chg").off("click").on("click",function(){return$(this).toggleClass("pan-list-img"),$(this).is(".pan-list-img")?e.ListStyle=2:e.ListStyle=1,e.trigger("files:list",{page:1}),!1});vart=$(".pan-cates-current");t.find(".pcc-km").html(paninfo.cutName),t.find(".pcc-nm.a").html(paninfo.title),t.find(".pcc-nm.b").html(paninfo.subtitle),window.getTempValues=function(){vart=e.params;return""+t.get("unitId")+","+(0==t.get("fileType")?4:t.get("fileType"))+","+PAGEUSER.userId+","+PAGEUSER.schoolId},function(){vare={init:function(){vare=this,t=function(){vare=$(window).height()-$(".pan-cates-list").position().top;$(".changeMainBook").css({height:e})};$(window).on("resize",t),$(document).on("mouseenter",".changeMainBookulli",function(){$(this).closest("li").is(".on")||$(this).addClass("hover")}).on("mouseleave",".changeMainBookulli",function(){$(this).removeClass("hover")}).on("click",".changeMainBookullib",function(){vart=$(this).closest("li").data("bookid");returne.ajax(sysconfig.member+"teacherInit/setMainBook.ajax",{bookId:t},function(t){e.reload()}),!1}).on("click",".pan-cates-currenta",function(){return$(".changeMainBook").size()||($("body").append('<divclass="changeMainBook"></div>'),t(),e.ajax(sysconfig.member+"teacher/bookManage.ajax",{userId:PAGEUSER.userId},function(t){e.render(t.wrapper)})),$(".changeMainBook").is(":visible")?($(".pan-cates-current").removeClass("pan-cates-current-on"),$(".changeMainBook").slideUp()):($(".pan-cates-current").addClass("pan-cates-current-on"),$(".changeMainBook").slideDown()),!1}),$(document).on("mouseleave",".changeMainBook",function(){$(".pan-cates-current").removeClass("pan-cates-current-on"),$(".changeMainBook").slideUp()})},render:function(e){vart=[];t.push('<divclass="cmb-hd"><emclass="J_SettingJC">????????????</em></div>'),t.push('<

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論