同步资产提交
parent
cf72448453
commit
c7317121ad
|
@ -37,6 +37,15 @@ export function getInfo(id){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//测试连接
|
||||||
|
export function structure(data){
|
||||||
|
return request({
|
||||||
|
url: "/source/source/structure",
|
||||||
|
method: "post",
|
||||||
|
data:data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
//测试连接
|
//测试连接
|
||||||
export function connectionTest(data){
|
export function connectionTest(data){
|
||||||
return request({
|
return request({
|
||||||
|
|
|
@ -268,6 +268,7 @@ import {connectionTest} from "@/api/etl/switch";
|
||||||
import {insertAdd} from "@/api/etl/switch";
|
import {insertAdd} from "@/api/etl/switch";
|
||||||
import {deleteSource} from "@/api/etl/switch";
|
import {deleteSource} from "@/api/etl/switch";
|
||||||
import {getInfo} from "@/api/etl/switch";
|
import {getInfo} from "@/api/etl/switch";
|
||||||
|
import {structure} from "@/api/etl/switch";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
//import引入的组件需要注入到对象中才能使用"
|
//import引入的组件需要注入到对象中才能使用"
|
||||||
|
@ -294,6 +295,13 @@ export default {
|
||||||
watch: {},
|
watch: {},
|
||||||
//方法集合",
|
//方法集合",
|
||||||
methods: {
|
methods: {
|
||||||
|
struceure(row){
|
||||||
|
structure(row).then(res=>{
|
||||||
|
if (res ===200){
|
||||||
|
alert("同步资产成功")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
deleteSourceByIds(){
|
deleteSourceByIds(){
|
||||||
deleteSource(this.ids).then(res=>{
|
deleteSource(this.ids).then(res=>{
|
||||||
if(res.code===200){
|
if(res.code===200){
|
||||||
|
|
Loading…
Reference in New Issue