Browse Source

移除api

zhengnaiwen_citu 3 months ago
parent
commit
4cba54b10a

+ 1 - 1
.env.development

@@ -11,7 +11,7 @@ VUE_APP_MODE = 'development'
 # http://1.14.244.91:182/
 
 # VUE_APP_BASE_API = 'http://192.168.3.86:83/op/base'
-VUE_APP_BASE_API = 'http://192.168.3.143:5500'
+VUE_APP_BASE_API = '/api'
 # VUE_APP_BASE_API = 'http://192.168.3.180/op/base'
 
 

+ 1 - 1
.env.production

@@ -5,7 +5,7 @@ NODE_ENV = 'production'
 VUE_APP_MODE = 'production'
 # base api
 
-VUE_APP_BASE_API = 'http://192.168.3.143:5500'
+VUE_APP_BASE_API = '/api'
 
 
 #预览api地址

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "version": 1742370509967
+  "version": 1742442202655
 }

+ 3 - 3
src/api/dataBook.js

@@ -60,7 +60,7 @@ export function metaDataConsanguinity (params) {
 }
 // 血缘关系图谱(新)
 export function metaDataConsanguinity2 (params) {
-  return http.post('/DataOps-platform/graph/show/metaData', params)
+  return http.post('/graph/show/metaData', params)
 }
 // 元数据明细
 export function metaDataDetail (params) {
@@ -135,11 +135,11 @@ export function consanguinitySave (params) {
 }
 // 批量上传元数据-下载excel模板
 export function downloadExcelTemplate () {
-  return http.post('/DataOps-platform/dataFactory/download/excel')
+  return http.post('/dataFactory/download/excel')
 }
 // 批量上传元数据
 export function uploadMetaDataFile (params) {
-  return http.upload('/DataOps-platform/dataFactory/upload/excel', params)
+  return http.upload('/dataFactory/upload/excel', params)
 }
 // 导入数据域
 export function combinationImport (params) {

+ 1 - 1
src/api/dataFactory.js

@@ -247,7 +247,7 @@ export function getCombinationPage (params) {
 
 // 生成亲属关系
 export function familyMakeAtlas () {
-  return http.post('/DataOps-platform/family/make/atlas')
+  return http.post('/family/make/atlas')
 }
 
 /** ================================= 任务组管理 START ==================================================== */

+ 87 - 116
src/api/dataGovernance.js

@@ -2,40 +2,31 @@
 import http from '@/utils/request'
 // import axios from 'axios'
 
-// 获取ddl 旧版
-export function getDDL (params) {
-  return http.post('/dataFactory/data/meta/data/combination/ddl', params)
-}
-
 // 元数据相关
 const metadata = {
   // 新增元数据
   metadataAdd (params) {
-    return http.post('/DataOps-platform/meta/node/add', params)
+    return http.post('/meta/node/add', params)
   },
   // 更新元数据
   metadataUpdate (params) {
-    return http.post('/DataOps-platform/meta/node/update', params)
+    return http.post('/meta/node/update', params)
   },
   // 删除元数据
   deleteMetadata: (param) => {
-    return http.post('/DataOps-platform/meta/node/delete', param)
+    return http.post('/meta/node/delete', param)
   },
-  // 查看元数据
+  // 查看元数据详情
   getMetadataDetails: (param) => {
-    return http.post('/DataOps-platform/meta/node/edit', param)
+    return http.post('/meta/node/edit', param)
   },
   // 元数据列表
   getMetaDataList: (param) => {
-    return http.post('/DataOps-platform/meta/node/list', param)
+    return http.post('/meta/node/list', param)
   },
   // 元数据图谱
   getMetaDataGraph: (param) => {
-    return http.post('/DataOps-platform/meta/node/graph', param)
-  },
-  // 元数据图谱
-  getMetaDataById: (param) => {
-    return http.post('/DataOps-platform/id/data/search', param)
+    return http.post('/meta/node/graph', param)
   }
 }
 
@@ -43,118 +34,96 @@ const metadata = {
 const dataResource = {
   // 资源列表
   getResourceList: (param) => {
-    return http.post('/DataOps-platform/meta/data/list', param)
+    return http.post('/resource/list', param)
   },
+  // 资源详情
   getResourceDetails: (param) => {
-    return http.post('/DataOps-platform/data/resource/detail', param)
+    return http.post('/resource/detail', param)
   },
-  // 查看资源图谱
+  // 查看资源图谱   没接
   getResourceListToGraph: (param) => {
-    return http.post('/DataOps-platform/data/resource/list/graph', param)
-  },
-  // 结构化资源列表
-  getStructureResource: (param) => {
-    return http.post('/DataOps-platform/id/structure/retrieval', param)
-  },
-  // 非结构化资源列表
-  getUnstructuredResource: (param) => {
-    return http.post('/DataOps-platform/id/text/retrieval', param)
+    return http.post('/data/resource/list/graph', param)
   },
   // 删除资源
   deleteSource: (param) => {
-    return http.post('/DataOps-platform/data/resource/delete', param)
+    return http.post('/resource/delete', param)
   },
-  // 大模型模型翻译元数据
+  // 大模型模型翻译元数据  上传接口参数不对
   resourceTranslate: (param) => {
-    return http.formData('/DataOps-platform/data/resource/translate', param)
+    return http.formData('/resource/translate', param)
   },
   // 保存数据资源
   saveResource: (param) => {
-    return http.post('/api/resource/save', param)
-  },
-  // // 保存数据资源
-  // createResource: (param) => {
-  //   return http.post('/api/resource/create', param)
-  // },
-  // // 保存数据资源
-  // updateResource: (param) => {
-  //   return http.put('/api/resource/update', param)
-  // },
-  // 数据资源上传
+    return http.post('/resource/save', param)
+  },
+  // 数据资源上传  未知
   uploadResource: (param) => {
-    return http.upload('/DataOps-platform/data/resource/upload', param)
+    return http.upload('/meta/resource/upload', param)
   },
-  // 获取数据资源文件流
+  // 获取数据资源文件流  未知
   getResourceFile: (param) => {
-    return http.download('/DataOps-platform/data/resource/display', param)
+    return http.download('/meta/resource/download', param)
   },
-  // 解析非结构化文本展示信息
+  // 解析非结构化文本展示信息  未知
   getUnstructured: (param) => {
-    return http.post('/DataOps-platform/text/resource/translate', param)
-  },
-  // 保存非结构化文本解析
-  saveUnstructured: (param) => {
-    return http.post('/DataOps-platform/text/resource/save', param)
-  },
-  // 获取资源血缘关系
-  getResourceRelationList: (param) => {
-    return http.post('/DataOps-platform/model/relatives/relation', param)
+    return http.post('/text/resource/translate', param)
   },
   // 查看资源图谱
   getResourceGraph: (param) => {
-    return http.post('/DataOps-platform/data/resource/graph/all', param)
+    return http.post('/resource/graph/all', param)
   },
-  // 查看资源图谱
+  // 解析一个文件中多份DDL 文件上传接口 参数错误
   resourceParseByDDL: (param) => {
-    return http.upload('/DataOps-platform/sql/ddl/identify', param)
+    return http.upload('/resource/ddl/identify', param)
   },
-  // 更新 ddl
+  // DDL数据资源更新 未确认
   resourceUpdateByDDL: (param) => {
-    return http.post('/DataOps-platform/data/resource/update', param)
+    return http.post('/data/resource/update', param)
+  },
+  // 通过资源id查找元数据
+  getMetaDataById: (param) => {
+    return http.post('/resource/search', param)
+    // return http.post('/id/data/search', param)
   }
 }
 
 // 数据模型
 const dataModel = {
-  // 血缘关系查看
-  getModelRelation: (param) => {
-    return http.post('/DataOps-platform/model/data/relation', param)
-  },
   // 模型列表
   getModelList: (param) => {
-    return http.post('/DataOps-platform/data/model/list', param)
+    return http.post('/model/data/model/list', param)
   },
+  // 查看模型详情
   getModelDetails: (param) => {
-    return http.post('/DataOps-platform/data/model/detail', param)
+    return http.post('/model/data/model/detail', param)
   },
   // 查看模型图谱
   getModelListToGraph: (param) => {
-    return http.post('/DataOps-platform/data/model/list/graph', param)
+    return http.post('/model/data/model/graph/all', param)
   },
-  // 保存模型
-  saveModel: (param) => {
-    return http.post('/DataOps-platform/model/data/search', param)
+  // 新增模型
+  addModel: (param) => {
+    return http.post('/model/model/data/model/add', param)
   },
   // 删除模型
   deleteModel: (param) => {
-    return http.post('/DataOps-platform/data/model/delete', param)
+    return http.post('/model/data/model/delete', param)
   },
-  // 新增模型:模型选择模型
+  // 新增模型:模型选择模型 未知
   addModelByModel: (param) => {
-    return http.post('/DataOps-platform/model/data/model/add', param)
+    return http.post('/model/data/model/add', param)
   },
   // 查看模型图谱
   getModelGraph: (param) => {
-    return http.post('/DataOps-platform/data/model/graph/all', param)
+    return http.post('/data/model/graph/all', param)
   },
+  // 更新模型
   updateModel: (param) => {
-    return http.post('/DataOps-platform/data/model/update', param)
+    return http.post('/model/data/model/update', param)
   },
-  // addModelByDDL: (param) => {
-  //   return http.post('/DataOps-platform/model/data/sql', param)
-  // },
+  // 通过ddl保存模型
   saveModelByDDL: (param) => {
-    return http.post('/DataOps-platform/data/model/save', param)
+    return http.post('/model/data/model/save', param)
   }
 }
 
@@ -162,23 +131,23 @@ const dataModel = {
 const dataLabel = {
   // 列表
   dataLabelList: (param) => {
-    return http.post('/DataOps-platform/data/label/list', param)
+    return http.post('/interface/data/label/list', param)
   },
   // 新增
   dataLabelAdd: (param) => {
-    return http.post('/DataOps-platform/data/label/add', param)
+    return http.post('/interface/data/label/add', param)
   },
   // 详情
   dataLabelDetails: (param) => {
-    return http.post('/DataOps-platform/data/label/detail', param)
+    return http.post('/interface/data/label/detail', param)
   },
-  // 详情
+  // 标签图谱
   dataLabelGraph: (param) => {
-    return http.post('/DataOps-platform/data/label/graph/all', param)
+    return http.post('/interface/data/label/graph/all', param)
   },
   // 数据标签动态识别分组
   dataLabelIdentifyGroup: (param) => {
-    return http.post('/DataOps-platform/data/label/dynamic/identify', param)
+    return http.post('/interface/data/label/dynamic/identify', param)
   }
 }
 
@@ -186,23 +155,23 @@ const dataLabel = {
 const dataStandard = {
   // 标准列表
   dataStandardList: (param) => {
-    return http.post('/DataOps-platform/data/standard/list', param)
+    return http.post('/interface/data/standard/list', param)
   },
   // 新增
   dataStandardAdd: (param) => {
-    return http.post('/DataOps-platform/data/standard/add', param)
+    return http.post('/interface/data/standard/add', param)
   },
   // 详情
   dataStandardDetails: (param) => {
-    return http.post('/DataOps-platform/data/standard/detail', param)
+    return http.post('/interface/data/standard/detail', param)
   },
   // 生成操作代码
   dataStandardCodeGenerate: (param) => {
-    return http.post('/DataOps-platform/data/standard/code', param)
+    return http.post('/interface/data/standard/code', param)
   },
-  // 生成操作代码
+  // 标签图谱
   dataStandardGraph: (param) => {
-    return http.post('/DataOps-platform/data/standard/graph/all', param)
+    return http.post('/interface/data/standard/graph/all', param)
   }
 }
 
@@ -210,35 +179,42 @@ const dataStandard = {
 const dataIndicator = {
   // 指标列表
   dataIndicatorList: (param) => {
-    return http.post('/DataOps-platform/data/metric/list', param)
+    return http.post('/metric/data/metric/list', param)
   },
   // 指标列表切换图谱
   dataIndicatorListToGraph: (param) => {
-    return http.post('/DataOps-platform/data/metric/list/graph', param)
+    // return http.post('/data/metric/list/graph', param)
+    return http.post('/metric/data/metric/list/graph', param)
   },
   // 新增指标
   dataIndicatorAdd: (param) => {
-    return http.post('/DataOps-platform/data/metric/add', param)
+    // return http.post('/data/metric/add', param)
+    return http.post('/metric/data/metric/add', param)
   },
   // 新增更新
   dataIndicatorUpdate: (param) => {
-    return http.post('/DataOps-platform/data/metric/update', param)
+    // return http.post('/data/metric/update', param)
+    return http.post('/metric/data/metric/update', param)
   },
   // 指标详情
   dataIndicatorDetails: (param) => {
-    return http.post('/DataOps-platform/data/metric/detail', param)
+    return http.post('/metric/data/metric/detail', param)
+    // return http.post('/data/metric/detail', param)
   },
   // 指标血缘关系检测
   dataIndicatorRelation: (param) => {
-    return http.post('/DataOps-platform/data/metric/relation', param)
+    // return http.post('/data/metric/relation', param)
+    return http.post('/metric/data/metric/relation', param)
   },
+  // 指标生成代码
   dataIndicatorCodeGenerate: (param) => {
-    return http.post('/DataOps-platform/data/metric/code', param)
+    // return http.post('/data/metric/code', param)
+    return http.post('/metric/data/metric/code', param)
   },
   // 指标图谱
   dataIndicatorGraph: (param) => {
-    // return http.post('/DataOps-platform/data/metric/graph', param)
-    return http.post('/DataOps-platform/data/metric/graph/all', param)
+    // return http.post('/data/metric/graph', param)
+    return http.post('/data/metric/graph/all', param)
   }
 }
 
@@ -271,43 +247,38 @@ const LLM = {
 }
 
 const other = {
-// 资源 & 模型 列表
+// 资源 & 模型 列表 未接
   getResourceAndModelList: (param) => {
-    return http.post('/DataOps-platform/resource/model/list', param)
+    return http.post('/resource/model/list', param)
   },
-  // 查看图谱
-  dataGraphById: (param) => {
-    return http.post('/DataOps-platform/id/data/graph', param)
-  },
-
-  // 生产线调度
+  // 生产线调度 未接
   productionLineDispatch: (param) => {
-    return http.post('/DataOps-platform/id/data/save', param)
+    return http.post('/id/data/save', param)
   },
-  // 获取资源ddl
+  // 获取资源ddl 未接
   getDDL: (param) => {
-    return http.post('/DataOps-platform/id/data/ddl', param)
+    return http.post('/id/data/ddl', param)
   },
 
   // 生产线执行非结构化文档 实体 关系
   runUnstructured: (param) => {
-    return http.post('/DataOps-platform/text/resource/node', param)
+    return http.post('/text/resource/node', param)
   },
   // 生产线执行非结构化文档 元数据内容
   runUnstructuredMetadata: (param) => {
-    return http.post('/DataOps-platform/processing/unstructured/data', param)
+    return http.post('/processing/unstructured/data', param)
   },
   // 产品知识库列表
   productKnowledgeBaseList: (param) => {
-    return http.post('/DataOps-platform/text/product/list', param)
+    return http.post('/text/product/list', param)
   },
   // 直接删除图谱元素
   graphDataDelete: (param) => {
-    return http.post('/DataOps-platform/metric/label/standard/delete', param)
+    return http.post('/metric/label/standard/delete', param)
   },
   // 直接删除图谱元素
   getGraphMetadataById: (param) => {
-    return http.post('/DataOps-platform/graph/meta/include', param)
+    return http.post('/graph/meta/include', param)
   }
 }
 

+ 3 - 3
src/api/dataMaintenace.js

@@ -23,14 +23,14 @@ export function maintainrunList (params) {
 
 // 待过滤-del
 export function filterlistdel (params) {
-  return http.post('/DataOps-platform/data/delete/filter', params)
+  return http.post('/data/delete/filter', params)
 }
 
 export function filterlist (params) {
-  return http.post('/DataOps-platform/data/view/filter', params)
+  return http.post('/data/view/filter', params)
 }
 
 // 已过滤词表搜索
 export function searchFilter (params) {
-  return http.post('/DataOps-platform/data/search/filter', params)
+  return http.post('/data/search/filter', params)
 }

+ 5 - 5
src/api/panoramic.js

@@ -82,7 +82,7 @@ export function managementLoan (params) {
 
 // 亲属关系图谱
 export function familyShowAtlas (params) {
-  return http.post('/DataOps-platform/family/show/atlas', params)
+  return http.post('/family/show/atlas', params)
 }
 
 // 金融同业情况
@@ -201,22 +201,22 @@ export function customerManagersAssessmentDownload (params) {
 
 // 全景机构-员工总结
 export function deptViewInfo (params) {
-  return http.post('/DataOps-platform/institution/view/info', params)
+  return http.post('/institution/view/info', params)
 }
 
 // 全景员工-员工总结
 export function empViewInfo (params) {
-  return http.post('/DataOps-platform/personnel/view/info', params)
+  return http.post('/personnel/view/info', params)
 }
 
 // 全景员工-网讯文章
 export function empArticle (params) {
-  return http.post('/DataOps-platform/personnel/network/info', params)
+  return http.post('/personnel/network/info', params)
 }
 
 // 全景机构-网讯文章
 export function deptArticle (params) {
-  return http.post('/DataOps-platform/institution/network/info', params)
+  return http.post('/institution/network/info', params)
 }
 
 // 全景机构-部门网点 中层干部年龄明细

+ 4 - 105
src/api/productionLine.js

@@ -1,114 +1,13 @@
 import http from '@/utils/request'
-// import axios from 'axios'
-
-// const isLocal = process.env.NODE_ENV !== 'production'
-
-// const localHttp = {
-//   post: (url, param) => {
-//     return new Promise((resolve, reject) => {
-//       axios.post(`http://192.168.3.175${url}`, param, {
-//         headers: {
-//           'Content-Type': 'application/json',
-//           Accept: 'application/json'
-//         }
-//       })
-//         .then(({ data }) => {
-//           const res = data
-//           if (res.code !== 200) {
-//             return reject(res.msg?.error || res.msg)
-//           }
-//           resolve(res)
-//         })
-//         .catch(err => {
-//           reject(err)
-//         })
-//     })
-//   },
-//   get: (url, params) => {
-//     return new Promise((resolve, reject) => {
-//       axios.get(`http://192.168.3.175${url}`, { params }, {})
-//         .then(({ data }) => {
-//           const res = data
-//           if (res.code !== 200) {
-//             return reject(res.msg?.error || res.msg)
-//           }
-//           resolve(res)
-//         })
-//         .catch(err => {
-//           reject(err)
-//         })
-//     })
-//   },
-//   upload: (url, param) => {
-//     return new Promise((resolve, reject) => {
-//       axios.post(`http://192.168.3.175${url}`, param, {
-//         timeout: 600000,
-//         headers: {
-//           'Content-Type': 'multipart/form-data'
-//         }
-//       })
-//         .then(({ data }) => {
-//           const res = data
-//           if (res.code !== 200) {
-//             return reject(res.msg?.error || res.msg)
-//           }
-//           resolve(res)
-//         })
-//         .catch(err => {
-//           reject(err)
-//         })
-//     })
-//   },
-//   formData (url, param) {
-//     return new Promise((resolve, reject) => {
-//       axios.post(`http://192.168.3.175${url}`, param, {
-//         timeout: 600000,
-//         headers: {
-//           'Content-Type': 'application/x-www-form-urlencoded'
-//         }
-//       })
-//         .then(({ data }) => {
-//           const res = data
-//           if (res.code !== 200) {
-//             return reject(res.msg?.error || res.msg)
-//           }
-//           resolve(res)
-//         })
-//         .catch(err => {
-//           reject(err)
-//         })
-//     })
-//   },
-//   download: (url, param) => {
-//     return new Promise((resolve, reject) => {
-//       axios.post(`http://192.168.3.175${url}`, param, {
-//         timeout: 10000,
-//         headers: {
-//           'Content-Type': 'application/json'
-//         },
-//         responseType: 'blob'
-//       })
-//         .then((res) => {
-//           resolve({
-//             data: res.data,
-//             name: ''
-//           })
-//         })
-//         .catch(err => {
-//           reject(err)
-//         })
-//     })
-//   }
-// }
-
-// const _http = isLocal ? localHttp : http
 
 // 生产线列表
 export function getDataFactoryList (params) {
-  return http.post('/DataOps-platform/production/line/list', params)
+  return http.post('/pipeline/production/line/list', params)
+  // return http.post('/production/line/list', params)
 }
 
 // 生产线详情
 export function getDataFactoryDetails (params) {
-  return http.post('/DataOps-platform/production/line/graph', params)
+  return http.post('/pipeline/production/line/graph', params)
+  // return http.post('/production/line/graph', params)
 }

+ 5 - 5
src/api/statistics.js

@@ -151,27 +151,27 @@ export function performanceMajorDetail (params) {
 
 // 亲属关系分析
 export function relationshipAnalysis (params) {
-  return http.post('/DataOps-platform/make/kinship/pie', params)
+  return http.post('/make/kinship/pie', params)
 }
 
 // 亲属关系分析-钻取树状图
 export function relationshipAnalysisDetail (params) {
-  return http.post('/DataOps-platform/make/kinship_community/graph', params)
+  return http.post('/make/kinship_community/graph', params)
 }
 
 // 全产品计价-相似度分析
 export function productSimilarity (params) {
-  return http.post('/DataOps-platform/product/similarity', params)
+  return http.post('/product/similarity', params)
 }
 
 // 热点关注-词云
 export function ciyun (params) {
-  return http.post('/DataOps-platform/analysis/person/ciyun', params)
+  return http.post('/analysis/person/ciyun', params)
 }
 
 // 词云钻取
 export function ciyunDetails (params) {
-  return http.post('/DataOps-platform/analysis/detail/ciyun', params)
+  return http.post('/analysis/detail/ciyun', params)
 }
 
 // 员工总结图谱&钻取

+ 1 - 1
src/api/user.js

@@ -1,7 +1,7 @@
 import http from '@/utils/request'
 
 export function login (data) {
-  return http.post('/api/system/auth/login', data)
+  return http.post('/system/auth/login', data)
 }
 
 // 用户列表

+ 303 - 303
src/router/routes.js

@@ -2069,310 +2069,310 @@ export default {
       alwaysShow: 0,
       metastr: '{"allowClick":false,"enName":"data book","title":"数据手册","target":false}',
       open: null
-    },
-    {
-      meun: '',
-      code: '',
-      hidden: 0,
-      rootId: 0,
-      icon: 'mdi-cog',
-      remark: '',
-      type: 0,
-      title: '系统管理',
-      local: '',
-      path: '/systemManage',
-      urls: '',
-      children: [
-        {
-          meun: '',
-          code: '',
-          hidden: 0,
-          rootId: 742,
-          icon: 'mdi-security',
-          remark: '',
-          type: 1,
-          title: '安全中心',
-          local: '',
-          path: '/systemManage/safety',
-          urls: '',
-          children: [],
-          enName: 'safety',
-          id: 1234,
-          redirect: '',
-          level: 2,
-          openPath: '',
-          active: '',
-          label: '安全中心',
-          sort: 0,
-          parentId: 742,
-          effectiveStatus: true,
-          parentName: '',
-          component: 'systemManage/safety',
-          meta: {
-            keepAlive: false,
-            allowClick: false,
-            roles: [],
-            enName: 'safety',
-            icon: 'mdi-security',
-            editModules: false,
-            title: '安全中心',
-            fullScreen: false,
-            target: false,
-            dataPermission: false,
-            effectiveStatus: true
-          },
-          name: 'safety',
-          style: '',
-          alwaysShow: 0,
-          metastr: '{"keepAlive":false,"allowClick":false,"enName":"safety","editModules":false,"title":"安全中心","fullScreen":false,"target":false,"dataPermission":false}',
-          open: null
-        },
-        {
-          meun: '',
-          code: '',
-          hidden: 0,
-          rootId: 742,
-          icon: 'mdi-auto-fix',
-          remark: '',
-          type: 1,
-          title: '平台设置',
-          local: '',
-          path: '/systemManage/systemIndividuation',
-          urls: '',
-          children: [],
-          enName: 'System Setting',
-          id: 807,
-          redirect: '',
-          level: 2,
-          openPath: '',
-          active: '',
-          label: '平台设置',
-          sort: 3,
-          parentId: 742,
-          effectiveStatus: true,
-          parentName: 'systemManage',
-          component: 'systemManage/systemIndividuation',
-          meta: {
-            keepAlive: false,
-            allowClick: false,
-            roles: [],
-            enName: 'System Setting',
-            icon: 'mdi-auto-fix',
-            editModules: false,
-            title: '平台设置',
-            fullScreen: false,
-            target: false,
-            effectiveStatus: true
-          },
-          name: 'systemIndividuation',
-          style: '',
-          alwaysShow: 0,
-          metastr: '{"keepAlive":false,"allowClick":false,"enName":"System Setting","editModules":false,"title":"平台设置","fullScreen":false,"target":false}',
-          open: null
-        },
-        {
-          meun: '',
-          code: '',
-          hidden: 0,
-          rootId: 742,
-          icon: '',
-          remark: '',
-          type: 1,
-          title: '租户管理',
-          local: '',
-          path: '/systemManage/tenantry',
-          urls: '',
-          children: [],
-          enName: 'Tenant Management',
-          id: 650,
-          redirect: '',
-          level: 2,
-          openPath: '',
-          active: '',
-          label: '租户管理',
-          sort: 40,
-          parentId: 742,
-          effectiveStatus: true,
-          parentName: 'systemManage',
-          component: 'systemManage/tenantry',
-          meta: {
-            keepAlive: false,
-            allowClick: false,
-            roles: [],
-            enName: 'Tenant Management',
-            icon: '',
-            editModules: false,
-            title: '租户管理',
-            fullScreen: false,
-            target: false,
-            effectiveStatus: true
-          },
-          name: 'tenantry',
-          style: '',
-          alwaysShow: 0,
-          metastr: '{"keepAlive":false,"allowClick":false,"enName":"Tenant Management","editModules":false,"title":"租户管理","fullScreen":false,"target":false}',
-          open: null
-        },
-        {
-          meun: '',
-          code: '',
-          hidden: 0,
-          rootId: 742,
-          icon: 'mdi-microsoft-xbox-controller-menu',
-          remark: '',
-          type: 1,
-          title: '菜单管理',
-          local: '',
-          path: '/systemManage/routeManage',
-          urls: '',
-          children: [],
-          enName: 'routeManage',
-          id: 648,
-          redirect: '',
-          level: 2,
-          openPath: '',
-          active: '',
-          label: '菜单管理',
-          sort: 42,
-          parentId: 742,
-          effectiveStatus: true,
-          parentName: 'systemManage',
-          component: 'systemManage/routeManage',
-          meta: {
-            keepAlive: false,
-            allowClick: false,
-            roles: [],
-            enName: 'routeManage',
-            icon: 'mdi-microsoft-xbox-controller-menu',
-            editModules: false,
-            title: '菜单管理',
-            fullScreen: false,
-            target: false,
-            dataPermission: false,
-            effectiveStatus: true
-          },
-          name: 'routeManage',
-          style: '',
-          alwaysShow: 0,
-          metastr: '{"keepAlive":false,"allowClick":false,"enName":"routeManage","editModules":false,"title":"菜单管理","fullScreen":false,"target":false,"dataPermission":false}',
-          open: null
-        },
-        {
-          meun: '',
-          code: '',
-          hidden: 0,
-          rootId: 742,
-          icon: 'mdi-account-details',
-          remark: '',
-          type: 1,
-          title: '角色管理',
-          local: '',
-          path: '/systemManage/roleManage',
-          urls: '',
-          children: [],
-          enName: 'roleManage',
-          id: 719,
-          redirect: '',
-          level: 2,
-          openPath: '',
-          active: '',
-          label: '角色管理',
-          sort: 45,
-          parentId: 742,
-          effectiveStatus: true,
-          parentName: 'systemManage',
-          component: 'systemManage/roleManage',
-          meta: {
-            keepAlive: false,
-            allowClick: false,
-            roles: [],
-            enName: 'roleManage',
-            icon: 'mdi-account-details',
-            editModules: false,
-            title: '角色管理',
-            fullScreen: false,
-            target: false,
-            dataPermission: false,
-            effectiveStatus: true
-          },
-          name: 'roleManage',
-          style: '',
-          alwaysShow: 0,
-          metastr: '{"keepAlive":false,"allowClick":false,"enName":"roleManage","editModules":false,"title":"角色管理","fullScreen":false,"target":false,"dataPermission":false}',
-          open: null
-        },
-        {
-          meun: '',
-          code: '',
-          hidden: 0,
-          rootId: 742,
-          icon: 'mdi-card-account-details-outline',
-          remark: '',
-          type: 1,
-          title: '用户管理',
-          local: '',
-          path: '/systemManage/user',
-          urls: '',
-          children: [],
-          enName: 'userManage',
-          id: 690,
-          redirect: '',
-          level: 2,
-          openPath: '',
-          active: '',
-          label: '用户管理',
-          sort: 50,
-          parentId: 742,
-          effectiveStatus: true,
-          parentName: 'systemManage',
-          component: 'systemManage/user',
-          meta: {
-            keepAlive: false,
-            allowClick: false,
-            roles: [],
-            enName: 'userManage',
-            icon: 'mdi-card-account-details-outline',
-            editModules: false,
-            title: '用户管理',
-            fullScreen: false,
-            target: false,
-            dataPermission: false,
-            effectiveStatus: true
-          },
-          name: 'userManage',
-          style: '',
-          alwaysShow: 0,
-          metastr: '{"keepAlive":false,"allowClick":false,"enName":"userManage","editModules":false,"title":"用户管理","fullScreen":false,"target":false,"dataPermission":false}',
-          open: null
-        }
-      ],
-      enName: 'System Manage',
-      id: 742,
-      redirect: '',
-      level: 1,
-      openPath: '',
-      active: '',
-      label: '系统管理',
-      sort: 95,
-      parentId: 0,
-      effectiveStatus: true,
-      parentName: '',
-      component: 'Layout',
-      meta: {
-        allowClick: false,
-        roles: [],
-        enName: 'System Manage',
-        icon: 'mdi-cog',
-        title: '系统管理',
-        target: false,
-        effectiveStatus: true
-      },
-      name: 'systemManage',
-      style: '',
-      alwaysShow: 0,
-      metastr: '{"allowClick":false,"enName":"System Manage","title":"系统管理","target":false}',
-      open: null
     }
+    // {
+    //   meun: '',
+    //   code: '',
+    //   hidden: 0,
+    //   rootId: 0,
+    //   icon: 'mdi-cog',
+    //   remark: '',
+    //   type: 0,
+    //   title: '系统管理',
+    //   local: '',
+    //   path: '/systemManage',
+    //   urls: '',
+    //   children: [
+    //     {
+    //       meun: '',
+    //       code: '',
+    //       hidden: 0,
+    //       rootId: 742,
+    //       icon: 'mdi-security',
+    //       remark: '',
+    //       type: 1,
+    //       title: '安全中心',
+    //       local: '',
+    //       path: '/systemManage/safety',
+    //       urls: '',
+    //       children: [],
+    //       enName: 'safety',
+    //       id: 1234,
+    //       redirect: '',
+    //       level: 2,
+    //       openPath: '',
+    //       active: '',
+    //       label: '安全中心',
+    //       sort: 0,
+    //       parentId: 742,
+    //       effectiveStatus: true,
+    //       parentName: '',
+    //       component: 'systemManage/safety',
+    //       meta: {
+    //         keepAlive: false,
+    //         allowClick: false,
+    //         roles: [],
+    //         enName: 'safety',
+    //         icon: 'mdi-security',
+    //         editModules: false,
+    //         title: '安全中心',
+    //         fullScreen: false,
+    //         target: false,
+    //         dataPermission: false,
+    //         effectiveStatus: true
+    //       },
+    //       name: 'safety',
+    //       style: '',
+    //       alwaysShow: 0,
+    //       metastr: '{"keepAlive":false,"allowClick":false,"enName":"safety","editModules":false,"title":"安全中心","fullScreen":false,"target":false,"dataPermission":false}',
+    //       open: null
+    //     },
+    //     {
+    //       meun: '',
+    //       code: '',
+    //       hidden: 0,
+    //       rootId: 742,
+    //       icon: 'mdi-auto-fix',
+    //       remark: '',
+    //       type: 1,
+    //       title: '平台设置',
+    //       local: '',
+    //       path: '/systemManage/systemIndividuation',
+    //       urls: '',
+    //       children: [],
+    //       enName: 'System Setting',
+    //       id: 807,
+    //       redirect: '',
+    //       level: 2,
+    //       openPath: '',
+    //       active: '',
+    //       label: '平台设置',
+    //       sort: 3,
+    //       parentId: 742,
+    //       effectiveStatus: true,
+    //       parentName: 'systemManage',
+    //       component: 'systemManage/systemIndividuation',
+    //       meta: {
+    //         keepAlive: false,
+    //         allowClick: false,
+    //         roles: [],
+    //         enName: 'System Setting',
+    //         icon: 'mdi-auto-fix',
+    //         editModules: false,
+    //         title: '平台设置',
+    //         fullScreen: false,
+    //         target: false,
+    //         effectiveStatus: true
+    //       },
+    //       name: 'systemIndividuation',
+    //       style: '',
+    //       alwaysShow: 0,
+    //       metastr: '{"keepAlive":false,"allowClick":false,"enName":"System Setting","editModules":false,"title":"平台设置","fullScreen":false,"target":false}',
+    //       open: null
+    //     },
+    //     {
+    //       meun: '',
+    //       code: '',
+    //       hidden: 0,
+    //       rootId: 742,
+    //       icon: '',
+    //       remark: '',
+    //       type: 1,
+    //       title: '租户管理',
+    //       local: '',
+    //       path: '/systemManage/tenantry',
+    //       urls: '',
+    //       children: [],
+    //       enName: 'Tenant Management',
+    //       id: 650,
+    //       redirect: '',
+    //       level: 2,
+    //       openPath: '',
+    //       active: '',
+    //       label: '租户管理',
+    //       sort: 40,
+    //       parentId: 742,
+    //       effectiveStatus: true,
+    //       parentName: 'systemManage',
+    //       component: 'systemManage/tenantry',
+    //       meta: {
+    //         keepAlive: false,
+    //         allowClick: false,
+    //         roles: [],
+    //         enName: 'Tenant Management',
+    //         icon: '',
+    //         editModules: false,
+    //         title: '租户管理',
+    //         fullScreen: false,
+    //         target: false,
+    //         effectiveStatus: true
+    //       },
+    //       name: 'tenantry',
+    //       style: '',
+    //       alwaysShow: 0,
+    //       metastr: '{"keepAlive":false,"allowClick":false,"enName":"Tenant Management","editModules":false,"title":"租户管理","fullScreen":false,"target":false}',
+    //       open: null
+    //     },
+    //     {
+    //       meun: '',
+    //       code: '',
+    //       hidden: 0,
+    //       rootId: 742,
+    //       icon: 'mdi-microsoft-xbox-controller-menu',
+    //       remark: '',
+    //       type: 1,
+    //       title: '菜单管理',
+    //       local: '',
+    //       path: '/systemManage/routeManage',
+    //       urls: '',
+    //       children: [],
+    //       enName: 'routeManage',
+    //       id: 648,
+    //       redirect: '',
+    //       level: 2,
+    //       openPath: '',
+    //       active: '',
+    //       label: '菜单管理',
+    //       sort: 42,
+    //       parentId: 742,
+    //       effectiveStatus: true,
+    //       parentName: 'systemManage',
+    //       component: 'systemManage/routeManage',
+    //       meta: {
+    //         keepAlive: false,
+    //         allowClick: false,
+    //         roles: [],
+    //         enName: 'routeManage',
+    //         icon: 'mdi-microsoft-xbox-controller-menu',
+    //         editModules: false,
+    //         title: '菜单管理',
+    //         fullScreen: false,
+    //         target: false,
+    //         dataPermission: false,
+    //         effectiveStatus: true
+    //       },
+    //       name: 'routeManage',
+    //       style: '',
+    //       alwaysShow: 0,
+    //       metastr: '{"keepAlive":false,"allowClick":false,"enName":"routeManage","editModules":false,"title":"菜单管理","fullScreen":false,"target":false,"dataPermission":false}',
+    //       open: null
+    //     },
+    //     {
+    //       meun: '',
+    //       code: '',
+    //       hidden: 0,
+    //       rootId: 742,
+    //       icon: 'mdi-account-details',
+    //       remark: '',
+    //       type: 1,
+    //       title: '角色管理',
+    //       local: '',
+    //       path: '/systemManage/roleManage',
+    //       urls: '',
+    //       children: [],
+    //       enName: 'roleManage',
+    //       id: 719,
+    //       redirect: '',
+    //       level: 2,
+    //       openPath: '',
+    //       active: '',
+    //       label: '角色管理',
+    //       sort: 45,
+    //       parentId: 742,
+    //       effectiveStatus: true,
+    //       parentName: 'systemManage',
+    //       component: 'systemManage/roleManage',
+    //       meta: {
+    //         keepAlive: false,
+    //         allowClick: false,
+    //         roles: [],
+    //         enName: 'roleManage',
+    //         icon: 'mdi-account-details',
+    //         editModules: false,
+    //         title: '角色管理',
+    //         fullScreen: false,
+    //         target: false,
+    //         dataPermission: false,
+    //         effectiveStatus: true
+    //       },
+    //       name: 'roleManage',
+    //       style: '',
+    //       alwaysShow: 0,
+    //       metastr: '{"keepAlive":false,"allowClick":false,"enName":"roleManage","editModules":false,"title":"角色管理","fullScreen":false,"target":false,"dataPermission":false}',
+    //       open: null
+    //     },
+    //     {
+    //       meun: '',
+    //       code: '',
+    //       hidden: 0,
+    //       rootId: 742,
+    //       icon: 'mdi-card-account-details-outline',
+    //       remark: '',
+    //       type: 1,
+    //       title: '用户管理',
+    //       local: '',
+    //       path: '/systemManage/user',
+    //       urls: '',
+    //       children: [],
+    //       enName: 'userManage',
+    //       id: 690,
+    //       redirect: '',
+    //       level: 2,
+    //       openPath: '',
+    //       active: '',
+    //       label: '用户管理',
+    //       sort: 50,
+    //       parentId: 742,
+    //       effectiveStatus: true,
+    //       parentName: 'systemManage',
+    //       component: 'systemManage/user',
+    //       meta: {
+    //         keepAlive: false,
+    //         allowClick: false,
+    //         roles: [],
+    //         enName: 'userManage',
+    //         icon: 'mdi-card-account-details-outline',
+    //         editModules: false,
+    //         title: '用户管理',
+    //         fullScreen: false,
+    //         target: false,
+    //         dataPermission: false,
+    //         effectiveStatus: true
+    //       },
+    //       name: 'userManage',
+    //       style: '',
+    //       alwaysShow: 0,
+    //       metastr: '{"keepAlive":false,"allowClick":false,"enName":"userManage","editModules":false,"title":"用户管理","fullScreen":false,"target":false,"dataPermission":false}',
+    //       open: null
+    //     }
+    //   ],
+    //   enName: 'System Manage',
+    //   id: 742,
+    //   redirect: '',
+    //   level: 1,
+    //   openPath: '',
+    //   active: '',
+    //   label: '系统管理',
+    //   sort: 95,
+    //   parentId: 0,
+    //   effectiveStatus: true,
+    //   parentName: '',
+    //   component: 'Layout',
+    //   meta: {
+    //     allowClick: false,
+    //     roles: [],
+    //     enName: 'System Manage',
+    //     icon: 'mdi-cog',
+    //     title: '系统管理',
+    //     target: false,
+    //     effectiveStatus: true
+    //   },
+    //   name: 'systemManage',
+    //   style: '',
+    //   alwaysShow: 0,
+    //   metastr: '{"allowClick":false,"enName":"System Manage","title":"系统管理","target":false}',
+    //   open: null
+    // }
   ],
   permission: [
     'systemManage:roleManage:create',

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

@@ -427,7 +427,7 @@ export default {
         })
       }
       this.overlay = true
-      const subApi = this.itemData.id ? api.updateModel : this.isModel ? api.addModelByModel : api.saveModel
+      const subApi = this.itemData.id ? api.updateModel : this.isModel ? api.addModelByModel : api.addModel
       try {
         await subApi(query)
         this.$snackbar.success('操作成功')

+ 0 - 92
src/views/dataGovernance/dataResource/components/editSelected.vue

@@ -97,33 +97,12 @@ export default {
     }
   },
   mounted () {
-    // this.initType()
-    // this.initStandard()
     this.$nextTick(() => {
       console.log(this.$refs.table.$el.clientHeight, this.$refs.table)
       this.height = this.$refs.table.$el.clientHeight
     })
   },
   methods: {
-    // metadataInit (query) {
-    //   return new Promise((resolve, reject) => {
-    //     api.getMetaDataList(query).then(({ data }) => {
-    //       resolve({
-    //         items: data.records,
-    //         total: data.total
-    //       })
-    //     }).catch(error => {
-    //       reject(error)
-    //     })
-    //   })
-    // },
-    // metadataSave (use, item) {
-    //   item.map.id = use.id
-    //   item.map.name = use.name
-    // },
-    // metadataClose (item) {
-    //   item.map = null
-    // },
     standardInit (query) {
       return new Promise((resolve, reject) => {
         api.dataStandardList(query).then(({ data }) => {
@@ -142,77 +121,6 @@ export default {
     standardClose (item) {
       item.map.data_standard = null
     },
-    // open (open) {
-    //   this.openFn = open
-    //   this.standard.search = null
-    //   this.search()
-    // },
-    // search () {
-    //   this.standard.pageInfo.current = 1
-    //   this.standard.items = []
-    //   this.initStandard()
-    // },
-    // searchStandardMore () {
-    //   this.standard.pageInfo.current++
-    //   this.initStandard()
-    // },
-    // openMetadata (open) {
-    //   this.openFn = open
-    //   this.metadata.search = null
-    //   this.searchMetadata()
-    // },
-    // searchMetadata () {
-    //   this.metadata.pageInfo.current = 1
-    //   this.metadata.items = []
-    //   this.initMetadata()
-    // },
-    // searchMetadataMore () {
-    //   this.metadata.pageInfo.current++
-    //   this.initMetadata()
-    // },
-    // saveMetadata ({ id, name }, item) {
-    //   item.map.id = id
-    //   item.map.name = name
-    // },
-    // saveType (val, item) {
-    //   item.map.data_type = val.label
-    // },
-    // async initStandard () {
-    //   try {
-    //     this.standard.loading = true
-    //     try {
-    //       const { data } = await api.dataStandardList({
-    //         ...this.standard.pageInfo,
-    //         name: this.standard.search
-    //       })
-    //       this.standard.items.push(...data.records)
-    //       this.standard.total = data.total
-    //       this.openFn(true)
-    //     } catch (error) {
-    //       this.$snackbar.error(error)
-    //     } finally {
-    //       this.standard.loading = false
-    //     }
-    //   } catch (error) {
-    //     this.$snackbar.error(error)
-    //   }
-    // },
-    // async initType () {
-    //   this.type.items = metadataType
-    // },
-    // async initMetadata () {
-    //   this.metadata.loading = true
-    //   try {
-    //     const { data } = await api.getMetaDataList({ ...this.metadata.pageInfo, name: this.metadata.search })
-    //     this.metadata.items.push(...data.records)
-    //     this.metadata.total = data.total
-    //     this.openFn(true)
-    //   } catch (error) {
-    //     this.$snackbar.error(error)
-    //   } finally {
-    //     this.metadata.loading = false
-    //   }
-    // },
     handleClose (index) {
       const items = [...this.value]
       items.splice(index, 1)

+ 2 - 2
vue.config.js

@@ -27,11 +27,11 @@ module.exports = defineConfig({
     // https: false,
     proxy: {
       '/api': {
-        target: process.env.VUE_APP_BASE_API,
+        target: 'https://company.citupro.com:18183/api',
         secure: false, // 是否支持 https,默认 false
         changeOrigin: true, // 是否支持跨域
         pathRewrite: {
-          '^/api': ''
+          '^/api': '/api' // 重写路径,确保请求路径正确
         }
       }
     }