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
32 KiB
2 lines
32 KiB
6 years ago
|
webpackJsonp([13],{1052:function(t,e,n){"use strict";e.__esModule=!0;var s=n(123),i=d(n(1169)),a=d(n(646)),o=n(125),r=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-UDF",data:function(){return{pageSize:10,pageNo:1,total:null,searchVal:"",isLoading:!1,udfResourcesList:[]}},props:{},methods:Object.assign({},(0,s.mapActions)("resource",["getResourcesListP"]),{_uploading:function(){(0,o.findComponentDownward)(this.$root,"roof-nav")._fileUpdate("UDF")},_onConditions:function(t){this.searchVal=t.searchVal,this.pageNo=1,this._getResourcesListP()},_page:function(t){this.pageNo=t,this._getResourcesListP()},_updateList:function(){this.pageSize=10,this.pageNo=1,this.searchVal="",this._getResourcesListP()},_getResourcesListP:function(t){var e=this;this.isLoading=!t,this.getResourcesListP({pageSize:this.pageSize,pageNo:this.pageNo,searchVal:this.searchVal,type:"UDF"}).then(function(t){e.udfResourcesList=t.totalList,e.total=t.total,e.isLoading=!1}).catch(function(t){e.isLoading=!1})}}),watch:{},created:function(){},mounted:function(){this._getResourcesListP()},components:{mSecondaryMenu:l.default,mListConstruction:c.default,mConditions:u.default,mList:i.default,mSpin:a.default,mNoData:r.default}}},1053:function(t,e,n){"use strict";e.__esModule=!0;var s=n(123);n(668);var i,a=n(1170),o=(i=a)&&i.__esModule?i:{default:i},r=n(701),u=n(735);e.default={name:"udf-manage-list",data:function(){return{list:[]}},props:{udfResourcesList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,s.mapActions)("resource",["deleteResource"]),{_downloadFile:function(t){(0,r.downloadFile)("/escheduler/resources/download",{id:t.id})},_rtSize:function(t){return(0,u.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,s=this.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(i){return i(o.default,{on:{onUpDate:function(t){n.$set(n.list,e,t),s.remove()},close:function(){s.remove()}},props:{item:t}})}})}}),watch:{udfResourcesList:function(t){var e=this;this.list=[],setTimeout(function(){e.list=t})}},created:function(){},mounted:function(){this.list=this.udfResourcesList},components:{}}},1054:function(t,e,n){"use strict";e.__esModule=!0;var s=r(n(36)),i=r(n(91)),a=r(n(223)),o=r(n(224));function r(t){return t&&t.__esModule?t:{default:t}}e.default={name:"resource-udf-rename",data:function(){return{store:i.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:"UDF"})}).then(function(t){return e.store.dispatch("resource/resourceRename",{name:e.name,desc:e.desc,id:e.item.id,type:"UDF"})}).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:""+s.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:o.default}}},1169:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(1053),i=n.n(s);for(var a in s)"default"!==a&&function(t){n.d(e,t,function(){return s[t]})}(a);var o=n(1172),r=n(27)(i.a,o.a,!1,null,null,null);e.default=r.exports},1170:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(1054),i=n.n(s);for(var a in s)"default"!==a&&function(t){n.d(e,t,function(){return s[t]})}(a);var o=n(1171),r=n(27)(i.a,o.a,!1,null,null,null);e.default=r.exports},1171:function(t,e,n){"use strict";var s={render:functi
|
||
|
//# sourceMappingURL=13.7e1b794.js.map
|