diff --git a/src/api/source/source.js b/src/api/source/source.js index ae8d9cf..358529b 100644 --- a/src/api/source/source.js +++ b/src/api/source/source.js @@ -58,3 +58,24 @@ export function synchronous(data) { data: data }) } +//根据基础表ID和SQL语句查询数据 +export function findTableValue(basicId,sql) { + return request({ + url: '/source/value/findTableValue', + method: 'post', + params: {basicId:basicId,sql:sql} + }) +} +export function findByTableName() { + return request({ + url: '/source/tableInfo/findTableInfo', + method: 'GET', + }) +} +//根据基础表ID和表名查询数据 +export function findTableValueList(basicId,tableName) { + return request({ + url: "/source/value/findTableValueByTableName?basicId="+basicId+"&tableName="+tableName, + method: 'post', + }) +} diff --git a/src/api/tableData/data.js b/src/api/tableData/data.js index 542f5d1..e5dfea7 100644 --- a/src/api/tableData/data.js +++ b/src/api/tableData/data.js @@ -69,5 +69,18 @@ export function findTableInfoList() { method: 'get', }) } +export function selectColumn() { + return request({ + url: '/source/tableInfo/selectColumn', + method: 'get', + }) +} +export function findTableName(id) { + return request({ + url: '/source/tableInfo/findTableName', + method: 'post', + params: {id} + }) +} diff --git a/src/views/accredit/index.vue b/src/views/accredit/index.vue index 8154db3..906ca21 100644 --- a/src/views/accredit/index.vue +++ b/src/views/accredit/index.vue @@ -1,18 +1,88 @@ diff --git a/src/views/show/index.vue b/src/views/show/index.vue index 38d406d..430c794 100644 --- a/src/views/show/index.vue +++ b/src/views/show/index.vue @@ -1,41 +1,126 @@ diff --git a/src/views/type/index.vue b/src/views/type/index.vue index bedb4c7..59ae8d1 100644 --- a/src/views/type/index.vue +++ b/src/views/type/index.vue @@ -3,22 +3,13 @@ -
{{ - tableList.name + '(' + tableList.databaseName + '-' + tableList.systemName + ')' - }} -
-
{{ - tableList.tableName + '-' + tableList.tableRemark + '(' + tableList.dataNum + '条)' - }} -
-
- 资产模型基本信息 + 资产结构基本信息
@@ -42,7 +33,7 @@
- 资产模型详细信息 + 资产结构详细信息
@@ -73,7 +64,7 @@