zhengnaiwen_citu 3 months ago
parent
commit
557406b44d

+ 0 - 4
public/index.html

@@ -6,10 +6,6 @@
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <title><%= htmlWebpackPlugin.options.title %></title>
-    <!-- 生产环境外配置api地址 -->
-    <% if (process.env.NODE_ENV=== 'production' ) { %>
-      <script src="<%= BASE_URL %>config.js"></script>
-    <% } %>
     <style>
       /* 滚动条样式 */
       ::-webkit-scrollbar {

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "version": 1742958911419
+  "version": 1743406528550
 }

+ 4 - 1
src/api/dataGovernance.js

@@ -72,10 +72,13 @@ const dataResource = {
   getResourceGraph: (param) => {
     return http.post('/resource/graph/all', param)
   },
-  // 解析一个文件中多份DDL 文件上传接口 参数错误
+  // 解析一个文件中多份DDL 文件上传接口 参数错误 预留接口
   resourceParseByDDL: (param) => {
     return http.upload('/resource/ddl/identify', param)
   },
+  resourceParseDDL: (param) => {
+    return http.upload('/resource/ddl/parse', param)
+  },
   // DDL数据资源更新 未确认
   resourceUpdateByDDL: (param) => {
     return http.post('/data/resource/update', param)

+ 11 - 10
src/views/dataFactory/dispatch/index.vue

@@ -192,18 +192,19 @@ export default {
       if (item.loading === true) {
         return
       }
-      const { id, type } = item
+      const { id } = item
       // const { id, type } = Object.values(item.nodeProperty).pop()
       item.loading = true
-      if (type === 'data_resource') {
-        await this.handleRunResource(id)
-      }
-      if (type === 'modelTraining') {
-        await this.sourceModelTrain(id)
-      }
-      if (type === 'readUnstructuredResource') {
-        await this.handleRunUnstructuredResource(id)
-      }
+      await this.handleRunResource(id)
+      // if (type === 'data_resource') {
+      //   await this.handleRunResource(id)
+      // }
+      // if (type === 'data_model') {
+      //   await this.sourceModelTrain(id)
+      // }
+      // if (type === 'readUnstructuredResource') {
+      //   await this.handleRunUnstructuredResource(id)
+      // }
       item.loading = false
     },
     // 结构化 运行

+ 1 - 1
src/views/dataGovernance/dataModules/components/dataList.vue

@@ -251,7 +251,7 @@ export default {
           }, [])
           return
         }
-        item.metaNode = data.parsed_data.map(_e => {
+        item.metaNode = data.meta_list.map(_e => {
           const used = this.selected.findIndex(item => item.id === _e.id) > -1
           return {
             ..._e,

+ 4 - 3
src/views/dataGovernance/dataResource/components/Database/index.vue

@@ -189,9 +189,10 @@ export default {
       const query = new FormData()
       query.append('file', file)
       try {
-        const { data } = await api.resourceParseByDDL(query)
-        this.items = Object.keys(data).reduce((res, key) => {
-          const { meta, ...obj } = data[key]
+        const { data } = await api.resourceParseDDL(query)
+        const { tables } = data
+        this.items = Object.keys(tables).reduce((res, key) => {
+          const { meta, ...obj } = tables[key]
           res[key] = {
             ...obj,
             meta: meta.map(e => {