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
53 KiB
2 lines
53 KiB
6 years ago
|
webpackJsonp([13],{1111:function(t,e,n){"use strict";e.__esModule=!0;var r=p(n(30)),o=n(123),a=p(n(1225)),i=p(n(701)),s=n(126),u=p(n(696)),c=p(n(848)),f=p(n(750)),l=p(n(697));function p(t){return t&&t.__esModule?t:{default:t}}e.default={name:"resource-list-index-UDF",data:function(){return{total:null,isLoading:!1,udfResourcesList:[],searchParams:{pageSize:10,pageNo:1,searchVal:"",type:"UDF"}}},mixins:[c.default],props:{},methods:Object.assign({},(0,o.mapActions)("resource",["getResourcesListP"]),{_uploading:function(){(0,s.findComponentDownward)(this.$root,"roof-nav")._fileUpdate("UDF")},_onConditions:function(t){this.searchParams=r.default.assign(this.searchParams,t),this.searchParams.pageNo=1},_page:function(t){this.searchParams.pageNo=t},_updateList:function(){this.searchParams.pageNo=1,this.searchParams.searchVal="",this._debounceGET()},_getList:function(t){var e=this;this.isLoading=!t,this.getResourcesListP(this.searchParams).then(function(t){e.udfResourcesList=[],e.udfResourcesList=t.totalList,e.total=t.total,e.isLoading=!1}).catch(function(t){e.isLoading=!1})}}),watch:{$route:function(t){this.searchParams.pageNo=r.default.isEmpty(t.query)?1:t.query.pageNo}},created:function(){},mounted:function(){},components:{mListConstruction:l.default,mConditions:f.default,mList:a.default,mSpin:i.default,mNoData:u.default}}},1112:function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(123),a=n(1226),i=(r=a)&&r.__esModule?r:{default:r},s=n(863),u=n(879);e.default={name:"udf-manage-list",data:function(){return{list:[]}},props:{udfResourcesList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,o.mapActions)("resource",["deleteResource"]),{_downloadFile:function(t){(0,s.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,r=this.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(o){return o(i.default,{on:{onUpDate:function(t){n.$set(n.list,e,t),r.remove()},close:function(){r.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:{}}},1113:function(t,e,n){"use strict";e.__esModule=!0;var r=s(n(36)),o=s(n(92)),a=s(n(223)),i=s(n(224));function s(t){return t&&t.__esModule?t:{default:t}}e.default={name:"resource-udf-rename",data:function(){return{store:o.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:""+r.default.$t("Please enter resource name")})})}},watch:{},created:function(){var t=this.item||{};t&&(this.name=t.alias,this.desc=t.desc)},mounted:function(){},components:{mPopup:a.default,mListBoxF:i.default}}},1225:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1112),o=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,function(){return r[t]})}(a);var i=n(1228),s=n(29)(o.a,i.a,!1,null,null,null);e.default=s.exports},1226:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1113),o=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,function(){return r[t]})}(a);var i=n(1227),s=n(29)(o.a,i.a,!1,null,null,null);e.default=s.exports},1227:funct
|
||
|
//# sourceMappingURL=13.a8f5ee9.js.map
|