From b0be7716793c7528edb0b69c6fdb16e8a08613f6 Mon Sep 17 00:00:00 2001 From: baize <3533151373@qq.com> Date: Wed, 8 May 2024 22:41:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=20=20=20=20=E6=95=B0=E6=8D=AE=E6=8E=88?= =?UTF-8?q?=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/accredit/auth.js | 28 +++ .../auth/AuthDataSource.vue | 232 ++++++++++++++++++ .../assetAuthorization/auth/AuthTable.vue | 200 +++++++++++++++ .../dataSource/assetAuthorization/index.vue | 124 ++++++++++ src/views/dataSource/assets/index.vue | 6 - 5 files changed, 584 insertions(+), 6 deletions(-) create mode 100644 src/api/accredit/auth.js create mode 100644 src/views/dataSource/assetAuthorization/auth/AuthDataSource.vue create mode 100644 src/views/dataSource/assetAuthorization/auth/AuthTable.vue create mode 100644 src/views/dataSource/assetAuthorization/index.vue diff --git a/src/api/accredit/auth.js b/src/api/accredit/auth.js new file mode 100644 index 0000000..28ecca5 --- /dev/null +++ b/src/api/accredit/auth.js @@ -0,0 +1,28 @@ +import request from '@/utils/request' + +// 查询资产授权列表 +export function listAuth(query) { + return request({ + url: '/source/auth/list', + method: 'get', + params:query + }) +} + +// 新增资产授权 +export function addAuth(data) { + return request({ + url: '/source/auth', + method: 'post', + data: data + }) +} + +// 删除资产授权 +export function delAuth(data) { + return request({ + url: '/source/auth/remove' , + method: 'post', + data + }) +} diff --git a/src/views/dataSource/assetAuthorization/auth/AuthDataSource.vue b/src/views/dataSource/assetAuthorization/auth/AuthDataSource.vue new file mode 100644 index 0000000..9f80009 --- /dev/null +++ b/src/views/dataSource/assetAuthorization/auth/AuthDataSource.vue @@ -0,0 +1,232 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + authChange(val,scope.row,scope.row.deptId)" + active-color="#13ce66" + inactive-color="#ff4949" + active-text="已授权" + inactive-text="未授权"> + + + + + + + + + + + + + + + + + authChange(val,scope.row,scope.row.userId)" + active-color="#13ce66" + inactive-color="#ff4949" + active-text="已授权" + inactive-text="未授权"> + + + + + + + + + + + diff --git a/src/views/dataSource/assetAuthorization/auth/AuthTable.vue b/src/views/dataSource/assetAuthorization/auth/AuthTable.vue new file mode 100644 index 0000000..3a91575 --- /dev/null +++ b/src/views/dataSource/assetAuthorization/auth/AuthTable.vue @@ -0,0 +1,200 @@ + + + + {{baseInfo.accessSourceName}} + {{baseInfo.dataSourceSystemName}} + {{baseInfo.databaseName}} + {{asset2.name}} + {{asset2.as}} + {{asset2.dataTotal}} + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + authChange(val,scope.row,scope.row.deptId)" + active-color="#13ce66" + inactive-color="#ff4949" + active-text="已授权" + inactive-text="未授权"> + + + + + + + + + + + + + + + + + authChange(val,scope.row,scope.row.userId)" + active-text="已授权" + inactive-text="未授权"> + + + + + + + + + + + diff --git a/src/views/dataSource/assetAuthorization/index.vue b/src/views/dataSource/assetAuthorization/index.vue new file mode 100644 index 0000000..d49e06e --- /dev/null +++ b/src/views/dataSource/assetAuthorization/index.vue @@ -0,0 +1,124 @@ + + + + + + {{ data. accessSourceName + '('+data.databaseName + '-' + data.dataSourceSystemName+')' }} + {{ data.name + '-'+data.as + '(' + data.dataTotal+'条)' }} + + + + + + + + + + + + + + + + + diff --git a/src/views/dataSource/assets/index.vue b/src/views/dataSource/assets/index.vue index 9430504..b6dc5eb 100644 --- a/src/views/dataSource/assets/index.vue +++ b/src/views/dataSource/assets/index.vue @@ -94,13 +94,7 @@ export default { } ) if (data.type === 1){ - findDataBaseByInformationId(data.id).then( - res=>{ - this.databaseTable=res.data; - // console.log("res",this.databaseTable) - } - ) } setTimeout(() => {