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

webpackJsonp([17],{1061:function(t,e,s){"use strict";e.__esModule=!0;var n=s(123),a=l(s(1183)),i=l(s(646)),o=l(s(663)),r=l(s(1189)),u=l(s(670)),c=l(s(650));function l(t){return t&&t.__esModule?t:{default:t}}e.default={name:"datasource-indexP",data:function(){return{isLoading:!0,pageSize:10,pageNo:1,total:20,searchVal:"",datasourcesList:[]}},props:{},methods:Object.assign({},(0,n.mapActions)("datasource",["getDatasourcesListP"]),{_create:function(t){var e=this,s=this.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(n){return n(r.default,{on:{onUpdate:function(){e._getDatasourcesListP("false"),s.remove()},close:function(){s.remove()}},props:{item:t}})}})},_page:function(t){this.pageNo=t,this._getDatasourcesListP()},_onConditions:function(t){this.searchVal=t.searchVal,this.pageNo=1,this._getDatasourcesListP("false")},_getDatasourcesListP:function(t){var e=this;this.isLoading=!t,this.getDatasourcesListP({pageSize:this.pageSize,pageNo:this.pageNo,searchVal:this.searchVal}).then(function(t){e.datasourcesList=t.totalList,e.total=t.total,e.isLoading=!1}).catch(function(t){e.isLoading=!1})}}),watch:{},created:function(){this._getDatasourcesListP()},mounted:function(){},components:{mList:a.default,mConditions:u.default,mSpin:i.default,mListConstruction:c.default,mNoData:o.default}}},1062:function(t,e,s){"use strict";e.__esModule=!0;var n=s(123);s(668);var a,i=s(125),o=s(1184),r=(a=o)&&a.__esModule?a:{default:a};e.default={name:"datasource-list",data:function(){return{list:[]}},props:{datasourcesList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,n.mapActions)("datasource",["deleteDatasource"]),{_closeDelete:function(t){this.$refs["poptip-delete-"+t][0].doClose()},_delete:function(t,e){var s=this;this.$refs["poptip-delete-"+e][0].doClose(),this.deleteDatasource({id:t.id}).then(function(t){s.list.splice(e,1),s.$message.success(t.msg)}).catch(function(t){s.$message.error(t.msg||"")})},_edit:function(t){(0,i.findComponentDownward)(this.$root,"datasource-indexP")._create(t)}}),watch:{datasourcesList:function(t){var e=this;this.list=[],setTimeout(function(){e.list=t})}},created:function(){this.list=this.datasourcesList},mounted:function(){},components:{mTooltipsJSON:r.default}}},1063:function(t,e,s){"use strict";e.__esModule=!0;var n=s(735);e.default={name:"tooltips",data:function(){return{}},props:{JSON:String,id:Number},mounted:function(){$("#result-"+this.id).html((0,n.syntaxHighlight)(this.JSON))}}},1064:function(t,e,s){"use strict";e.__esModule=!0;var n=u(s(36)),a=u(s(91)),i=s(735),o=u(s(223)),r=u(s(224));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"create-datasource",data:function(){return{store:a.default,spinnerLoading:!1,type:"MYSQL",name:"",note:"",host:"",port:"",database:"",userName:"",password:"",other:"",testLoading:!1}},props:{item:Object},methods:{_rtOtherPlaceholder:function(){return n.default.$t("请输入格式为")+' {"key1":"value1","key2":"value2"...} '+n.default.$t("连接参数")},_ok:function(){var t=this;this._verification()&&this._verifName().then(function(e){t._submit()})},_close:function(){this.$emit("close")},_rtParam:function(){return{type:this.type,name:this.name,note:this.note,host:this.host,port:this.port,database:this.database,userName:this.userName,password:this.password,other:this.other}},_testConnect:function(){var t=this;this._verification()&&(this.testLoading=!0,this.store.dispatch("datasource/connectDatasources",this._rtParam()).then(function(e){setTimeout(function(){t.$message.success(e.msg),t.testLoading=!1},800)}).catch(function(e){t.$message.error(e.msg||""),t.testLoading=!1}))},_verifName:function(){var t=this;return new Promise(function(e,s){t.name!==t.item.name?t.store.dispatch("datasource/verifyName",{name:t.name}).then(function(t){e()}).catch(function(e){t.$message.error(e.msg||""),s(e)}):e()})},_verification:function(){return this.name?this.host?this.port?this.userName?this.database?!(this.other&&!(0,i.isJson)(this.other))||(this.$message.warning(""+n.default.$t("jdbc连接参
//# sourceMappingURL=17.4aef6ba.js.map