fix:修复树形下拉框传值问题

ruoyi_test
sunshine7058 2024-04-29 14:34:06 +08:00
parent 7d98af43e8
commit e7dbeb1993
3 changed files with 4 additions and 11 deletions

View File

@ -62,7 +62,7 @@ export function getAssetList() {
// 查询数据库结构 // 查询数据库结构
export function getChildrenList(id) { export function getChildrenList(id) {
return request({ return request({
url: '/data/source/getChildrenList', url: '/data/source/getChildrenList/' + id,
method: 'get' method: 'get'
}) })
} }

View File

@ -109,12 +109,6 @@ export default {
}) })
getChildrenList(data.id).then(res => { getChildrenList(data.id).then(res => {
this.childrenList = res.data this.childrenList = res.data
this.childrenList.forEach(children => {
this.showTable.assetStructure = data
this.showTable.tableName = children.name
addTableData(this.showTable).then(res => {
})
})
}) })
} }
if (data.type === "dataTable") { if (data.type === "dataTable") {

View File

@ -283,7 +283,6 @@
<script> <script>
import {listSource, getSource, delSource, addSource, updateSource, getConnect} from "@/api/data/source"; import {listSource, getSource, delSource, addSource, updateSource, getConnect} from "@/api/data/source";
import {getDataBaseType} from "@/api/data/type"; import {getDataBaseType} from "@/api/data/type";
import log from "@/views/monitor/job/log.vue";
import {getsync} from "@/api/data/assset"; import {getsync} from "@/api/data/assset";
export default { export default {
@ -337,10 +336,10 @@ export default {
}, },
methods: { methods: {
// //
handlesync(row){ handlesync(dataSource){
getsync(row).then(response=>{ getsync(dataSource).then(response=>{
console.log(response) console.log(response)
if (response.data){ if (response.code===200){
this.$message.success("同步成功") this.$message.success("同步成功")
}else { }else {
this.$message.error("同步失败") this.$message.error("同步失败")