diff --git a/src/api/dict/dictData.js b/src/api/dict/dictData.js new file mode 100644 index 0000000..5b8b3b3 --- /dev/null +++ b/src/api/dict/dictData.js @@ -0,0 +1,11 @@ +import request from '@/utils/request' + + +// 根据数据库结构ID查询数据源列表 +export function listChildren(query) { + return request({ + url: '/source/children/list', + method: 'get', + params: query + }) +} diff --git a/src/api/dict/dictType.js b/src/api/dict/dictType.js new file mode 100644 index 0000000..ef84aec --- /dev/null +++ b/src/api/dict/dictType.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' + + +// 根据数据源id查询字典类型数据 +export function getDictDataList(id) { + return request({ + url: '/source/dictType/getDictDataList/' + id, + method: 'get' + }) +} +// 查询数据字典类型对象 +export function getDictData(data) { + return request({ + url: '/source/dictType/getDictData', + method: 'post', + data: data + }) +} +// 查询数据库类型 +export function getTypeList() { + return request({ + url: '/source/dataType/getTypeList', + method: 'get' + }) +} diff --git a/src/api/source/source.js b/src/api/source/source.js index 40ca468..ae8d9cf 100644 --- a/src/api/source/source.js +++ b/src/api/source/source.js @@ -53,7 +53,7 @@ export function delSource(id) { //同步资产结构 export function synchronous(data) { return request({ - url: '/source/source/synchronous', + url: '/source/source/syncAssetStructure', method: 'post', data: data }) diff --git a/src/api/tableData/data.js b/src/api/tableData/data.js index 9cf2cd8..b983523 100644 --- a/src/api/tableData/data.js +++ b/src/api/tableData/data.js @@ -42,5 +42,32 @@ export function delData(id) { method: 'delete' }) } +//修改字段是否为字典值 +export function updIsDict(data) { + return request({ + url: '/source/data/updIsDict', + method: 'put', + data: data + }) +} +//根据childrenId查询表结构 +export function selectTableData(id) { + return request({ + url: '/source/data/selectTableData/' + id, + method: 'get' + }) +} +export function findTableInfo() { + return request({ + url: '/source/tableInfo/findTableInfo', + method: 'get' + }) +} +export function findTableInfoList() { + return request({ + url: '/source/tableInfo/findTableInfoList', + method: 'get', + }) +} diff --git a/src/views/data/index.vue b/src/views/data/index.vue deleted file mode 100644 index d03e508..0000000 --- a/src/views/data/index.vue +++ /dev/null @@ -1,336 +0,0 @@ - - - - - - - - 搜索 - 重置 - - - - - - 新增 - - - 修改 - - - 删除 - - - 导出 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 修改 - 删除 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/source/index.vue b/src/views/source/index.vue index 6868b63..d02da4a 100644 --- a/src/views/source/index.vue +++ b/src/views/source/index.vue @@ -179,7 +179,13 @@ - + + 是 + 否 + + + + diff --git a/src/views/type/index.vue b/src/views/type/index.vue new file mode 100644 index 0000000..5a756d8 --- /dev/null +++ b/src/views/type/index.vue @@ -0,0 +1,120 @@ + + + + + + {{ + tableList.name + '(' + tableList.databaseName + '-' + tableList.systemName + ')' + }} + + {{ + tableList.tableName + '-' + tableList.tableRemark + '(' + tableList.dataNum + '条)' + }} + + + + + + + + + 资产模型基本信息 + + + + 表名称 + {{ tableList.tableName }} + + + 表备注 + {{ tableList.tableRemark }} + + + 数据量 + {{ tableList.dataNum }} + + + 是否核心 + + + + + + + + 资产模型详细信息 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +