No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

2 líneas
15 KiB

  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d5d706fc"],{"01a8":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("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?n("div",{staticClass:"app-header-top",style:e.adjustPadding},[n("div",{staticClass:"top-left",class:{"hide-state":!0}},[n("div",{staticClass:"dot"}),n("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v("在线")])]),n("div",{staticClass:"top-center"}),n("div",{staticClass:"top-right"},[n("div",{staticClass:"min",on:{click:function(t){return t.stopPropagation(),e.shrinkBrowserWindow(t)}}},[n("img",{staticClass:"min-icon",attrs:{src:"/static/img/窗口缩小.svg",alt:""}})]),n("div",{staticClass:"max"},[e.isMaxWindowNow?n("img",{staticClass:"to-max-icon",attrs:{src:"/static/img/缩放窗口.svg",alt:""},on:{click:function(t){return t.stopPropagation(),e.unmaxBrowserWindow(t)}}}):n("div",{staticClass:"unmax-icon",on:{click:function(t){return t.stopPropagation(),e.enlargeBrowserWindow(t)}}})]),n("div",{staticClass:"close",on:{click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[n("img",{staticClass:"close-icon",attrs:{src:"/static/img/窗口关闭.svg",alt:""}})])])]):e._e(),e.isWorkspaceTopBar&&!e.isClient||e.isShowTopBar&&!e.isClient?n("div",{staticClass:"app-header-top"}):e._e(),n("div",{staticClass:"app-header-content",class:{"adjust-content-pos":e.isWorkspaceTopBar&&!e.isClient}},[n("div",{staticClass:"app-header-content-left"},[e._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:e.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn",class:{icon_topback_left:"white"===e.theme||"basis"===e.theme,icon_topback_left_baise:"black"===e.theme},on:{click:function(t){return e.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:e.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title",on:{click:function(t){return e.navBack()}}},[e._v(e._s(e.backBtnTitle))])])],2),n("div",{staticClass:"app-header-center"},[e._t("center",[e._v(e._s(e.title))])],2),n("div",{staticClass:"app-header-content-right"},[e._t("right"),e._e(),e.showUserCenter?n("user-center"):e._e()],2)])])},r=[],a=n("1392"),s=n("1d40"),c={components:{UserCenter:a["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:s["a"].isClient,isMaxWindowNow:!1}},computed:{adjustPadding:function(){return this.showUserCenter?{padding:"0 70px 0 45px"}:{padding:"0 64px 0 45px"}}},created:function(){this.isMaxWindowNow="true"===this.$cookie.get("isMaxWindowNow")&&Boolean(this.$cookie.get("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){s["a"].shrinkBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,this.$cookie.set("isMaxWindowNow",this.isMaxWindowNow),s["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,this.$cookie.set("isMaxWindowNow",this.isMaxWindowNow),s["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){s["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)}},o=c,u=(n("4721"),n("2877")),l=Object(u["a"])(o,i,r,!1,null,"906b8d74",null);t["a"]=l.exports},"065d":function(e,t,n){},4721:function(e,t,n){"use strict";var i=n("e6c9"),r=n.n(i);r.a},"4cab":function(e,t,n){},"8a6b":function(e,t,n){"use strict";var i=n("065d"),r=n.n(i);r.a},"8b1e":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("app-header",{attrs:{theme:"basis",showBackBtn:"",backBtnTitle:"返回上一界面",title:"回收站",showUserCenter:"",isInRecycle:""}}),e._m(0),n("div",{staticClass:"recycle_content"},e._l(e.fileList,(function(t){return n("recycle-file",{key:t.id,attrs:{file:t},on:{recycleFile:e.isRecycle}})})),1)],1)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"clearfile_box"},[n("div",{staticClass:"clearfile_content"},[e._v(" 清空 ")])])}],a=(n("96cf"),n("1da1")),s=n("01a8"),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"yiyun_wenjian_list loding-mask-parent"},[n("div",[e.oneOf(e.file.extension,e.imgExtensionList)||e.oneOf(e.file.extension,e.VideoExtensionList)?e.oneOf(e.file.extension,e.imgExtensionList)?n("div",{staticClass:"defultImage-mid img_bg-mid toumin"},[n("div",{staticClass:"file_Im gbox-mid"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.file.alias,expression:"file.alias"}],staticClass:"file_Img",attrs:{alt:""}})])]):n("div",{staticClass:"defultImage-mid video-mid toumin"}):n("div",{staticClass:"defultImage-mid toumin",class:e.file.extension+"-mid "+(e.oneOf(e.file.extension,e.filePreviewList)," ")}),n("div",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],staticClass:"top_btn",on:{mouseenter:e.enterSelectBtn,mouseleave:e.leaveSelectBtn}},[n("div",[n("span",[n("i",{staticClass:"icon iconfont icon_small-icon_small_wenjianshezhi settingIcon",class:{setColor:e.isEnterBtn}})]),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.recycleBinMenuShow,expression:"recycleBinMenuShow"}],staticClass:"recycleBinMenu"},[n("ul",[n("li",{staticClass:"menu_item putaway",on:{click:function(t){return e.removeFile(e.file.id)}}},[e._v("放回原处")])])])])],1)]),n("strong",{staticClass:"yiyunwenjian_name",attrs:{title:e.file.archName+"."+e.file.extension}},[e._v(e._s(e.file.archName)),n("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))])])])])])},o=[],u=(n("c975"),n("b428")),l=(n("b332"),n("1d40")),d=["jpg","png","bmp","gif","jpeg"],p=["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"],h=["doc","docx","ppt","pptx","xls","xlsx"],m=["jpg","png","bmp","gif","jpeg","doc","docx","ppt","pptx","xls","xlsx","avi","mov","wav","mp4","txt","pdf","dwg"],w=function(e,t){return-1!==t.indexOf(e)},v={props:{file:{type:Object,default:function(){return{}}}},data:function(){return{imgExtensionList:d,RecExtensionList:p,VideoExtensionList:f,office:h,filePreviewList:m,isFileRightMenuVisible:!1,isClient:l["a"].isClient,isEnterBtn:!1,recycleBinMenuShow:!1}},methods:{oneOf:w,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 t=this;return Object(a["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(u["i"])(e);case 2:i=n.sent,-1!==i.Code&&(t.$notify({type:"success",message:"文件已放回原处。"}),t.$emit("recycleFile",!0));case 4:case"end":return n.stop()}}),n)})))()}}},b=v,g=(n("8a6b"),n("2877")),x=Object(g["a"])(b,c,o,!1,null,"5ad24acb",null),y=x.exports,k={components:{recycleFile:y,AppHeader:s["a"]},created:function(){this.getRecycleFiles()},mounted:function(){},data:function(){return{fileList:[]}},methods:{getRecycleFiles:function(){var e=this;return Object(a["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(u["h"])();case 2:n=t.sent,e.fileList=n;case 4:case"end":return t.stop()}}),t)})))()},isRecycle:function(e){e&&this.getRecycleFiles()}}},B=k,C=(n("8ffd"),Object(g["a"])(B,i,r,!1,null,"f3c8fb2e",null));t["default"]=C.exports},"8ffd":function(e,t,n){"use strict";var i=n("4cab"),r=n.n(i);r.a},b332:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return o})),n.d(t,"g",(function(){return u})),n.d(t,"c",(function(){return l}));n("99af"),n("a15b"),n("d81d"),n("fb6a"),n("ac1f"),n("5319"),n("1276");var i=n("d4ec"),r={DOWNLOADING:100,UPLOADING:101},a={NOT_WORKING:1,WORKING:2},s=function(e,t){var n=e.nodeName,i=e.extension,r=e.archName,a=e.relativePath,s=n?"".concat(n,"\\协作文件"):t.folderName;return"".concat(s,"\\").concat(a?"".concat(a.replace(/\//g,"\\"),"\\"):"").concat(r).concat(i?".".concat(i):"")},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;if(!e)return[];var i=t?"".concat(t,"/"):t,r=e.split("/").map((function(e,t,r){var a="".concat(i).concat(r.slice(0,t+1).join("/"));return n&&n(a),a}));return r},o=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(i["a"])(this,e);var n=t.split("/"),r=n.pop();this.id=t,this.folderPath=t,this.folderName=r,this.parentFolderPath=n.join("/"),this.childCount=0,this.fileCount=0},u=["jpg","png","bmp","gif","jpeg"],l=["avi","mov","wav","mp4"]},b428:function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"g",(function(){return v})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return y})),n.d(t,"f",(function(){return B})),n.d(t,"j",(function(){return j}));n("99af"),n("4160"),n("a15b"),n("d81d"),n("fb6a"),n("ac1f"),n("1276"),n("159b"),n("96cf");var i=n("1da1"),r=n("b775"),a=n("3de1"),s=n("b332");function c(e,t){return o.apply(this,arguments)}function o(){return o=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){var i,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("folder/queryNodeFolderListByProjectIdAndUserId",{projectId:t,userId:n});case 2:return i=e.sent,s=(i.Data||[]).map((function(e){var t=Object(a["b"])(e);return t.listsShareFrom=[[],[]],t})),e.abrupt("return",s);case 5:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function u(){return l.apply(this,arguments)}function l(){return l=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("file/queryFilesFromRecycleBin");case 2:if(t=e.sent,Object(r["c"])(t),0===t.Code){e.next=6;break}return e.abrupt("return",null);case 6:return n=(t.Data||[]).map((function(e){var t=Object(a["b"])(e);return t})),e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return p=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("file/removeFromRecycleBin",{fileId:t});case 2:return n=e.sent,e.abrupt("return",Object(r["c"])(n));case 4:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function f(e,t,n){return h.apply(this,arguments)}function h(){return h=Object(i["a"])(regeneratorRuntime.mark((function e(t,n,i){var c,o,u,l,d,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("folder/queryFileListByFolderIdAndUserId",{folderId:t,userId:n,publicFolderId:i});case 2:if(c=e.sent,Object(r["c"])(c),0===c.Code){e.next=6;break}return e.abrupt("return",null);case 6:return o=c.Data||{},u=[],l={},d=(o.myFile||[]).concat(o.workFile||[]).map((function(e){var t=Object(a["b"])(e),n=t.relativePath;if(n){var i=n.split("/");i.forEach((function(e,t){var n=i.slice(0,t+1).join("/");if(!l[n]){var r=new s["d"](n),a=r.parentFolderPath;u.push(r),l[n]=r,l[a]&&l[a].childCount++}})),l[n].fileCount++}return t})),p={folder:u,folderMap:l,file:d,coordinationFiles:(o.coordinationFiles||[]).map(a["b"])},e.abrupt("return",p);case 12:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function m(e,t){return w.apply(this,arguments)}function w(){return w=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("file/changeFileWorkStatus",{fileId:t,workStatus:n});case 2:return i=e.sent,e.abrupt("return",Object(r["c"])(i));case 4:case"end":return e.stop()}}),e)}))),w.apply(this,arguments)}function v(e,t,n){return b.apply(this,arguments)}function b(){return b=Object(i["a"])(regeneratorRuntime.mark((function e(t,n,i){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:n,nestedNodeId:i});case 2:return a=e.sent,e.abrupt("return",Object(r["c"])(a));case 4:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function g(e){return x.apply(this,arguments)}function x(){return x=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("file/addFile",t);case 2:return n=e.sent,i={API:"file/addFile",Action:"新建文件",CompanyName:sessionStorage.CompanyName,Subject:t.archName+"."+t.extension,Source:sessionStorage.client,ProjectName:sessionStorage.projName},Object(r["b"])("operation/record",i),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function y(e){return k.apply(this,arguments)}function k(){return k=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("file/deleteFile",{fileId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function B(e){return C.apply(this,arguments)}function C(){return C=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("company/queryFileOnlineUrlByCompanyId",t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function j(e,t){return O.apply(this,arguments)}function O(){return O=Object(i["a"])(regeneratorRuntime.mark((function e(t,n){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(r["b"])("file/searchFileListByFolderIdAndFileName",{folderId:t,fileName:n});case 2:return i=e.sent,e.abrupt("return",i);case 4:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}},d4ec:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return i}))},e6c9:function(e,t,n){}}]);
  2. //# sourceMappingURL=chunk-d5d706fc.8d24b68c.js.map