分布式调度框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
34 KiB

webpackJsonp([12],{1045:function(t,e,n){"use strict";e.__esModule=!0;var i=n(123),s=d(n(1154)),a=d(n(646)),r=n(125),o=d(n(663)),u=d(n(670)),l=d(n(654)),c=d(n(650));function d(t){return t&&t.__esModule?t:{default:t}}e.default={name:"resource-list-index-FILE",data:function(){return{pageSize:10,pageNo:1,total:null,searchVal:"",isLoading:!1,fileResourcesList:[]}},props:{},methods:Object.assign({},(0,i.mapActions)("resource",["getResourcesListP"]),{_uploading:function(){(0,r.findComponentDownward)(this.$root,"roof-nav")._fileUpdate("FILE")},_onConditions:function(t){this.searchVal=t.searchVal,this.pageNo=1,this._getResourcesList()},_page:function(t){this.pageNo=t,this._getResourcesList()},_getResourcesList:function(t){var e=this;this.isLoading=!t,this.getResourcesListP({pageSize:this.pageSize,pageNo:this.pageNo,searchVal:this.searchVal,type:"FILE"}).then(function(t){e.fileResourcesList=t.totalList,e.total=t.total,e.isLoading=!1}).catch(function(t){e.isLoading=!1})},_updateList:function(){this.pageSize=10,this.pageNo=1,this.searchVal="",this._getResourcesList()},_routerView:function(){return"resource-file-details"===this.$route.name}}),watch:{},created:function(){},mounted:function(){this._getResourcesList()},components:{mSecondaryMenu:l.default,mListConstruction:c.default,mConditions:u.default,mList:s.default,mSpin:a.default,mNoData:o.default}}},1046:function(t,e,n){"use strict";e.__esModule=!0;var i=c(n(28)),s=c(n(1155)),a=n(123);n(668);var r=n(807),o=n(735),u=n(701),l=c(n(226));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"file-manage-list",data:function(){return{list:[]}},props:{fileResourcesList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,a.mapActions)("resource",["deleteResource"]),{_edit:function(t){l.default.setItem("file",t.alias+"|"+t.size),this.$router.push({path:"/resource/file/edit/"+t.id})},_go:function(t){l.default.setItem("file",t.alias+"|"+t.size),this.$router.push({path:"/resource/file/list/"+t.id})},_downloadFile:function(t){(0,u.downloadFile)("/escheduler/resources/download",{id:t.id})},_rtSize:function(t){return(0,o.bytesToSize)(parseInt(t))},_closeDelete:function(t){this.$refs["poptip-"+t][0].doClose()},_delete:function(t,e){var n=this;this.deleteResource({id:t.id}).then(function(t){n.$refs["poptip-"+e][0].doClose(),n.list.splice(e,1),n.$message.success(t.msg)}).catch(function(t){n.$refs["poptip-"+e][0].doClose(),n.$message.error(t.msg||"")})},_rename:function(t,e){var n=this,i=this.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(a){return a(s.default,{on:{onUpDate:function(t){n.$set(n.list,e,t),i.remove()},close:function(){i.remove()}},props:{item:t}})}})},_rtDisb:function(t){var e=t.alias,n=t.size,s=e.lastIndexOf("."),a=e.substring(s,e.length),o=i.default.includes(r.filtTypeArr,i.default.trimStart(a,"."));return!(o=!!(o&&n<1e6))}}),watch:{fileResourcesList:function(t){var e=this;this.list=[],setTimeout(function(){e.list=t})}},created:function(){},mounted:function(){this.list=this.fileResourcesList},components:{}}},1047:function(t,e,n){"use strict";e.__esModule=!0;var i=o(n(36)),s=o(n(91)),a=o(n(223)),r=o(n(224));function o(t){return t&&t.__esModule?t:{default:t}}e.default={name:"resource-file-rename",data:function(){return{store:s.default,desc:"",name:""}},props:{item:Object},methods:{_ok:function(t){var e=this;this._verification().then(function(t){return e.store.dispatch("resource/resourceVerifyName",{name:e.name,type:"FILE"})}).then(function(t){return e.store.dispatch("resource/resourceRename",{name:e.name,desc:e.desc,id:e.item.id,type:"FILE"})}).then(function(n){e.$message.success(n.msg),e.$emit("onUpDate",n.data),t()}).catch(function(n){t(),e.$message.error(n.msg||"")})},_verification:function(){var t=this;return new Promise(function(e,n){t.name?e():n({msg:""+i.default.$t("请输入资源名称")})})}},watch:{},created:function(){var t=this.item||{};t&&(this.name=t.alias,this.desc=t.desc)},mounted:function(){},components:{mPopup:a.default,mListBoxF:r.default}}},1154:function(t,e,n){"us
//# sourceMappingURL=12.864692a.js.map