|
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35935fc9"],{"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"},[n("div",{staticClass:"top-left",attrs:{title:e.isOnLine?"":"请检查本地网关连接"}},[n("div",{staticClass:"dot",class:{online:e.isOnLine,offline:!e.isOnLine}}),n("div",{staticClass:"state",class:{"white-color":"white"===e.theme,black:"black"===e.theme}},[e._v(e._s(e.isOnLine?"在线":"离线"))])]),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.showRecycleBin?n("span",{on:{click:e.toRecycle}},[n("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:e.isInRecycle}})]):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,showRecycleBin: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,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(){s["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),s["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("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("2c5c"),n("2877")),l=Object(u["a"])(o,i,r,!1,null,"23e47494",null);t["a"]=l.exports},1138:function(e,t,n){},"2c5c":function(e,t,n){"use strict";var i=n("1138"),r=n.n(i);r.a},"2f4c":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"search-bar",class:{"show-search-bar":e.isShowSearchBar}},[n("div",{staticClass:"search-entry",class:{"set-high-index":!e.isShowSearchBar},on:{mouseenter:function(t){e.isSearchHover=!0},mouseleave:function(t){e.isSearchHover=!1},click:function(t){return t.stopPropagation(),e.showSearchBar(t)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!e.isSearchHover,expression:"!isSearchHover"}],staticClass:"vert-hori-center search-img",attrs:{src:"/static/img/搜索.svg",alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.isSearchHover,expression:"isSearchHover"}],staticClass:"vert-hori-center search-active-img",attrs:{src:"/static/img/搜索激活.svg",alt:""}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSearchBar,expression:"isShowSearchBar"}],staticClass:"search-wrap"},[n("i",{staticClass:"search-icon",on:{click:function(t){return t.stopPropagation(),e.goToSearch(t)}}}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.searchContent,expression:"searchContent"}],staticClass:"search-input",attrs:{type:"text",placeholder:e.placeholder,maxlength:"35"},domProps:{value:e.searchContent},on:{keyup:function(t){return t.stopPropagation(),e.enterSearchContent(t)},input:function(t){t.target.composing||(e.searchContent=t.target.value)}}}),n("i",{staticClass:"close-icon",on:{click:function(t){return t.stopPropagation(),e.hideSearchBar(t)}}})])])},r=[],a={data:function(){return{searchContent:"",isSearchHover:!1,isShowSearchBar:!1}},props:{placeholder:{type:String,default:"搜索的文本"}},watch:{searchContent:function(e){35==e.length&&this.$emit("maxTextLengthArrived"),this.changeSearchContent()}},methods:{enterSearchContent:function(e){this.searchContent&&13==e.keyCode&&this.goToSearch()},changeSearchContent:function(){this.$emit("changeSearchContent",this.searchContent)},goToSearch:function(){this.$emit("goToSearch")},hideSearchBar:function(){this.isShowSearchBar=!1,this.$emit("hideSearchBar")},showSearchBar:function(){this.searchContent="",this.isShowSearchBar=!0,this.$emit("showSearchBar")}}},s=a,c=(n("76ae"),n("2877")),o=Object(c["a"])(s,i,r,!1,null,"df8317c6",null);t["a"]=o.exports},4588:function(e,t,n){"use strict";var i=n("f34a"),r=n.n(i);r.a},"466d":function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),a=n("50c4"),s=n("1d80"),c=n("8aa5"),o=n("14c3");i("match",1,(function(e,t,n){return[function(t){var n=s(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var s=r(e),u=String(this);if(!s.global)return o(s,u);var l=s.unicode;s.lastIndex=0;var h,f=[],d=0;while(null!==(h=o(s,u))){var p=String(h[0]);f[d]=p,""===p&&(s.lastIndex=c(u,a(s.lastIndex),l)),d++}return 0===d?null:f}]}))},"4d63":function(e,t,n){var i=n("83ab"),r=n("da84"),a=n("94ca"),s=n("7156"),c=n("9bf2").f,o=n("241c").f,u=n("44e7"),l=n("ad6d"),h=n("9f7f"),f=n("6eeb"),d=n("d039"),p=n("69f3").set,m=n("2626"),g=n("b622"),w=g("match"),v=r.RegExp,b=v.prototype,x=/a/g,y=/a/g,C=new v(x)!==x,B=h.UNSUPPORTED_Y,S=i&&a("RegExp",!C||B||d((function(){return y[w]=!1,v(x)!=x||v(y)==y||"/a/i"!=v(x,"i")})));if(S){var R=function(e,t){var n,i=this instanceof R,r=u(e),a=void 0===t;if(!i&&r&&e.constructor===R&&a)return e;C?r&&!a&&(e=e.source):e instanceof R&&(a&&(t=l.call(e)),e=e.source),B&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var c=s(C?new v(e,t):v(e,t),i?this:b,R);return B&&n&&p(c,{sticky:n}),c},k=function(e){e in R||c(R,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},j=o(v),O=0;while(j.length>O)k(j[O++]);b.constructor=R,R.prototype=b,f(r,"RegExp",R)}m("RegExp")},"768e":function(e,t,n){"use strict";var i=n("b84f"),r=n.n(i);r.a},"76ae":function(e,t,n){"use strict";var i=n("e9b0"),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:e.title,showUserCenter:"",isInRecycle:"",showRecycleBin:""},scopedSlots:e._u([{key:"center",fn:function(){return[n("div",{staticClass:"main-title"},[e._v(e._s(e.showTitle))])]},proxy:!0},{key:"right",fn:function(){return[n("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}])}),n("div",{staticClass:"recycle_content"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isEmpty,expression:"isEmpty"}],staticClass:"nullproduct"},[n("img",{attrs:{src:"static\\img\\nopro.png",alt:""}}),n("span",{staticClass:"noprotext"},[e._v("暂无文件")])]),e._l(e.fileList,(function(t){return n("recycle-file",{key:t.id,attrs:{file:t,tempRightFileId:e.tempRightFileId},on:{recycleFile:e.isRecycle,recycleFileRightBtnClick:e.recycleFileRightBtnClick}})}))],2)],1)},r=[],a=(n("4de4"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),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",{ref:"recycle-file",staticClass:"yiyun_wenjian_list loding-mask-parent",on:{contextmenu:function(t){return t.preventDefault(),t.stopPropagation(),e.recycleFileRightBtnClick(t)}}},[n("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)?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("strong",{ref:"file-name",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))])])]),n("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"}},[n("ul",{staticClass:"rightMenu"},[n("li",{on:{click:function(t){return e.removeFile(e.file.id)}}},[e._v("放回原处")])])])])])},o=[],u=(n("c975"),n("b428")),l=(n("b332"),n("1d40")),h=["jpg","png","bmp","gif","jpeg"],f=["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"],d=["avi","mov","wav","mp4"],p=["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"],g=function(e,t){return-1!==t.indexOf(e)},w={props:{file:{type:Object,default:function(){return{}}},tempRightFileId:{type:String,default:""}},data:function(){return{imgExtensionList:h,RecExtensionList:f,VideoExtensionList:d,office:p,filePreviewList:m,isFileRightMenuVisible:!1,isClient:l["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 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["k"])(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)})))()},recycleFileRightBtnClick:function(e){var t=this;this.isFileRightMenuVisible=!0,this.$nextTick((function(){t.rightMenuEl=t.$refs["right-menu"],t.recycleFileEl=t.$refs["recycle-file"];var n=t.recycleFileEl.getBoundingClientRect(),i=t.rightMenuEl.clientHeight,r=t.rightMenuEl.clientWidth,a=document.body.clientHeight,s=document.body.clientWidth-128;t.fileRightMenuLeft=e.clientX-n.left,t.fileRightMenuTop=e.clientY-n.top,e.clientY+i>a&&(t.fileRightMenuTop=t.fileRightMenuTop-i),e.clientX+r>s&&(t.fileRightMenuLeft=t.fileRightMenuLeft-r),t.$emit("recycleFileRightBtnClick",t.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=w,b=(n("768e"),n("2877")),x=Object(b["a"])(v,c,o,!1,null,"5328e970",null),y=x.exports,C=n("2f4c"),B={components:{recycleFile:y,AppHeader:s["a"],SearchBar:C["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(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,e.searchFileList=n,e.isEmpty=e.fileList.length<1;case 6:case"end":return t.stop()}}),t)})))()},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,t=this.searchFileList;t=t.filter((function(t){var n=t.archName.match(new RegExp(e.searchContent,"gi"));return!!n})),this.fileList=t,this.isEmpty=t.length<1}},computed:{showTitle:function(){return this.isShowSearchBar&&this.searchContent?"“".concat(this.searchContent,"”搜索结果"):"回收站"}}},S=B,R=(n("4588"),Object(b["a"])(S,i,r,!1,null,"09a11d1e",null));t["default"]=R.exports},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,"k",(function(){return h})),n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return m})),n.d(t,"g",(function(){return w})),n.d(t,"i",(function(){return b})),n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return B})),n.d(t,"f",(function(){return R})),n.d(t,"l",(function(){return j})),n.d(t,"j",(function(){return F})),n.d(t,"m",(function(){return N})),n.d(t,"n",(function(){return _}));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 h(e){return f.apply(this,arguments)}function f(){return f=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)}))),f.apply(this,arguments)}function d(e,t,n){return p.apply(this,arguments)}function p(){return p=Object(i["a"])(regeneratorRuntime.mark((function e(t,n,i){var c,o,u,l,h,f;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={},h=(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})),f={folder:u,folderMap:l,file:h,coordinationFiles:(o.coordinationFiles||[]).map(a["b"])},e.abrupt("return",f);case 12:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function m(e,t){return g.apply(this,arguments)}function g(){return g=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)}))),g.apply(this,arguments)}function w(e,t,n){return v.apply(this,arguments)}function v(){return v=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)}))),v.apply(this,arguments)}function b(e){return x.apply(this,arguments)}function x(){return x=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"])("template/queryNestedTempFileExchange",{currentTemplateId:t});case 2:return n=e.sent,e.abrupt("return",Object(r["c"])(n));case 4:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function y(e){return C.apply(this,arguments)}function C(){return C=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)}))),C.apply(this,arguments)}function B(e){return S.apply(this,arguments)}function S(){return S=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)}))),S.apply(this,arguments)}function R(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"])("company/queryFileOnlineUrlByCompanyId",t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),k.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)}function F(e){return I.apply(this,arguments)}function I(){return I=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/queryProjArchiveHistoryTbByArchId",{archId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function N(e,t,n){return M.apply(this,arguments)}function M(){return M=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"])("file/setShareFile",{Id:t,IpfsCid:n,ModifyUserId:i});case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)}))),M.apply(this,arguments)}function _(e){return W.apply(this,arguments)}function W(){return W=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/updateProjArchiveHistory",t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}},b84f:function(e,t,n){},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}))},e9b0:function(e,t,n){},f34a:function(e,t,n){}}]);
- //# sourceMappingURL=chunk-35935fc9.a99ae5e3.js.map
|