分布式调度框架。
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
59 KiB

webpackJsonp([10],{1114:function(t,e,n){"use strict";e.__esModule=!0;var r=p(n(30)),o=n(123),a=p(n(1230)),i=p(n(1116)),s=p(n(701)),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:"udf-function-index",data:function(){return{total:null,isLoading:!1,udfFuncList:[],searchParams:{pageSize:10,pageNo:1,searchVal:""}}},mixins:[c.default],props:{},methods:Object.assign({},(0,o.mapActions)("resource",["getUdfFuncListP"]),{_onConditions:function(t){this.searchParams=r.default.assign(this.searchParams,t),this.searchParams.pageNo=1},_page:function(t){this.searchParams.pageNo=t},_create:function(){var t=this,e=this.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(n){return n(i.default,{on:{onUpdate:function(){t._updateList(),e.remove()},close:function(){e.remove()}},props:{}})}})},_updateList:function(){this.searchParams.pageNo=1,this.searchParams.searchVal="",this._debounceGET()},_getList:function(t){var e=this;this.isLoading=!t,this.getUdfFuncListP(this.searchParams).then(function(t){e.udfFuncList=[],e.udfFuncList=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:s.default,mCreateUdf:i.default,mNoData:u.default}}},1115:function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(123),a=n(1116),i=(r=a)&&r.__esModule?r:{default:r};e.default={name:"udf-manage-list",data:function(){return{list:[]}},props:{udfFuncList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,o.mapActions)("resource",["deleteUdf"]),{_closeDelete:function(t){this.$refs["poptip-"+t][0].doClose()},_delete:function(t,e){var n=this;this.deleteUdf({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||"")})},_edit:function(t){var e=this,n=this.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(r){return r(i.default,{on:{onUpdate:function(){e.$emit("on-update"),n.remove()},close:function(){n.remove()}},props:{item:t}})}})}}),watch:{udfFuncList:function(t){var e=this;this.list=[],setTimeout(function(){e.list=t})}},created:function(){},mounted:function(){this.list=this.udfFuncList},components:{}}},1116:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1117),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(1235),s=n(29)(o.a,i.a,!1,null,null,null);e.default=s.exports},1117:function(t,e,n){"use strict";e.__esModule=!0;var r=c(n(30)),o=c(n(36)),a=c(n(92)),i=c(n(223)),s=c(n(224)),u=c(n(1231));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"udf-create",data:function(){return{store:a.default,type:"HIVE",funcName:"",className:"",argTypes:"",database:"",desc:"",resourceId:{},udfResourceList:[],isUpdate:!1,upDisabled:!1}},props:{item:Object},methods:{_ok:function(){var t=this;this.$refs.popup.spinnerLoading=!0,this._validation()?this._verifyUdfFuncName().then(function(e){t._createUdfFunc().then()}).then(function(e){setTimeout(function(){t.$refs.popup.spinnerLoading=!1},800)}).catch(function(e){t.$refs.popup.spinnerLoading=!1}):this.$refs.popup.spinnerLoading=!1},_createUdfFunc:function(){var t=this;return new Promise(function(e,n){var r={type:t.type,funcName:t.funcName,className:t.className,argTypes:t.argTypes,database:t.database,desc:t.desc,resourceId:t.resourceId.id},o=t.item&&t.item.id||null;o&&(r.id=o),t.store.dispatch("resource/"+(o?"updateUdfFunc":"createUdfFunc"),r).then(function(n){t.$emit("onUpdate",r),t.$message.success(n.msg),e()}).catch(function(e){t.$message.error(e.msg||""),n(e)})})},_onUpdatePresent:function(){this.$refs.popup.apDisabled=!0,this.upDisabled=!0},_getUdfList:fu
//# sourceMappingURL=10.90da74f.js.map