Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

2 lignes
16 KiB

  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3d86b27b"],{"01a8":function(e,t,n){"use strict";var r=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"},[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 vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),n("div",{staticClass:"my-max",on:{click:function(t){return t.stopPropagation(),e.judgeIsMaxBrowserWindow(t)}}},[e.isMaxWindowNow?n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):n("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),n("div",{staticClass:"close",on:{mouseenter:function(t){e.isCloseHover=!0},mouseleave:function(t){e.isCloseHover=!1},click:function(t){return t.stopPropagation(),e.closeBrowserWindow(t)}}},[n("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:""}}),n("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?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 no-drag",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 no-drag",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 no-drag"},[e._t("right"),e.showUserCenter?n("user-center"):e._e()],2)])])},i=[],a=n("1392"),s=n("1d40"),o={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,isCloseHover:!1}},computed:{},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()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},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)}},c=o,u=(n("44f6"),n("2877")),l=Object(u["a"])(c,r,i,!1,null,"9b7b425e",null);t["a"]=l.exports},"065d":function(e,t,n){},"42c3":function(e,t,n){},"44f6":function(e,t,n){"use strict";var r=n("42c3"),i=n.n(r);i.a},"4cab":function(e,t,n){},"8a6b":function(e,t,n){"use strict";var r=n("065d"),i=n.n(r);i.a},"8b1e":function(e,t,n){"use strict";n.r(t);var r=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)},i=[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"),o=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))])])])])])},c=[],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 r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(u["j"])(e);case 2:r=n.sent,-1!==r.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,o,c,!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()}}},C=k,B=(n("8ffd"),Object(g["a"])(C,r,i,!1,null,"f3c8fb2e",null));t["default"]=B.exports},"8ffd":function(e,t,n){"use strict";var r=n("4cab"),i=n.n(r);i.a},b332:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return c})),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 r=n("d4ec"),i={DOWNLOADING:100,UPLOADING:101},a={NOT_WORKING:1,WORKING:2},s=function(e,t){var n=e.nodeName,r=e.extension,i=e.archName,a=e.relativePath,s=n?"".concat(n,"\\协作文件"):t.folderName;return"".concat(s,"\\").concat(a?"".concat(a.replace(/\//g,"\\"),"\\"):"").concat(i).concat(r?".".concat(r):"")},o=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 r=t?"".concat(t,"/"):t,i=e.split("/").map((function(e,t,i){var a="".concat(r).concat(i.slice(0,t+1).join("/"));return n&&n(a),a}));return i},c=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(r["a"])(this,e);var n=t.split("/"),i=n.pop();this.id=t,this.folderPath=t,this.folderName=i,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 o})),n.d(t,"h",(function(){return u})),n.d(t,"j",(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,"i",(function(){return g})),n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return C})),n.d(t,"f",(function(){return j})),n.d(t,"k",(function(){return _}));n("99af"),n("4160"),n("a15b"),n("d81d"),n("fb6a"),n("ac1f"),n("1276"),n("159b"),n("96cf");var r=n("1da1"),i=n("b775"),a=n("3de1"),s=n("b332");function o(e,t){return c.apply(this,arguments)}function c(){return c=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("folder/queryNodeFolderListByProjectIdAndUserId",{projectId:t,userId:n});case 2:return r=e.sent,s=(r.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)}))),c.apply(this,arguments)}function u(){return l.apply(this,arguments)}function l(){return l=Object(r["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(i["b"])("file/queryFilesFromRecycleBin");case 2:if(t=e.sent,Object(i["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(r["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(i["b"])("file/removeFromRecycleBin",{fileId:t});case 2:return n=e.sent,e.abrupt("return",Object(i["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(r["a"])(regeneratorRuntime.mark((function e(t,n,r){var o,c,u,l,d,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("folder/queryFileListByFolderIdAndUserId",{folderId:t,userId:n,publicFolderId:r});case 2:if(o=e.sent,Object(i["c"])(o),0===o.Code){e.next=6;break}return e.abrupt("return",null);case 6:return c=o.Data||{},u=[],l={},d=(c.myFile||[]).concat(c.workFile||[]).map((function(e){var t=Object(a["b"])(e),n=t.relativePath;if(n){var r=n.split("/");r.forEach((function(e,t){var n=r.slice(0,t+1).join("/");if(!l[n]){var i=new s["d"](n),a=i.parentFolderPath;u.push(i),l[n]=i,l[a]&&l[a].childCount++}})),l[n].fileCount++}return t})),p={folder:u,folderMap:l,file:d,coordinationFiles:(c.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(r["a"])(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/changeFileWorkStatus",{fileId:t,workStatus:n});case 2:return r=e.sent,e.abrupt("return",Object(i["c"])(r));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(r["a"])(regeneratorRuntime.mark((function e(t,n,r){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("template/queryFileExchange",{currentTemplateId:t,currentNodeId:n,nestedNodeId:r});case 2:return a=e.sent,e.abrupt("return",Object(i["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(r["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(i["b"])("template/queryNestedTempFileExchange",{currentTemplateId:t});case 2:return n=e.sent,e.abrupt("return",Object(i["c"])(n));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function y(e){return k.apply(this,arguments)}function k(){return k=Object(r["a"])(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/addFile",t);case 2:return n=e.sent,r={API:"file/addFile",Action:"新建文件",CompanyName:sessionStorage.CompanyName,Subject:t.archName+"."+t.extension,Source:sessionStorage.client,ProjectName:sessionStorage.projName},Object(i["b"])("operation/record",r),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}function C(e){return B.apply(this,arguments)}function B(){return B=Object(r["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(i["b"])("file/deleteFile",{fileId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),B.apply(this,arguments)}function j(e){return O.apply(this,arguments)}function O(){return O=Object(r["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(i["b"])("company/queryFileOnlineUrlByCompanyId",t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function _(e,t){return N.apply(this,arguments)}function N(){return N=Object(r["a"])(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["b"])("file/searchFileListByFolderIdAndFileName",{folderId:t,fileName:n});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),N.apply(this,arguments)}},d4ec:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))}}]);
  2. //# sourceMappingURL=chunk-3d86b27b.8d5f248b.js.map