소스 검색

来源表

zhengnaiwen_citu 2 주 전
부모
커밋
49ec36c913
1개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. 12 1
      src/views/dataGovernance/dataProcess/components/edit.vue

+ 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