Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

chunk-33ccbb53.f58f44af.js 12 KiB

4 lat temu
12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-33ccbb53"],{"01a8":function(e,i,t){"use strict";var n=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"app-header",class:{white:"white"===e.theme||e.isWindowScrollIng,black:"black"===e.theme,"black-bg-color":e.isWindowScrollIng&&"black"===e.theme}},[e.isClient?t("div",{staticClass:"app-header-top"},[t("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[t("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),t("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),t("div",{staticClass:"top-center"}),t("div",{staticClass:"top-right"},[t("div",{staticClass:"min",on:{click:function(i){return i.stopPropagation(),e.shrinkBrowserWindow(i)}}},[t("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),t("div",{staticClass:"my-max",on:{click:function(i){return i.stopPropagation(),e.judgeIsMaxBrowserWindow(i)}}},[e.isMaxWindowNow?t("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):t("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),t("div",{staticClass:"close",on:{mouseenter:function(i){e.isCloseHover=!0},mouseleave:function(i){e.isCloseHover=!1},click:function(i){return i.stopPropagation(),e.closeBrowserWindow(i)}}},[t("img",{directives:[{name:"show",rawName:"v-show",value:!e.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),t("img",{directives:[{name:"show",rawName:"v-show",value:e.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?t("div",{staticClass:"app-header-top"}):e._e(),t("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[t("div",{staticClass:"app-header-content-left"},[e._t("left",[t("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(i){return e.navBack()}}}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(i){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),t("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),t("div",{staticClass:"app-header-content-right no-drag"},[e._t("right"),e.showRecycleBin?t("span",{on:{click:e.toRecycle}},[t("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):e._e(),e.showUserCenter?t("user-center"):e._e()],2)])])},s=[],o=t("1392"),a=t("1d40"),c={components:{UserCenter:o["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:a["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1,isOnLine:"true"===sessionStorage.getItem("isOnLine")}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize}},watch:{isMaxWindowSize:function(e){this.isMaxWindowNow=e}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){a["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),a["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),a["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){a["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var e=document.getElementById("bigbody");this.isWindowScrollIng=e.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},r=c,l=(t("2c5c"),t("2877")),h=Object(l["a"])(r,n,s,!1,null,"23e47494",null);i["a"]=h.exports},1138:function(e,i,t){},"2c5c":function(e,i,t){"use strict";var n=t("1138"),s=t.n(n);s.a},4588:function(e,i,t){"use strict";var n=t("f34a"),s=t.n(n);s.a},"768e":function(e,i,t){"use strict";var n=t("b84f"),s=t.n(n);s.a},"8b1e":function(e,i,t){"use strict";t.r(i);var n=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("app-header",{attrs:{theme:"basis",showBackBtn:"",backBtnTitle:e.title,showUserCenter:"",isInRecycle:"",showRecycleBin:""},scopedSlots:e._u([{key:"center",fn:function(){return[t("div",{staticClass:"main-title"},[e._v(e._s(e.showTitle))])]},proxy:!0},{key:"right",fn:function(){return[t("search-bar",{staticClass:"proj-search-bar",attrs:{placeholder:"请输入要搜索的文件"},on:{changeSearchContent:e.changeSearchContent,hideSearchBar:e.hideSearchBar,goToSearch:e.searchForFile,showSearchBar:e.showSearchBar,maxTextLengthArrived:e.maxTextLengthArrived}})]},proxy:!0}])}),t("div",{staticClass:"recycle_content"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isEmpty,expression:"isEmpty"}],staticClass:"nullproduct"},[t("img",{attrs:{src:"static\\img\\nopro.png",alt:""}}),t("span",{staticClass:"noprotext"},[e._v("暂无文件")])]),e._l(e.fileList,(function(i){return t("recycle-file",{key:i.id,attrs:{file:i,tempRightFileId:e.tempRightFileId},on:{recycleFile:e.isRecycle,recycleFileRightBtnClick:e.recycleFileRightBtnClick}})}))],2)],1)},s=[],o=(t("4de4"),t("4d63"),t("ac1f"),t("25f0"),t("466d"),t("96cf"),t("1da1")),a=t("01a8"),c=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("div",{ref:"recycle-file",staticClass:"yiyun_wenjian_list loding-mask-parent",on:{contextmenu:function(i){return i.preventDefault(),i.stopPropagation(),e.recycleFileRightBtnClick(i)}}},[t("div",{ref:"file-icon"},[e.oneOf(e.file.extension,e.imgExtensionList)||e.oneOf(e.file.extension,e.VideoExtensionList)?e.oneOf(e.file.extension,e.imgExtensionList)?t("div",{staticClass:"defultImage-mid img_bg-mid toumin"},[t("div",{staticClass:"file_Im gbox-mid"},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.file.alias,expression:"file.alias"}],staticClass:"file_Img",attrs:{alt:""}})])]):t("div",{staticClass:"defultImage-mid video-mid toumin"}):t("div",{staticClass:"defultImage-mid toumin",class:e.file.extension+"-mid "+(e.oneOf(e.file.extension,e.filePreviewList)," ")}),t("strong",{ref:"file-name",staticClass:"yiyunwenjian_name",attrs:{title:e.file.archName+"."+e.file.extension}},[e._v(e._s(e.file.archName)),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.oneOf(e.file.extension,e.RecExtensionList),expression:"!oneOf(file.extension, RecExtensionList)"}]},[e._v("."+e._s(e.file.extension))])])]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isFileRightMenuVisible,expression:"isFileRightMenuVisible"}],ref:"right-menu",staticClass:"contextmenu",style:{top:e.fileRightMenuTop+"px",left:e.fileRightMenuLeft+"px"}},[t("ul",{staticClass:"rightMenu"},[t("li",{on:{click:function(i){return e.removeFile(e.file.id)}}},[e._v("放回原处")])])])])])},r=[],l=(t("c975"),t("b428")),h=(t("b332"),t("1d40")),u=["jpg","png","bmp","gif","jpeg"],d=["jpg","png","bmp","gif","jpeg","txt","zip","ae","ai","idml","indd","mp3","pr","ps","sketch","xmind","skp","rvt","rar","nwc","max","dxf","dwg","svfzip","map","supermap","pdf","ppt","pptx","excel","xlsx","xls","doc","docx","word","folder","folder1","folder2"],f=["avi","mov","wav","mp4"],p=["doc","docx","ppt","pptx","xls","xlsx"],w=["jpg","png","bmp","gif","jpeg","doc","docx","ppt","pptx","xls","xlsx","avi","mov","wav","mp4","txt","pdf","dwg"],g=function(e,i){return-1!==i.indexOf(e)},m={props:{file:{type:Object,default:function(){return{}}},tempRightFileId:{type:String,default:""}},data:function(){return{imgExtensionList:u,RecExtensionList:d,VideoExtensionList:f,office:p,filePreviewList:w,isFileRightMenuVisible:!1,isClient:h["a"].isClient,isEnterBtn:!1,recycleBinMenuShow:!1,fileRightMenuLeft:0,fileRightMenuTop:0,rightMenuEl:null,recycleFileEl:null}},methods:{oneOf:g,fileClick:function(){console.log(12111)},enterSelectBtn:function(){this.isEnterBtn=!0,this.recycleBinMenuShow=!0},leaveSelectBtn:function(){this.isEnterBtn=!1,this.recycleBinMenuShow=!1},removeFile:function(e){var i=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["j"])(e);case 2:n=t.sent,-1!==n.Code&&(i.$notify({type:"success",message:"文件已放回原处。"}),i.$emit("recycleFile",!0));case 4:case"end":return t.stop()}}),t)})))()},recycleFileRightBtnClick:function(e){var i=this;this.isFileRightMenuVisible=!0,this.$nextTick((function(){i.rightMenuEl=i.$refs["right-menu"],i.recycleFileEl=i.$refs["recycle-file"];var t=i.recycleFileEl.getBoundingClientRect(),n=i.rightMenuEl.clientHeight,s=i.rightMenuEl.clientWidth,o=document.body.clientHeight,a=document.body.clientWidth-128;i.fileRightMenuLeft=e.clientX-t.left,i.fileRightMenuTop=e.clientY-t.top,e.clientY+n>o&&(i.fileRightMenuTop=i.fileRightMenuTop-n),e.clientX+s>a&&(i.fileRightMenuLeft=i.fileRightMenuLeft-s),i.$emit("recycleFileRightBtnClick",i.file.id)}))},closeFileRightMenu:function(){this.isFileRightMenuVisible=!1}},watch:{tempRightFileId:function(e){this.isFileRightMenuVisible=e===this.file.id},isFileRightMenuVisible:function(e){e?document.body.addEventListener("click",this.closeFileRightMenu):document.body.removeEventListener("click",this.closeFileRightMenu)}}},v=m,x=(t("768e"),t("2877")),B=Object(x["a"])(v,c,r,!1,null,"5328e970",null),C=B.exports,y=t("2f4c"),k={components:{recycleFile:C,AppHeader:a["a"],SearchBar:y["a"]},created:function(){this.getRecycleFiles()},mounted:function(){},data:function(){return{tempRightFileId:"",fileList:[],searchFileList:[],isEmpty:!0,title:"返回"+sessionStorage.pageTitle,isShowSearchBar:!1,searchContent:""}},methods:{recycleFileRightBtnClick:function(e){this.tempRightFileId=e},getRecycleFiles:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var t;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(l["h"])();case 2:t=i.sent,e.fileList=t,e.searchFileList=t,e.isEmpty=e.fileList.length<1;case 6:case"end":return i.stop()}}),i)})))()},isRecycle:function(e){e&&this.getRecycleFiles()},changeSearchContent:function(e){this.searchContent=e,this.searchForFile()},hideSearchBar:function(){this.isShowSearchBar=!1,this.searchContent=""},showSearchBar:function(){this.isShowSearchBar=!0},maxTextLengthArrived:function(){this.$notify({message:"请输入35个字之内的搜索内容",type:["warning"]})},searchForFile:function(){var e=this,i=this.searchFileList;i=i.filter((function(i){var t=i.archName.match(new RegExp(e.searchContent,"gi"));return!!t})),this.fileList=i,this.isEmpty=i.length<1}},computed:{showTitle:function(){return this.isShowSearchBar&&this.searchContent?"“".concat(this.searchContent,"”搜索结果"):"回收站"}}},b=k,R=(t("4588"),Object(x["a"])(b,n,s,!1,null,"09a11d1e",null));i["default"]=R.exports},b84f:function(e,i,t){},f34a:function(e,i,t){}}]);
  2. //# sourceMappingURL=chunk-33ccbb53.f58f44af.js.map