添加资产授权
parent
2e83199138
commit
a884b72720
|
@ -7,4 +7,10 @@ export function getExtractDataTableNameList() {
|
|||
})
|
||||
}
|
||||
|
||||
|
||||
export function tableStructureShow(data) {
|
||||
return request({
|
||||
url: '/property/dataRunName/tableStructureShow',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
|
|
@ -20,3 +20,11 @@ export function selectBasicList() {
|
|||
method: 'post',
|
||||
})
|
||||
}
|
||||
|
||||
export function tableStructureShow(data) {
|
||||
return request({
|
||||
url: '/property/dataRunName/tableStructureShow',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
<script>
|
||||
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||||
//例如:import 《组件名称》 from '《组件路径》,
|
||||
import { findTableValue, getExtractDataTableNameList, selectBasicList } from '@/api/property/asDisplay'
|
||||
import { tableStructureShow } from '@/api/property/astr'
|
||||
|
||||
export default {
|
||||
//import引入的组件需要注入到对象中才能使用"
|
||||
|
@ -143,23 +143,14 @@ export default {
|
|||
},
|
||||
|
||||
handleNodeClick(data){
|
||||
console.log("...."+data)
|
||||
this.tableBasic=data
|
||||
|
||||
// findStructureByTableId(data.id).then((res)=>{
|
||||
// this.tableStructure=res.data
|
||||
// })
|
||||
if (data.children==null){
|
||||
findTableValueList(data.basicId,data.tableName).then(res=>{
|
||||
this.assetShowList=res.data;
|
||||
this.DataValue=res.data;
|
||||
if (this.data.name!=data.name){
|
||||
tableStructureShow(data).then(res=>{
|
||||
this.tableBasic=data
|
||||
console.log(res)
|
||||
this.dataNum=res.data.length
|
||||
this.tableStructure=res.data
|
||||
})
|
||||
}
|
||||
console.log("-----"+this.DataValue);
|
||||
console.log("...."+data.basicId)
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
//生命周期 - 创建完成(可以访问当前this实例)",
|
||||
created() {
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||||
//例如:import 《组件名称》 from '《组件路径》,
|
||||
|
||||
import { findTableValue, getExtractDataTableNameList } from '@/api/property/astr'
|
||||
import { getExtractDataTableNameList, tableStructureShow } from '@/api/property/astr'
|
||||
|
||||
export default {
|
||||
//import引入的组件需要注入到对象中才能使用"
|
||||
|
@ -124,35 +124,14 @@ export default {
|
|||
})
|
||||
},
|
||||
handleNodeClick(data){
|
||||
// console.log(data)
|
||||
console.log(data)
|
||||
this.tableBasic=data
|
||||
this.dataNum=data.tableFie.length
|
||||
this.tableStructure=data.tableFie
|
||||
// console.log(this.tableStructure)
|
||||
findTableValue(data.dataId,data.name).then(res=>{
|
||||
let tableMapping=res.data
|
||||
// console.log(res.data)
|
||||
|
||||
for (const index in tableMapping) {
|
||||
for (const i in this.tableStructure) {
|
||||
if (tableMapping[index].key === this.tableStructure[i].field) {
|
||||
|
||||
this.tableStructure[i].types.push(tableMapping[index].type)
|
||||
|
||||
console.log(this.tableStructure[i].types)
|
||||
if (i!== 0&& this.tableStructure[i].types==this.tableStructure[0].types){
|
||||
|
||||
alert("dawdwadad")
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
},
|
||||
tableStructureShow(data).then(res=>{
|
||||
console.log(res)
|
||||
this.dataNum=res.data.length
|
||||
this.tableStructure=res.data
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue