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() {