From 99701fef6d9eb27bcc54ad427422866f14e15f63 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E7=86=99=E6=9C=9D?=
<13694051+wangxizhao123@user.noreply.gitee.com>
Date: Wed, 24 Apr 2024 21:27:10 +0800
Subject: [PATCH] =?UTF-8?q?feat()=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=90=8C?=
=?UTF-8?q?=E6=AD=A5=E5=92=8C=E6=B5=8B=E8=AF=95=EF=BC=8C=E5=AE=8C=E6=88=90?=
=?UTF-8?q?=E4=BA=86=E9=80=89=E4=B8=AD=E4=B8=8D=E5=90=8C=E8=8A=82=E7=82=B9?=
=?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=B8=8D=E5=90=8C=E6=95=88=E6=9E=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/access.js | 10 ++
src/api/system/accredit.js | 19 +++-
src/views/assets/access/index.vue | 36 ++++---
.../authorization/auth/AuthDataSource.vue | 19 ++--
.../assets/authorization/auth/AuthTable.vue | 6 +-
.../table/dashboard/OverallAssetStructure.vue | 94 ++++++++++++++++---
.../table/dashboard/OverallSpecificAssets.vue | 50 +++++++++-
src/views/assets/table/index.vue | 17 ++--
8 files changed, 188 insertions(+), 63 deletions(-)
diff --git a/src/api/system/access.js b/src/api/system/access.js
index ff14e50..23d9927 100644
--- a/src/api/system/access.js
+++ b/src/api/system/access.js
@@ -56,3 +56,13 @@ export function selectTable(libraryName) {
method: 'get'
})
}
+
+export function synchronization(data) {
+ return request({
+ url: '/system/access/synchronization',
+ method: 'post',
+ data
+ })
+}
+
+
diff --git a/src/api/system/accredit.js b/src/api/system/accredit.js
index 16d98a5..7043f43 100644
--- a/src/api/system/accredit.js
+++ b/src/api/system/accredit.js
@@ -31,10 +31,10 @@ export function listSelectSysUser(data) {
})
}
-export function listSqlJdbc(data) {
+export function selJDBCStream(data) {
return request({
- url: '/system/accredit/listSqlJdbc',
- method: 'get',
+ url: '/system/accredit/selJDBCStream',
+ method: 'post',
data
})
}
@@ -61,4 +61,17 @@ export function selNameListStructure(tableName) {
})
}
+/**
+ * 修改状态/是否增加字典
+ * @param data
+ * @returns {AxiosPromise}
+ */
+export function updateListStructure(data) {
+ return request({
+ url: '/system/accredit/updateListStructure',
+ method: 'post',
+ data
+ })
+}
+
diff --git a/src/views/assets/access/index.vue b/src/views/assets/access/index.vue
index f0a2729..5a16492 100644
--- a/src/views/assets/access/index.vue
+++ b/src/views/assets/access/index.vue
@@ -113,6 +113,10 @@
+ 同步
diff --git a/src/views/assets/table/index.vue b/src/views/assets/table/index.vue
index 5e17b80..23c2a6f 100644
--- a/src/views/assets/table/index.vue
+++ b/src/views/assets/table/index.vue
@@ -17,7 +17,7 @@
-
+
@@ -34,7 +34,7 @@ export default {
components: { OverallAssetStructure, OverallSpecificAssets, OverallAssets },
data() {
return {
- tableName: [],
+ tableName: '',
mainHeight: window.innerHeight - 85,
defaultProps: {
children: 'childrenList',
@@ -77,6 +77,7 @@ export default {
const {data} = node;
this.showAssets = data.type;
if (data.type === 'dataTable') {
+ this.tableName = data.name
return resolve([])
}
setTimeout(() => {
@@ -84,14 +85,14 @@ export default {
}, 500);
},
showAssetsFun(data){
- console.log(data)
this.title = data.name + '('+data.databaseName + '-' + data.systemName+')'
this.showAssets = data.type;
- if (data.as!=undefined){
- this.$router.push({
- path:OverallAssetStructure,
- query:{tableName: data.name}
- })
+ if (data.as == undefined){
+ console.log(1)
+ this.tableName = '';
+ }else{
+ console.log(2)
+ this.tableName = data.name
}
},
thisTable() {