|
|
@ -292,9 +292,15 @@ export default { |
|
|
|
dbId: this.form['TaskHead-SourceDB'], |
|
|
|
sql: this.form['TaskHead-SQLStr'] |
|
|
|
} |
|
|
|
get('/admin/etl/taskhead/testsql', params).then((res) => { |
|
|
|
console.log(res) |
|
|
|
this.msgSuccess(res.msg) |
|
|
|
get('/admin/etl/taskhead/testsql', params) |
|
|
|
.then((res) => { |
|
|
|
if (res.code === 200) { |
|
|
|
this.msgSuccess("测试通过") |
|
|
|
} else { |
|
|
|
this.msgError(res.msg) |
|
|
|
} |
|
|
|
}).catch((res) => { |
|
|
|
this.msgError(res.msg) |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取表列名 |
|
|
|