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" > -