feat():展示树形结构信息和表结构
parent
3897ad5b53
commit
63ad3f5ebe
|
@ -99,3 +99,12 @@ export function selectTableData(id) {
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 查询单个数据库下表数据总数
|
||||||
|
export function getTableDataCount(id) {
|
||||||
|
return request({
|
||||||
|
url: '/data/source/getTableDataCount/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -122,7 +122,6 @@
|
||||||
<script>
|
<script>
|
||||||
import CountTo from 'vue-count-to'
|
import CountTo from 'vue-count-to'
|
||||||
import OverallAssetStructure from './OverallAssetStructure.vue'
|
import OverallAssetStructure from './OverallAssetStructure.vue'
|
||||||
import {getDictDataList, getDictTypeList, selectDictTypeList, selectTableData} from "@/api/data/source";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
|
|
@ -70,6 +70,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
expandTable(node, resolve) {
|
expandTable(node, resolve) {
|
||||||
console.log(node)
|
console.log(node)
|
||||||
console.log(resolve)
|
console.log(resolve)
|
||||||
|
@ -77,9 +78,7 @@ export default {
|
||||||
const {data} = node;
|
const {data} = node;
|
||||||
if (data.type === 'dataSource') {
|
if (data.type === 'dataSource') {
|
||||||
getTableDataCount(data.id).then(res => {
|
getTableDataCount(data.id).then(res => {
|
||||||
this.count.assetStructureCount = res.data.assetStructureCount
|
this.count = res.data
|
||||||
this.count.assetStructureTableCount = res.data.assetStructureTableCount
|
|
||||||
this.count.assetStructureTableDataCount = res.data.assetStructureTableDataCount
|
|
||||||
})
|
})
|
||||||
getChildrenList(data).then(res => {
|
getChildrenList(data).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
|
@ -124,9 +123,7 @@ export default {
|
||||||
},
|
},
|
||||||
tableDataCount() {
|
tableDataCount() {
|
||||||
selectTableDataCount().then(res => {
|
selectTableDataCount().then(res => {
|
||||||
this.count.assetStructureCount = res.data.assetStructureCount
|
this.count = res.data
|
||||||
this.count.assetStructureTableCount = res.data.assetStructureTableCount
|
|
||||||
this.count.assetStructureTableDataCount = res.data.assetStructureTableDataCount
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue