|
@@ -334,10 +334,21 @@ export default {
|
|
|
this.$snackbar.warning('请输入内容')
|
|
|
return
|
|
|
}
|
|
|
+ if (!this.changeObj.source_table) {
|
|
|
+ this.$snackbar.warning('请先填写来源表')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.changeObj.target_table) {
|
|
|
+ this.$snackbar.warning('请先填写目标表')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // if
|
|
|
this.loading = true
|
|
|
try {
|
|
|
const { data } = await api.getDataFlowScript({
|
|
|
- request_data: this.changeObj.script_requirement
|
|
|
+ request_data: this.changeObj.script_requirement,
|
|
|
+ input: this.changeObj.source_table,
|
|
|
+ output: this.changeObj.target_table
|
|
|
})
|
|
|
// this.changeObj.script_requirement = text
|
|
|
this.changeObj.script_content = data.script_content
|