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
60 KiB
2 lines
60 KiB
6 years ago
|
webpackJsonp([7],{1120:function(t,e,r){"use strict";e.__esModule=!0;var n=p(r(30)),o=r(123),a=p(r(1239)),i=p(r(701)),s=p(r(696)),u=p(r(1245)),c=p(r(848)),l=p(r(750)),f=p(r(697));function p(t){return t&&t.__esModule?t:{default:t}}e.default={name:"datasource-indexP",data:function(){return{isLoading:!0,total:20,datasourcesList:[],searchParams:{pageSize:10,pageNo:1,searchVal:""}}},mixins:[c.default],props:{},methods:Object.assign({},(0,o.mapActions)("datasource",["getDatasourcesListP"]),{_create:function(t){var e=this,r=this.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(n){return n(u.default,{on:{onUpdate:function(){e._debounceGET("false"),r.remove()},close:function(){r.remove()}},props:{item:t}})}})},_page:function(t){this.searchParams.pageNo=t},_onConditions:function(t){this.searchParams=n.default.assign(this.searchParams,t),this.searchParams.pageNo=1},_getList:function(t){var e=this;this.isLoading=!t,this.getDatasourcesListP(this.searchParams).then(function(t){e.datasourcesList=[],e.datasourcesList=t.totalList,e.total=t.total,e.isLoading=!1}).catch(function(t){e.isLoading=!1})}}),watch:{$route:function(t){this.searchParams.pageNo=n.default.isEmpty(t.query)?1:t.query.pageNo}},created:function(){},mounted:function(){},components:{mList:a.default,mConditions:l.default,mSpin:i.default,mListConstruction:f.default,mNoData:s.default}}},1121:function(t,e,r){"use strict";e.__esModule=!0;var n,o=r(123),a=r(126),i=r(1240),s=(n=i)&&n.__esModule?n:{default:n};e.default={name:"datasource-list",data:function(){return{list:[]}},props:{datasourcesList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,o.mapActions)("datasource",["deleteDatasource"]),{_closeDelete:function(t){this.$refs["poptip-delete-"+t][0].doClose()},_delete:function(t,e){var r=this;this.$refs["poptip-delete-"+e][0].doClose(),this.deleteDatasource({id:t.id}).then(function(t){r.list.splice(e,1),r.$message.success(t.msg)}).catch(function(t){r.$message.error(t.msg||"")})},_edit:function(t){(0,a.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:s.default}}},1122:function(t,e,r){"use strict";e.__esModule=!0;var n=r(879);e.default={name:"tooltips",data:function(){return{}},props:{JSON:String,id:Number},mounted:function(){$("#result-"+this.id).html((0,n.syntaxHighlight)(this.JSON))}}},1123:function(t,e,r){"use strict";e.__esModule=!0;var n=u(r(36)),o=u(r(92)),a=r(879),i=u(r(223)),s=u(r(224));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"create-datasource",data:function(){return{store:o.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("Please enter format")+' {"key1":"value1","key2":"value2"...} '+n.default.$t("connection parameter")},_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,r){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||""),r(e)}):e()})},_verification:function(){return this.name?this.host?this.port?this.userName?this.database?!(this.other&&!(0,a.isJson)(this.other
|
||
|
//# sourceMappingURL=7.073bd0f.js.map
|