fix:修复树形下拉框传值问题
parent
7d98af43e8
commit
e7dbeb1993
|
@ -62,7 +62,7 @@ export function getAssetList() {
|
|||
// 查询数据库结构
|
||||
export function getChildrenList(id) {
|
||||
return request({
|
||||
url: '/data/source/getChildrenList',
|
||||
url: '/data/source/getChildrenList/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
|
|
@ -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") {
|
||||
|
|
|
@ -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("同步失败")
|
||||
|
|
Loading…
Reference in New Issue