From ef59ab85009d75fa74707d021a47951142aa1999 Mon Sep 17 00:00:00 2001 From: Magnus Wang Date: Tue, 8 Feb 2022 13:42:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=86=E5=8C=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AFmap&=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/common/service.js | 14 +++ .../dataSourceManage/components/editModal.vue | 4 +- .../jobManagement/components/dataSource.vue | 2 + .../jobManagement/components/dyncRender.vue | 110 ++++++++++++++++-- .../jobManagement/components/executionLog.vue | 8 +- .../jobManagement/components/jobDetail.vue | 3 + .../components/selectDataSource.vue | 4 +- 7 files changed, 132 insertions(+), 13 deletions(-) diff --git a/web/src/common/service.js b/web/src/common/service.js index 18c10fd86..15cc624b7 100644 --- a/web/src/common/service.js +++ b/web/src/common/service.js @@ -1,5 +1,6 @@ // 服务端接口管理 import { request } from "@fesjs/fes"; +import { BASE_URL } from "@/common/constants"; //////////////////////////////////////////////////////////////////// export const getProjectList = (name) => { return request("/projects", { name }, { method: "POST" }); @@ -378,4 +379,17 @@ export const getTaskExecLog = (params) => { method: "GET", } ); +} + +// 获取分区信息 +export const getPartitionInfo = (params) => { + if (!params.source) return + const url = params.source.split(BASE_URL)[1] + return request( + `${url}?dataSourceId=${params.dataSourceId}&database=${params.database}&table=${params.table}&_=${Math.random()}`, + {}, + { + method: "GET", + } + ); } \ No newline at end of file diff --git a/web/src/pages/dataSourceManage/components/editModal.vue b/web/src/pages/dataSourceManage/components/editModal.vue index d20147cf0..01e80e47e 100644 --- a/web/src/pages/dataSourceManage/components/editModal.vue +++ b/web/src/pages/dataSourceManage/components/editModal.vue @@ -172,7 +172,7 @@ export default { dataSourceName: formState.dataSourceName, dataSourceDesc: formState.dataSourceDesc || "", labels: formState.labels || "", - comment: formState.comment || "", + comment: formState.comment || "更新", connectParams: { ...connectParams } @@ -187,7 +187,7 @@ export default { dataSourceName: formState.dataSourceName, dataSourceDesc: formState.dataSourceDesc || "", labels: formState.labels || "", - comment: formState.comment || "", + comment: formState.comment || "更新", connectParams: { ...connectParams } diff --git a/web/src/pages/jobManagement/components/dataSource.vue b/web/src/pages/jobManagement/components/dataSource.vue index 90241d36c..708a9573c 100644 --- a/web/src/pages/jobManagement/components/dataSource.vue +++ b/web/src/pages/jobManagement/components/dataSource.vue @@ -62,6 +62,7 @@ v-bind:param="item" @updateInfo="updateSourceParams" :style="styleObject" + :data="dataSource.dataSourceIds.source" /> @@ -108,6 +109,7 @@ v-bind:param="item" @updateInfo="updateSinkParams" :style="styleObject" + :data="dataSource.dataSourceIds.sink" /> diff --git a/web/src/pages/jobManagement/components/dyncRender.vue b/web/src/pages/jobManagement/components/dyncRender.vue index 7d604f032..1b87893b5 100644 --- a/web/src/pages/jobManagement/components/dyncRender.vue +++ b/web/src/pages/jobManagement/components/dyncRender.vue @@ -9,7 +9,31 @@ :style="style" > -