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

webpackJsonp([11],{1055:function(t,e,n){"use strict";e.__esModule=!0;var s=n(123),a=d(n(1174)),i=d(n(1057)),o=d(n(646)),r=d(n(663)),u=d(n(670)),c=d(n(654)),l=d(n(650));function d(t){return t&&t.__esModule?t:{default:t}}e.default={name:"udf-function-index",data:function(){return{pageSize:10,pageNo:1,total:20,searchVal:"",isLoading:!1,udfFuncList:[]}},props:{},methods:Object.assign({},(0,s.mapActions)("resource",["getUdfFuncListP"]),{_onConditions:function(t){this.searchVal=t.searchVal,this.pageNo=1,this._getUdfFuncListP()},_page:function(t){this.pageNo=t,this._getUdfFuncListP()},_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.pageSize=10,this.pageNo=1,this.searchVal="",this._getUdfFuncListP()},_getUdfFuncListP:function(t){var e=this;this.isLoading=!t,this.getUdfFuncListP({pageSize:this.pageSize,pageNo:this.pageNo,searchVal:this.searchVal}).then(function(t){e.udfFuncList=t.totalList,e.total=t.total,e.isLoading=!1}).catch(function(t){e.isLoading=!1})}}),watch:{},created:function(){},mounted:function(){this._getUdfFuncListP()},components:{mSecondaryMenu:c.default,mListConstruction:l.default,mConditions:u.default,mList:a.default,mSpin:o.default,mCreateUdf:i.default,mNoData:r.default}}},1056:function(t,e,n){"use strict";e.__esModule=!0;var s=n(123);n(668);var a,i=n(1057),o=(a=i)&&a.__esModule?a:{default:a};e.default={name:"udf-manage-list",data:function(){return{list:[]}},props:{udfFuncList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,s.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(s){return s(o.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:{}}},1057:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(1058),a=n.n(s);for(var i in s)"default"!==i&&function(t){n.d(e,t,function(){return s[t]})}(i);var o=n(1179),r=n(27)(a.a,o.a,!1,null,null,null);e.default=r.exports},1058:function(t,e,n){"use strict";e.__esModule=!0;var s=c(n(28)),a=c(n(36)),i=c(n(91)),o=c(n(223)),r=c(n(224)),u=c(n(1175));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"udf-create",data:function(){return{store:i.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 s={type:t.type,funcName:t.funcName,className:t.className,argTypes:t.argTypes,database:t.database,desc:t.desc,resourceId:t.resourceId.id},a=t.item&&t.item.id||null;a&&(s.id=a),t.store.dispatch("resource/"+(a?"updateUdfFunc":"createUdfFunc"),s).then(function(n){t.$emit("onUpdate",s),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:function(){var t=this;return new Promise(functio
//# sourceMappingURL=11.078cbab.js.map