添加资产展示
parent
c20e4d1667
commit
7c8e69e1f6
|
@ -7,9 +7,9 @@ export function getExtractDataTableNameList() {
|
|||
})
|
||||
}
|
||||
|
||||
export function findTableValueList(data) {
|
||||
export function findTableValueList(basicId,dataId,tableName) {
|
||||
return request({
|
||||
url: '/property/dataSource/findTableValueList',
|
||||
url: '/property/dataSource/findTableValueList?basicId='+basicId+"&dataId="+dataId+"&tableName="+tableName,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<h1>测试4()- 资产展示</h1>
|
||||
<h1>资产展示</h1>
|
||||
|
||||
<el-container>
|
||||
<el-aside width="400px">
|
||||
|
@ -26,7 +26,7 @@
|
|||
<el-descriptions class="margin-top" title="资产模型基本信息" :column="2" border>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">表名称</template>
|
||||
{{ tableBasic.tableName }}
|
||||
{{ tableBasic.name }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">表备注</template>
|
||||
|
@ -34,7 +34,7 @@
|
|||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">数据量</template>
|
||||
{{ tableBasic.dataNum }}
|
||||
{{ dataNum }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item>
|
||||
<template slot="label">是否核心</template>
|
||||
|
@ -112,10 +112,10 @@ export default {
|
|||
return {
|
||||
data:[],
|
||||
defaultProps: {
|
||||
children: 'children',
|
||||
label: 'tableName'
|
||||
children: 'tableNames',
|
||||
label: 'name'
|
||||
},
|
||||
tableBasic:{},
|
||||
tableBasic:[],
|
||||
tableStructure:[],
|
||||
assetShowList: [
|
||||
// {key: "测试.sys_user.id", type: "String", value: 1},
|
||||
|
@ -124,9 +124,8 @@ export default {
|
|||
// {key: "测试.sys_user.email", type: "String", value: "123@136.com"},
|
||||
// {key: "测试.sys_user.sex", type: "String", value: "Y"},
|
||||
],
|
||||
kvtList: [],
|
||||
DataValue:[],
|
||||
|
||||
dataNum:'',
|
||||
};
|
||||
},
|
||||
//计算属性 类似于data概念",
|
||||
|
@ -145,16 +144,17 @@ export default {
|
|||
handleNodeClick(data){
|
||||
console.log("...."+data)
|
||||
this.tableBasic=data
|
||||
|
||||
console.log(this.tableBasic)
|
||||
dataNum=this.tableBasic.tableFie.length
|
||||
// findStructureByTableId(data.id).then((res)=>{
|
||||
// this.tableStructure=res.data
|
||||
// })
|
||||
if (data.children==null){
|
||||
findTableValueList(data.basicId,data.tableName).then(res=>{
|
||||
|
||||
findTableValueList(data.id,data.dataId,data.tableName).then(res=>{
|
||||
this.assetShowList=res.data;
|
||||
this.DataValue=res.data;
|
||||
})
|
||||
}
|
||||
|
||||
console.log("-----"+this.DataValue);
|
||||
console.log("...."+data.basicId)
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ export default {
|
|||
console.log(this.tableBasic.length)
|
||||
if (this.tableBasic.length === undefined){
|
||||
selectBasicList().then(ress=>{
|
||||
this.tableBasic.ress.data
|
||||
this.tableBasic = ress.data
|
||||
this.tableBasics.data
|
||||
})
|
||||
this.dataNum=data.tableFie.length
|
||||
|
|
Loading…
Reference in New Issue