From c7317121adfb1f129f3272851aa38fdc20008053 Mon Sep 17 00:00:00 2001 From: lwj <3529558005@qq.com> Date: Sat, 24 Aug 2024 01:51:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E8=B5=84=E4=BA=A7=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/etl/switch.js | 9 +++++++++ src/views/etl/switch/index.vue | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/src/api/etl/switch.js b/src/api/etl/switch.js index c299886..1a9c51f 100644 --- a/src/api/etl/switch.js +++ b/src/api/etl/switch.js @@ -37,6 +37,15 @@ export function getInfo(id){ } +//测试连接 +export function structure(data){ + return request({ + url: "/source/source/structure", + method: "post", + data:data + }) +} + //测试连接 export function connectionTest(data){ return request({ diff --git a/src/views/etl/switch/index.vue b/src/views/etl/switch/index.vue index 741386b..dadf2a0 100644 --- a/src/views/etl/switch/index.vue +++ b/src/views/etl/switch/index.vue @@ -268,6 +268,7 @@ import {connectionTest} from "@/api/etl/switch"; import {insertAdd} from "@/api/etl/switch"; import {deleteSource} from "@/api/etl/switch"; import {getInfo} from "@/api/etl/switch"; +import {structure} from "@/api/etl/switch"; export default { //import引入的组件需要注入到对象中才能使用" @@ -294,6 +295,13 @@ export default { watch: {}, //方法集合", methods: { + struceure(row){ + structure(row).then(res=>{ + if (res ===200){ + alert("同步资产成功") + } + }) + }, deleteSourceByIds(){ deleteSource(this.ids).then(res=>{ if(res.code===200){