From b63c456f1e2cde711d0e75fba201d37b89e3ea35 Mon Sep 17 00:00:00 2001 From: lwj <3529558005@qq.com> Date: Thu, 22 Aug 2024 21:45:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=BA=90=E8=BF=9E=E6=8E=A5=E6=B5=8B=E8=AF=95=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/etl/switch/index.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 },