1"use strict";(self["webpackChunkmat_cloud"]=self["webpackChunkmat_cloud"]||[]).push([[5464],{60326:function(e,t,s){s.r(t),s.d(t,{default:function(){return v}});var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"team-box"},[s("div",{staticClass:"tips"},[s("mp-svg",{attrs:{name:"matbox-header-bg"}}),s("div",{staticClass:"text"},[s("div",{staticClass:"title"},[e._v(" 使ç¨è¯´æ "),s("div",{staticClass:"flex items-center gap-6"},[s("div",{staticClass:"flex gap-2"},[s("div",{staticClass:"text-14 text-on-container-secondary font-normal"},[e._v("æå±åºåï¼")]),s("div",{staticClass:"text-14 text-on-container-normal font-normal"},[e._v(" "+e._s(e.formatDomain(e.team.domain))+" ")])]),e.fsUrl.urls.length>1?s("div",{staticClass:"selector flex items-center gap-2"},[s("div",{staticClass:"text-14 text-on-container-secondary font-normal"},[e._v(" çº¿è·¯ï¼ ")]),s("a-select",{attrs:{value:e.fsUrl.url,dropdownClassName:"matbox-route-selector"},on:{change:e.onFsURLChange}},e._l(e.fsUrl.urls,(function(t,a){return s("a-select-option",{key:a,attrs:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1)],1):e._e()])]),s("div",{staticClass:"more"},[e._v(" å¨ç©æ± äºç§ç¨ç任䏿ºå¨éç "),s("b",[e._v(e._s(e.mountPath))]),e._v(" ç®å½è®¿é®è¿äºæä»¶"),s("br"),e.team.isAdmin?[e._v(" å建è /管ç忝æè¯»åæéï¼æ®éæåæ¯æåªè¯»æé ")]:[e._v("å¦éå¨å¢éç½çåå ¥æ°æ®ï¼è¯·è系管çåè¿è¡æä½")]],2)])],1),s("div",{staticClass:"files-wrapper"},[s("div",{staticClass:"file-list-wrapper card"},[s("file-list",{attrs:{loading:e.loading,files:e.files,selectedRowKeys:e.selectedRowKeys,dir:e.dirPath,boxKey:e.team.boxKey,readonly:e.readonly,domain:e.team.domain,isTeam:!0},on:{"update:selectedRowKeys":function(t){e.selectedRowKeys=t},"update:selected-row-keys":function(t){e.selectedRowKeys=t},upload:e.onUpload,update:e.onUpdate}},[s("template",{slot:"title"},[e._v("å¢éç½ç")])],2)],1),e.readonly?e._e():s("div",{staticClass:"file-uploading-wrapper card"},[s("div",{staticClass:"usage"},[s("div",{staticClass:"detail"},[s("div",{staticClass:"title"},[s("mp-icon",{attrs:{name:"my-matbox"}}),e._v("å¢éç½ç")],1),s("div",{staticClass:"space-info"},[s("div",{staticClass:"used"},[e._v(e._s(e.volumeUsage.usageGB||"0")+"G")]),e._v(" / "),s("div",{staticClass:"total"},[e._v(e._s(e.volumeUsage.quotaGB||"0")+"G")])])]),s("mp-progress",{attrs:{percent:e.volumeUsage.usageGB/e.volumeUsage.quotaGB*100,showInfo:!1,status:"normal"}})],1),s("div",{staticClass:"uploader"},[s("uploader",{ref:"uploader",attrs:{boxKey:e.team.boxKey,domain:e.team.domain},on:{success:e.debouncedUpdate},scopedSlots:e._u([{key:"empty",fn:function(){return[e._v(" è¥éè¦ä¸ä¼ å¤ä¸ªæä»¶ææä»¶å¤¹ï¼è¯·å å缩æä¸ä¸ªæä»¶ ")]},proxy:!0}],null,!1,18662627)})],1)])])])},o=[],i=s(33014),r=s(20629),l=s(96486),n=s(91531),d=s(82203),c=s(49414),u=s(11192),m={components:{FileList:c.Z,Uploader:u.Z},props:["team"],data(){return{loading:!1,files:[],selectedRowKeys:[],holdFetchBox:!0}},computed:{...(0,r.Se)({getFSUrl:"getFSUrl"}),fsUrl(){return this.getFSUrl(this.team.boxKey,this.team.domain)},dirPath(){let{path:e="/"}=this.$route.query;return e.endsWith("/")||(e=`${e}/`),e},volumeUsage(){if(!this.team)return{};const e=Number((this.team.profile.limit.volumeCapMB/1024).toFixed(2)),t=Number((this.team.stat.usageMB/1024).toFixed(2));return{isBeyond:t>e,usageGB:t,quotaGB:e}},deadlineTime(){var e,t;const s=null===(e=this.currentPackage)||void 0===e||null===(t=e.deadlineTime)||void 0===t?void 0:t.seconds;return s?(0,n.p6)(1e3*s,"YYYY-MM-DD"):""},readonly(){return!this.team.perms.GroupVolumeWrite||this.team.expired},mountPath(){var e,t,s;return(null===(e=this.team.teamDesc)||void 0===e||null===(t=e.mountInfos)||void 0===t||null===(s=t[0])||void 0===s?void 0:s.dest)||"-"}},created(){this.refreshVolume(),this.fetchFiles(),this.fetchOrderBox(),this.debouncedUpdate=(0,l.debounce)(this.onUpdate,500)},watch:{$route(e,t){e.query.path!==t.query.path&&(this.selectedRowKeys=[],this.fetchFiles())}},methods:{...(0,r.nv)({fetchUserInfo:"fetchUserInfo",fetchBoxOrders:"product/fetchBoxOrders"}),...(0,r.OI)({setFsUrl:"SET_FS_URL"}),debounce:l.debounce,formatDomain:n.Rm,async refreshVolume(){this.team.perms.GroupVolumeWrite&&await d.Z.refreshVolume({boxKey:this.team.boxKey,domain:this.team.domain}),this.$emit("refresh")},async fetchFiles(){this.loading=!0;const e=await d.Z.getFiles({path:this.dirPath},{boxKey:this.team.boxKey,domain:this.team.domain,noErrMsg:!0});if(this.loading=!1,0===e.code){this.selectedRowKeys=[];const{infos:t}=e;this.files=t.map((e=>{const t=e.name,s=e.isDir,a=e.isDir?0:e.size,o=e.modTime.seconds;return{name:t,isDir:s,size:a,updateTime:o}}))}else 15===e.code?(i.Z.error("请æ±çè·¯å¾ä¸åå¨ï¼èªå¨è¿åå°æ ¹ç®å½"),this.changePath("/")):-4===e.code?e.msg.startsWith("timeout of")?i.Z.error("è¿æ¥è¶ æ¶ï¼è¯·å°è¯åæ¢çº¿è·¯ãå¦æè¿æé®é¢ï¼è¯·è系客æ"):"Network Error"===e.msg&&i.Z.error("æ¨çç½ç»å¥½åæç¹é®é¢, 请éè¯"):i.Z.error("æ æ³è·åå½åç®å½ä¸çæä»¶å表ï¼è¯·éè¯ï¼å¦é®é¢ä¾æ§åå¨ï¼è¯·è系客æ")},async fetchOrderBox(){await this.fetchBoxOrders(),this.holdFetchBox=!1},changePath(e){this.$router.push({path:this.$route.path,query:{...this.$route.query,path:e}})},onUpload(){this.$refs.uploader.upload()},onUpdate(){this.fetchFiles(),this.refreshVolume()},onFsURLChange(e){this.setFsUrl({url:e,boxKey:this.team.boxKey,domain:this.team.domain}),this.fetchFiles()}}},h=m,p=s(1001),f=(0,p.Z)(h,a,o,!1,null,"5a17d058",null),v=f.exports}}]); 2//# sourceMappingURL=5464.2450fb07.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.