From f8f5c81ed54f4775440338ca76e62136f33b8bd0 Mon Sep 17 00:00:00 2001 From: Jiang Peng <2622360564@qq.com> Date: Fri, 26 Apr 2024 14:16:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E8=A1=A8(=E5=88=9D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/etl/dictionary.js | 59 ++ src/api/etl/source.js | 93 --- .../dashboard/OverallAssetStructure.vue | 105 +-- .../dashboard/OverallSpecificAssets.vue | 126 ++-- src/views/etl/datasource/index.vue | 612 ++++-------------- 5 files changed, 300 insertions(+), 695 deletions(-) create mode 100644 src/api/etl/dictionary.js delete mode 100644 src/api/etl/source.js diff --git a/src/api/etl/dictionary.js b/src/api/etl/dictionary.js new file mode 100644 index 0000000..44d54a3 --- /dev/null +++ b/src/api/etl/dictionary.js @@ -0,0 +1,59 @@ +import request from '@/utils/request' + +// 查询【请填写功能名称】列表 +export function listDictionary(query) { + return request({ + url: '/etl/dictionary/list', + method: 'get', + params: query + }) +} + +// 查询【请填写功能名称】详细 +export function getDictionary(id) { + return request({ + url: '/etl/dictionary/' + id, + method: 'get' + }) +} + +// 根据key删除字典详细 +export function deleteDictionary(id) { + return request({ + url: '/etl/dictionary/DeleteDictionary?id=' + id, + method: 'get' + }) +} + +// 新增【请填写功能名称】 +export function addDictionary(data) { + return request({ + url: '/etl/dictionary', + method: 'post', + data: data + }) +} + +// 修改【请填写功能名称】 +export function updateDictionary(data) { + return request({ + url: '/etl/dictionary', + method: 'put', + data: data + }) +} + +// 删除【请填写功能名称】 +export function delDictionary(id) { + return request({ + url: '/etl/dictionary/' + id, + method: 'delete' + }) +} + +export function getDictionaryList(id) { + return request({ + url: '/etl/dictionary/GetDictionaryList?dataSourceId=' + id, + method: 'get' + }) +} diff --git a/src/api/etl/source.js b/src/api/etl/source.js deleted file mode 100644 index 94681ed..0000000 --- a/src/api/etl/source.js +++ /dev/null @@ -1,93 +0,0 @@ -import request from '@/utils/request' - -// 查询【请填写功能名称】列表 -export function listSource(query) { - return request({ - url: '/etl/source/list', - method: 'get', - params: query - }) -} - -export function dataAssetList(data) { - return request({ - url: '/etl/source/DataAssetList', - method: 'post', - data - }) -} - -export function assetModelList(data) { - return request({ - url: '/etl/source/AssetModelList', - method: 'post', - data - }) -} - -export function assetsList(data) { - return request({ - url: '/etl/source/AssetsList', - method: 'post', - data - }) -} - -export function synchronousData(data) { - return request({ - url: '/etl/source/SynchronousData', - method: 'post', - data - }) -} - -export function structureList(data) { - return request({ - url: '/etl/source/StructureList', - method: 'post', - data - }) -} - -// 查询【请填写功能名称】详细 -export function getSource(id) { - return request({ - url: '/etl/source/' + id, - method: 'get' - }) -} - -// 新增【请填写功能名称】 -export function addSource(data) { - return request({ - url: '/etl/source', - method: 'post', - data: data - }) -} - -// 测试连接 -export function testConnection(data) { - return request({ - url: '/etl/source/TestConnection', - method: 'post', - data: data - }) -} - -// 修改【请填写功能名称】 -export function updateSource(data) { - return request({ - url: '/etl/source', - method: 'put', - data: data - }) -} - -// 删除【请填写功能名称】 -export function delSource(id) { - return request({ - url: '/etl/source/' + id, - method: 'delete' - }) -} diff --git a/src/views/etl/assets/dashboard/OverallAssetStructure.vue b/src/views/etl/assets/dashboard/OverallAssetStructure.vue index ba3d412..746bb60 100644 --- a/src/views/etl/assets/dashboard/OverallAssetStructure.vue +++ b/src/views/etl/assets/dashboard/OverallAssetStructure.vue @@ -150,13 +150,13 @@ - + - + @@ -173,19 +173,28 @@ +