From 88359ed9e6f4ef3627b6edbb35fa28c8a66495ca Mon Sep 17 00:00:00 2001 From: xiaohuang <1559741705@qq.com> Date: Sun, 28 Apr 2024 09:57:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E4=BA=A7=E7=BB=93=E6=9E=84=E6=B5=8B?= =?UTF-8?q?=E8=AF=957?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/etl/etl.js | 8 + src/views/etl/construction/AssetsBasic.vue | 5 +- src/views/etl/construction/AssetsModel.vue | 672 +++++++----- src/views/etl/construction/TableInfoModel.vue | 189 ++-- src/views/etl/construction/index.vue | 251 +++-- src/views/etl/info/index.vue | 983 +++++++++--------- 6 files changed, 1135 insertions(+), 973 deletions(-) diff --git a/src/api/etl/etl.js b/src/api/etl/etl.js index 4bf135c..15599a9 100644 --- a/src/api/etl/etl.js +++ b/src/api/etl/etl.js @@ -61,6 +61,14 @@ export function getTableTree(){ }) } +// 修改资产数据结构 +export function updateStructureInfo(data) { + return request({ + url: '/etl/info/updateStructureInfo', + method: 'put', + data + }) +} //获取字典 export function getDict(id){ diff --git a/src/views/etl/construction/AssetsBasic.vue b/src/views/etl/construction/AssetsBasic.vue index 3df2de0..fe6900b 100644 --- a/src/views/etl/construction/AssetsBasic.vue +++ b/src/views/etl/construction/AssetsBasic.vue @@ -57,9 +57,8 @@ export default { structureNum: null, } }, - - watch:{ - infoOpen(newName, oldName){ + watch: { + infoOpen(newName, oldName) { console.log(newName) console.log(oldName) } diff --git a/src/views/etl/construction/AssetsModel.vue b/src/views/etl/construction/AssetsModel.vue index 248613d..cf7d9f5 100644 --- a/src/views/etl/construction/AssetsModel.vue +++ b/src/views/etl/construction/AssetsModel.vue @@ -1,278 +1,445 @@ - - - - - {{ this.name }} - - - + + + + {{ this.name }} + + + - + - - 资产模型 - - + + 资产模型 + + - - - - + + + + - + - - 数据模型 - - + + 数据模型 + + - - - - - - - - - - + + + + + + + - - - 基础字典 - - 新增字典 - - - - - - - {{dictInfo.dictName}} - ({{dictInfo.dictType}}) - - - - + + 基础字典 + + 新增字典 + + + + + {{ dictInfo.dictName }}({{ dictInfo.dictType }}) + + 新增内容 + + + + + + {{ scope.row.infoName }} + + + + + + {{ scope.row.infoValue }} + + + + + + 操作 + + + 确认 + + + + - + - - - 资产模型基本信息 - - - - - - - - 表名称 - - {{tableInfo.info.tableName}} - - - - - - 表备注 - - {{tableInfo.info.tableRemark}} - - - - - - 数据量 - - {{tableInfo.info.dataNum}} - - - - - - - 备注 - - 小黄 - - + + 资产模型基本信息 + + + + + + 表名称 + + {{ tableInfo.info.tableName }} + + + + + 表备注 + + {{ tableInfo.info.tableRemark }} + + + + + 数据量 + + {{ tableInfo.info.dataNum }} + + + + + 备注 + + 学校 + + - - + + 数据模型 + + + + + + + + {{ scope.row.isPrimary }} + + + + + + + + + + + {{ scope.row.isNull }} + + + + + + + + {{ scope.row.isDictionary }} + + {{ scope.row.isDictionary }} + + + + - - 数据模型 - - - - - - - - - - - - - - - - - - - 操作 - - - + + + + + + + + {{ scope.row.dictionaryTable }} + + + + + + + + + 编辑 + + + + - - - - - - - - - - + + + + + + + + - - - - - - - - - - - + + + + + + + + + + {{ this.structureInfoForm }} + + + + + + + + + {{ structureInfoForm.isPrimary }} + + + + + + + + + + + + + + + + + + + + {{ structureInfoForm.isNull }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -393,8 +560,3 @@ export default { line-height: 100px; } - - - - - diff --git a/src/views/etl/construction/TableInfoModel.vue b/src/views/etl/construction/TableInfoModel.vue index 20a751e..291ccb3 100644 --- a/src/views/etl/construction/TableInfoModel.vue +++ b/src/views/etl/construction/TableInfoModel.vue @@ -1,106 +1,109 @@ -@ -0,0 +1,221 @@ - - - - - - - - 资产模型基本信息 - - - - - - 表名称 - - {{ tableInfo.info.tableName }} - - - - - 表备注 - - {{ tableInfo.info.tableRemark }} - - - - - 数据量 - - {{ tableInfo.info.dataNum }} - - - - - 备注 - - 学校 - - - - - - - 数据模型 - - - - - - - - - - - - - - - - 操作 - - + + + + + + + + 资产模型基本信息 + + + + + + 表名称 + + {{ tableInfo.info.tableName }} + + + + + 表备注 + + {{ tableInfo.info.tableRemark }} + + + + + 数据量 + + {{ tableInfo.info.dataNum }} + + + + + 备注 + + 学校 + + + + + + + 数据模型 + + + + + + + + + + + + + + + + 操作 + + - - - - - - - + + + + + + diff --git a/src/views/etl/construction/index.vue b/src/views/etl/construction/index.vue index 1aaa1ae..53b2d84 100644 --- a/src/views/etl/construction/index.vue +++ b/src/views/etl/construction/index.vue @@ -1,151 +1,142 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/src/views/etl/info/index.vue b/src/views/etl/info/index.vue index db0b564..e4e20c3 100644 --- a/src/views/etl/info/index.vue +++ b/src/views/etl/info/index.vue @@ -1,511 +1,510 @@ - - - - - - - - - - - - - - 搜索 - 重置 - - - - - - 新增 - - - 修改 - - - 删除 - - - 导出 - - - - - - - - - - - - - - - - - - 测试链接 - 修改 - 删除 - - - - - - - - - - - - 基础配置信息 - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 - - - - - - - - - - - - - + + 修改 - - - - 数据连接参数 + + 删除 + + + 导出 + + + + + + + + + + + + + + + + + + 测试链接 + 修改 + 删除 + + + + + + + + + + + 基础配置信息 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 数据连接参数 + + + + + + + + + 新增参数 + + + 清空参数 + + + + + + + + : + + + + + 删除 + + + + + + + + + 连接池配置 + + + + + + + + + + + + + + + + + + + + + + + + + 卡片名称 + + + + + + + + - - - - - - - - 新增参数 - - - 清空参数 - - - - - - - - : - - - - - 删除 - - - - - - - - - 连接池配置 - - - - - - - - - - - - - - - - - - - - - - - - - 卡片名称 - - - - - - - - - - + +