From 058e5859b10e12b8ac675790ce757ae76cc109e1 Mon Sep 17 00:00:00 2001 From: lwj <3529558005@qq.com> Date: Thu, 22 Aug 2024 21:01:18 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=BA=90=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/etl/switch.js | 11 ++++++++++- src/views/etl/switch/index.vue | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/api/etl/switch.js b/src/api/etl/switch.js index c8222f8..ae099e8 100644 --- a/src/api/etl/switch.js +++ b/src/api/etl/switch.js @@ -18,7 +18,6 @@ export function selectSourceExport(data){ }) } - //新增 export function insertAdd(data){ return request({ @@ -38,4 +37,14 @@ export function getInfo(id){ } +//测试连接 +export function connectionTest(data){ + return request({ + url: "/source/source/connectionTest", + method: "post", + data:data + }) +} + + diff --git a/src/views/etl/switch/index.vue b/src/views/etl/switch/index.vue index b80f21a..1258171 100644 --- a/src/views/etl/switch/index.vue +++ b/src/views/etl/switch/index.vue @@ -206,6 +206,7 @@ //例如:import 《组件名称》 from '《组件路径》, import {selectSourceList} from "@/api/etl/switch"; import {selectSourceExport} from "@/api/etl/switch"; +import {connectionTest} from "@/api/etl/switch"; import {insertAdd} from "@/api/etl/switch"; export default { //import引入的组件需要注入到对象中才能使用" 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 2/5] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=BA=90=E8=BF=9E=E6=8E=A5=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=95=88=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 }, From 4c468c3aa40b3e4d2e216c6716ed309d5d24aebb Mon Sep 17 00:00:00 2001 From: lwj <3529558005@qq.com> Date: Thu, 22 Aug 2024 21:52:14 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E5=88=97=E8=A1=A8=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/etl/switch/index.vue | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) 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=>{ From c7bad19389c0c7d943309f1cf4411eaa4258993a Mon Sep 17 00:00:00 2001 From: lwj <3529558005@qq.com> Date: Thu, 22 Aug 2024 21:55:44 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E5=88=97=E8=A1=A8=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/etl/switch/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/etl/switch/index.vue b/src/views/etl/switch/index.vue index 1954cf5..77411c8 100644 --- a/src/views/etl/switch/index.vue +++ b/src/views/etl/switch/index.vue @@ -185,7 +185,7 @@ icon="el-icon-aim" size="mini" type="text" - @click="text(scope.row)">测试连接 + @click="textConnect(scope.row)">测试连接 @@ -249,7 +249,7 @@ export default { }) }, //测试连接 - text(row){ + textConnect(row){ connectionTest(row).then(res=>{ if (res.code===200){ alert("测试连接成功"); From 4aba513cc43d33bfa26144b5e1516d2f3497d531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E8=B1=AA?= <1437200870@qq.com> Date: Thu, 22 Aug 2024 22:14:46 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/task/task.js | 41 ++++ src/views/task/task/index.vue | 370 ++++++++++++++++++++++++++++++++++ 2 files changed, 411 insertions(+) create mode 100644 src/api/task/task.js create mode 100644 src/views/task/task/index.vue diff --git a/src/api/task/task.js b/src/api/task/task.js new file mode 100644 index 0000000..23b48d2 --- /dev/null +++ b/src/api/task/task.js @@ -0,0 +1,41 @@ +import request from '@/utils/request' + +//查询规则引擎列表 +export function selectEngineList(data){ + return request({ + url: "/task/task/list", + method: "get", + data:data + }) +} + +//导出 +export function selectSourceExport(data){ + return request({ + url: "/source/source/export", + method: "POST", + data:data + }) +} + + +//新增 +export function insertAdd(data){ + return request({ + url: "/source/source/insert", + method: "get", + data:data + }) +} + + +//获取基本信息 +export function getInfo(id){ + return request({ + url: "/source/source/id", + method: "get", + }) +} + + + diff --git a/src/views/task/task/index.vue b/src/views/task/task/index.vue new file mode 100644 index 0000000..7839729 --- /dev/null +++ b/src/views/task/task/index.vue @@ -0,0 +1,370 @@ + + + +