diff --git a/src/views/etl/switch/index.vue b/src/views/etl/switch/index.vue index 501272b..1954cf5 100644 --- a/src/views/etl/switch/index.vue +++ b/src/views/etl/switch/index.vue @@ -97,9 +97,9 @@
@@ -234,16 +234,33 @@ export default { watch: {}, //方法集合", methods: { + textP(){ + connectionTest(this.sourceAddReq).then(res=>{ + if (res.code===200){ + alert("测试连接成功") + }else{ + alert("连接失败") + } + }) + }, + addSource(){ + insertAdd(this.sourceAddReq).then(res=>{ + + }) + }, //测试连接 text(row){ connectionTest(row).then(res=>{ if (res.code===200){ alert("测试连接成功"); + }else { + alert("测试连接失败"); } }) }, insertAdd(){ this.dialogFormVisible=true + }, findSelectSourceList(){ selectSourceList(this.SourceReq).then(res=>{