Browse Source

优化

pull/3/head
wangxy 3 years ago
parent
commit
3297c34262
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      src/views/etl/components/edit.vue

+ 9
- 3
src/views/etl/components/edit.vue View File

@ -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)
})
},
//


Loading…
Cancel
Save