From 39273856b611dcf647b65388118eccde8ec4b9c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E8=B0=83?= <3084898776@qq.com> Date: Sun, 1 Sep 2024 18:16:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E4=BA=A7=E7=BB=93=E6=9E=84=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/source/source.js | 21 +++++++ src/api/tableData/data.js | 13 ++++ src/views/accredit/index.vue | 87 +++++++++++++++++++++++++- src/views/show/index.vue | 117 ++++++++++++++++++++++++++++++----- src/views/type/index.vue | 24 +++---- 5 files changed, 232 insertions(+), 30 deletions(-) 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 @@ - + + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + accreditChange(val,scope.row,scope.row.deptId)" + active-color="#13ce66" + inactive-color="#ff4949" + active-text="已授权" + inactive-text="未授权"> + + + + + + + + + + + + + + + + + accreditChange(val,scope.row,scope.row.userId)" + active-color="#13ce66" + inactive-color="#ff4949" + active-text="已授权" + inactive-text="未授权"> + + + + + + + + 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 @@ - - - - + + + + + + + + + + + + + + + + 表名称 + {{ tableBasic.tableName }} + + + 表备注 + {{ tableBasic.tableRemark }} + + + 数据量 + {{ tableBasic.dataNum }} + + + 是否核心 + + + + + + + + + 模型数据 + + + + + + {{ DataValue.type }} + + {{ DataValue.value }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@