资产结构展示
parent
fddc3a350d
commit
6ffcd8f400
|
@ -1,56 +1,56 @@
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
// 查询结构列表
|
// // 查询结构列表
|
||||||
export function listData(query) {
|
// export function listData(query) {
|
||||||
return request({
|
// return request({
|
||||||
url: '/source/data/list',
|
// url: '/source/data/list',
|
||||||
method: 'get',
|
// method: 'get',
|
||||||
params: query
|
// params: query
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 查询结构详细
|
// // 查询结构详细
|
||||||
export function getData(id) {
|
// export function getData(id) {
|
||||||
return request({
|
// return request({
|
||||||
url: '/source/data/' + id,
|
// url: '/source/data/' + id,
|
||||||
method: 'get'
|
// method: 'get'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 新增结构
|
// // 新增结构
|
||||||
export function addData(data) {
|
// export function addData(data) {
|
||||||
return request({
|
// return request({
|
||||||
url: '/source/data',
|
// url: '/source/data',
|
||||||
method: 'post',
|
// method: 'post',
|
||||||
data: data
|
// data: data
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 修改结构
|
// // 修改结构
|
||||||
export function updateData(data) {
|
// export function updateData(data) {
|
||||||
return request({
|
// return request({
|
||||||
url: '/source/data',
|
// url: '/source/data',
|
||||||
method: 'put',
|
// method: 'put',
|
||||||
data: data
|
// data: data
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
// 删除结构
|
// // 删除结构
|
||||||
export function delData(id) {
|
// export function delData(id) {
|
||||||
return request({
|
// return request({
|
||||||
url: '/source/data/' + id,
|
// url: '/source/data/' + id,
|
||||||
method: 'delete'
|
// method: 'delete'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
//修改字段是否为字典值
|
// //修改字段是否为字典值
|
||||||
export function updIsDict(data) {
|
// export function updIsDict(data) {
|
||||||
return request({
|
// return request({
|
||||||
url: '/source/data/updIsDict',
|
// url: '/source/data/updIsDict',
|
||||||
method: 'put',
|
// method: 'put',
|
||||||
data: data
|
// data: data
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
//根据childrenId查询表结构
|
//根据表ID查询表结构
|
||||||
export function selectTableData(id) {
|
export function selectTableData(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/source/data/selectStructureById/' + id,
|
url: '/source/data/selectStructureById/' + id,
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-aside width="30%">
|
||||||
|
<el-tree :data="dataList" :props="defaultProps" @node-click="handleNodeClick">
|
||||||
|
</el-tree>
|
||||||
|
</el-aside>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script setup>
|
||||||
|
import {findTableInfoList} from "@/api/tableData/data";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name:'Accredit',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dataList:[
|
||||||
|
{
|
||||||
|
children:[],
|
||||||
|
}
|
||||||
|
],
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'tableName'
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.findTableInfoList();
|
||||||
|
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
findTableInfoList(){
|
||||||
|
findTableInfoList().then(res=>{
|
||||||
|
this.dataList=res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
|
||||||
|
</style>
|
|
@ -0,0 +1,44 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-aside width="30%">
|
||||||
|
<el-tree :data="dataList" :props="defaultProps" @node-click="handleNodeClick">
|
||||||
|
</el-tree>
|
||||||
|
</el-aside>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script setup>
|
||||||
|
import {findTableInfoList} from "@/api/tableData/data";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Show',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dataList:[
|
||||||
|
{
|
||||||
|
children:[],
|
||||||
|
}
|
||||||
|
],
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'tableName'
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.findTableInfoList();
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
findTableInfoList(){
|
||||||
|
findTableInfoList().then(res=>{
|
||||||
|
this.dataList=res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
|
||||||
|
</style>
|
Loading…
Reference in New Issue