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) {
return request({
url: '/data/source/getChildrenList',
url: '/data/source/getChildrenList/' + id,
method: 'get'
})
}

View File

@ -109,12 +109,6 @@ export default {
})
getChildrenList(data.id).then(res => {
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") {

View File

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