diff --git a/src/views/etl/switch/index.vue b/src/views/etl/switch/index.vue index 1258171..501272b 100644 --- a/src/views/etl/switch/index.vue +++ b/src/views/etl/switch/index.vue @@ -208,6 +208,8 @@ import {selectSourceList} from "@/api/etl/switch"; import {selectSourceExport} from "@/api/etl/switch"; import {connectionTest} from "@/api/etl/switch"; import {insertAdd} from "@/api/etl/switch"; +import {getInfo} from "@/api/etl/switch"; + export default { //import引入的组件需要注入到对象中才能使用" components: {}, @@ -232,6 +234,14 @@ export default { watch: {}, //方法集合", methods: { + //测试连接 + text(row){ + connectionTest(row).then(res=>{ + if (res.code===200){ + alert("测试连接成功"); + } + }) + }, insertAdd(){ this.dialogFormVisible=true },