zhengnaiwen_citu 2 hafta önce
ebeveyn
işleme
49ec36c913

+ 12 - 1
src/views/dataGovernance/dataProcess/components/edit.vue

@@ -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