|
@@ -1,10 +1,11 @@
|
|
|
-import ajax from '../util'
|
|
|
+import request from '@/utils/request'
|
|
|
|
|
|
/**
|
|
|
* 删除实体类
|
|
|
* @param opts
|
|
|
*/
|
|
|
-function delEntityClass (id) {
|
|
|
+//旧的delEntityClass函数
|
|
|
+/* function delEntityClass (id) {
|
|
|
return ajax({
|
|
|
method: 'post',
|
|
|
url: '/entcls/del/{id}',
|
|
@@ -12,6 +13,16 @@ function delEntityClass (id) {
|
|
|
id: id
|
|
|
}
|
|
|
})
|
|
|
+} */
|
|
|
+//新的delEntityClass函数
|
|
|
+function delEntityClass(id) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: `/entcls/del/${id}`,
|
|
|
+ params: {
|
|
|
+ id: id
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -20,57 +31,103 @@ function delEntityClass (id) {
|
|
|
* @param2 entClsType
|
|
|
* @param3 pid
|
|
|
*/
|
|
|
-function addEntityClass (data) {
|
|
|
- return ajax({
|
|
|
- method: 'post',
|
|
|
- url: '/entcls/add',
|
|
|
- data: {
|
|
|
- entClsName: data.entClsName,
|
|
|
- pid: data.pid,
|
|
|
- entClsMemo: data.entClsMemo,
|
|
|
- entClsIcon: data.entClsIcon,
|
|
|
- backGroundColor:data.backGroundColor
|
|
|
-
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的addEntityClass函数
|
|
|
+/* function addEntityClass(data) {
|
|
|
+ return ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: '/entcls/add',
|
|
|
+ data: {
|
|
|
+ entClsName: data.entClsName,
|
|
|
+ pid: data.pid,
|
|
|
+ entClsMemo: data.entClsMemo,
|
|
|
+ entClsIcon: data.entClsIcon,
|
|
|
+ backGroundColor: data.backGroundColor
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的addEntityClass函数
|
|
|
+function addEntityClass(data) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: `/entcls/add`,
|
|
|
+ data: {
|
|
|
+ entClsName: data.entClsName,
|
|
|
+ pid: data.pid,
|
|
|
+ entClsMemo: data.entClsMemo,
|
|
|
+ entClsIcon: data.entClsIcon,
|
|
|
+ backGroundColor: data.backGroundColor
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取所有实体类列表
|
|
|
*/
|
|
|
-function getAllEntityClass (isIcon) {
|
|
|
- return ajax({
|
|
|
- method: 'get',
|
|
|
- url: '/entcls',
|
|
|
- data: {
|
|
|
- isIcon: isIcon
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的getAllEntityClass函数
|
|
|
+/* function getAllEntityClass(isIcon) {
|
|
|
+ return ajax({
|
|
|
+ method: 'get',
|
|
|
+ url: '/entcls',
|
|
|
+ data: {
|
|
|
+ isIcon: isIcon
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的getAllEntityClass函数
|
|
|
+function getAllEntityClass(isIcon) {
|
|
|
+ return request({
|
|
|
+ method: 'get',
|
|
|
+ url: `/entcls`,
|
|
|
+ data: {
|
|
|
+ isIcon: isIcon
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取所有根实体类列表
|
|
|
*/
|
|
|
// /graph/entcls/root/tree
|
|
|
- function getAllEntclsRootTree (){
|
|
|
- return ajax({
|
|
|
- method: 'get',
|
|
|
- url: '/entcls/root/tree',
|
|
|
- })
|
|
|
- }
|
|
|
+//旧的getAllEntclsRootTree函数
|
|
|
+/* function getAllEntclsRootTree() {
|
|
|
+ return ajax({
|
|
|
+ method: 'get',
|
|
|
+ url: '/entcls/root/tree',
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的getAllEntclsRootTree函数
|
|
|
+function getAllEntclsRootTree() {
|
|
|
+ return request({
|
|
|
+ method: 'get',
|
|
|
+ url: `/entcls/root/tree`,
|
|
|
+ })
|
|
|
+}
|
|
|
|
|
|
/**
|
|
|
* 获取单个实体类
|
|
|
* @param id 实体类id
|
|
|
*/
|
|
|
-function getEntityClass (id) {
|
|
|
- return ajax({
|
|
|
- method: 'get',
|
|
|
- url: '/entcls/{id}',
|
|
|
- path: {
|
|
|
- id: id
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的getEntityClass函数
|
|
|
+/* function getEntityClass(id) {
|
|
|
+ return ajax({
|
|
|
+ method: 'get',
|
|
|
+ url: '/entcls/{id}',
|
|
|
+ path: {
|
|
|
+ id: id
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的getEntityClass函数
|
|
|
+function getEntityClass(id) {
|
|
|
+ return request({
|
|
|
+ method: 'get',
|
|
|
+ url: `/entcls/${id}`,
|
|
|
+ params: {
|
|
|
+ id: id
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -82,19 +139,35 @@ function getEntityClass (id) {
|
|
|
* @param backGroundColor
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function updateEntityClass (type, id, name, entClsMemo, entClsIcon,backGroundColor) {
|
|
|
- return ajax({
|
|
|
- method: 'post',
|
|
|
- url: '/entcls/update',
|
|
|
- data: {
|
|
|
- entClsAllowAttrType: type,
|
|
|
- entClsID: id,
|
|
|
- entClsName: name,
|
|
|
- entClsMemo: entClsMemo ? entClsMemo : '',
|
|
|
- entClsIcon: entClsIcon,
|
|
|
- backGroundColor: backGroundColor
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的updateEntityClass函数
|
|
|
+/* function updateEntityClass(type, id, name, entClsMemo, entClsIcon, backGroundColor) {
|
|
|
+ return ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: '/entcls/update',
|
|
|
+ data: {
|
|
|
+ entClsAllowAttrType: type,
|
|
|
+ entClsID: id,
|
|
|
+ entClsName: name,
|
|
|
+ entClsMemo: entClsMemo ? entClsMemo : '',
|
|
|
+ entClsIcon: entClsIcon,
|
|
|
+ backGroundColor: backGroundColor
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的updateEntityClass函数
|
|
|
+function updateEntityClass(type, id, name, entClsMemo, entClsIcon, backGroundColor) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: `/entcls/update`,
|
|
|
+ data: {
|
|
|
+ entClsAllowAttrType: type,
|
|
|
+ entClsID: id,
|
|
|
+ entClsName: name,
|
|
|
+ entClsMemo: entClsMemo ? entClsMemo : '',
|
|
|
+ entClsIcon: entClsIcon,
|
|
|
+ backGroundColor: backGroundColor
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -103,15 +176,31 @@ function updateEntityClass (type, id, name, entClsMemo, entClsIcon,backGroundCol
|
|
|
* @param userCode
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function owlFileImport (file) {
|
|
|
- return ajax({
|
|
|
- method: 'post',
|
|
|
- url: '/owl/file/import',
|
|
|
- headers: {'Content-Type': 'multipart/form-data'},
|
|
|
- data: {
|
|
|
- file
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的owlFileImport函数
|
|
|
+/* function owlFileImport(file) {
|
|
|
+ return ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: '/owl/file/import',
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'multipart/form-data'
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ file
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的owlFileImport函数
|
|
|
+function owlFileImport(file) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: `/owl/file/import`,
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'multipart/form-data'
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ file
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -119,14 +208,25 @@ function owlFileImport (file) {
|
|
|
* @param id
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function owlFileExport (id) {
|
|
|
- return ajax({
|
|
|
- method: 'get',
|
|
|
- url: '/owl/file/export',
|
|
|
- data: {
|
|
|
- entClsIDs: id
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的owlFileExport函数
|
|
|
+/* function owlFileExport(id) {
|
|
|
+ return ajax({
|
|
|
+ method: 'get',
|
|
|
+ url: '/owl/file/export',
|
|
|
+ data: {
|
|
|
+ entClsIDs: id
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的owlFileExport函数
|
|
|
+function owlFileExport(id) {
|
|
|
+ return request({
|
|
|
+ method: 'get',
|
|
|
+ url: `/owl/file/export`,
|
|
|
+ data: {
|
|
|
+ entClsIDs: id
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -134,14 +234,25 @@ function owlFileExport (id) {
|
|
|
* @param id
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function entClsTreeLazy (id) {
|
|
|
- return ajax({
|
|
|
- method: 'get',
|
|
|
- url: '/entcls/tree',
|
|
|
- data: {
|
|
|
- entClsID: id
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的entClsTreeLazy函数
|
|
|
+/* function entClsTreeLazy(id) {
|
|
|
+ return ajax({
|
|
|
+ method: 'get',
|
|
|
+ url: '/entcls/tree',
|
|
|
+ data: {
|
|
|
+ entClsID: id
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的entClsTreeLazy函数
|
|
|
+function entClsTreeLazy(id) {
|
|
|
+ return request({
|
|
|
+ method: 'get',
|
|
|
+ url: `/entcls/tree`,
|
|
|
+ data: {
|
|
|
+ entClsID: id
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -149,14 +260,25 @@ function entClsTreeLazy (id) {
|
|
|
* @param id
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function getEntClsParents (id) {
|
|
|
- return ajax({
|
|
|
- method: 'get',
|
|
|
- url: '/entcls/parents',
|
|
|
- data: {
|
|
|
- entClsID: id
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的getEntClsParents函数
|
|
|
+/* function getEntClsParents(id) {
|
|
|
+ return ajax({
|
|
|
+ method: 'get',
|
|
|
+ url: '/entcls/parents',
|
|
|
+ data: {
|
|
|
+ entClsID: id
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的getEntClsParents函数
|
|
|
+function getEntClsParents(id) {
|
|
|
+ return request({
|
|
|
+ method: 'get',
|
|
|
+ url: `/entcls/parents`,
|
|
|
+ data: {
|
|
|
+ entClsID: id
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -164,14 +286,25 @@ function getEntClsParents (id) {
|
|
|
* @param id
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function getEntClsNoneList (id) {
|
|
|
- return ajax({
|
|
|
- method: 'post',
|
|
|
- url: '/attrcls/none/list',
|
|
|
- data: {
|
|
|
- entClsID: id
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的getEntClsNoneList函数
|
|
|
+/* function getEntClsNoneList(id) {
|
|
|
+ return ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: '/attrcls/none/list',
|
|
|
+ data: {
|
|
|
+ entClsID: id
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的getEntClsNoneList函数
|
|
|
+function getEntClsNoneList(id) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: `/attrcls/none/list`,
|
|
|
+ data: {
|
|
|
+ entClsID: id
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -180,14 +313,29 @@ function getEntClsNoneList (id) {
|
|
|
* @param id
|
|
|
* @returns {*}
|
|
|
**/
|
|
|
-function getEntClsNoneMerge (data) {
|
|
|
- return ajax({
|
|
|
- method: 'post',
|
|
|
- url: '/attrcls/none/merge',
|
|
|
- headers: {'Content-Type': 'application/json;charset=UTF-8'},
|
|
|
- data: data,
|
|
|
- json: true
|
|
|
- })
|
|
|
+//旧的getEntClsNoneMerge函数
|
|
|
+/* function getEntClsNoneMerge(data) {
|
|
|
+ return ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: '/attrcls/none/merge',
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ },
|
|
|
+ data: data,
|
|
|
+ json: true
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的getEntClsNoneMerge函数
|
|
|
+function getEntClsNoneMerge(data) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: `/attrcls/none/merge`,
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ },
|
|
|
+ data: data,
|
|
|
+ json: true
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -196,15 +344,25 @@ function getEntClsNoneMerge (data) {
|
|
|
* @attrClsID id
|
|
|
* @mergeAttrClsIDs {*}
|
|
|
**/
|
|
|
-
|
|
|
-function getEntClsNoneMmove (data) {
|
|
|
- return ajax({
|
|
|
- method: 'post',
|
|
|
- url: '/attrcls/none/move',
|
|
|
- // headers: {'Content-Type': 'application/json;charset=UTF-8'},
|
|
|
- data: data,
|
|
|
- // json: true
|
|
|
- })
|
|
|
+//旧的getEntClsNoneMmove函数
|
|
|
+/* function getEntClsNoneMmove(data) {
|
|
|
+ return ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: '/attrcls/none/move',
|
|
|
+ // headers: {'Content-Type': 'application/json;charset=UTF-8'},
|
|
|
+ data: data,
|
|
|
+ // json: true
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的getEntClsNoneMmove函数
|
|
|
+function getEntClsNoneMmove(data) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: `/attrcls/none/move`,
|
|
|
+ // headers: {'Content-Type': 'application/json;charset=UTF-8'},
|
|
|
+ data: data,
|
|
|
+ // json: true
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -212,14 +370,29 @@ function getEntClsNoneMmove (data) {
|
|
|
* @param data
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function saveAttrNoneAdjust (data) {
|
|
|
- return ajax({
|
|
|
- method: 'post',
|
|
|
- url: '/attr/none/adjust',
|
|
|
- headers: {'Content-Type': 'application/json;charset=UTF-8'},
|
|
|
- data: data,
|
|
|
- json: true
|
|
|
- })
|
|
|
+//旧的saveAttrNoneAdjust函数
|
|
|
+/* function saveAttrNoneAdjust(data) {
|
|
|
+ return ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: '/attr/none/adjust',
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ },
|
|
|
+ data: data,
|
|
|
+ json: true
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的saveAttrNoneAdjust函数
|
|
|
+function saveAttrNoneAdjust(data) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: `/attr/none/adjust`,
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
+ },
|
|
|
+ data: data,
|
|
|
+ json: true
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -228,12 +401,21 @@ function saveAttrNoneAdjust (data) {
|
|
|
* @param data
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function addPublicAttrCls (data) {
|
|
|
- return ajax({
|
|
|
- method: 'post',
|
|
|
- url: '/entcls/add/public/attrcls',
|
|
|
- data: data
|
|
|
- })
|
|
|
+//旧的addPublicAttrCls函数
|
|
|
+/* function addPublicAttrCls(data) {
|
|
|
+ return ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: '/entcls/add/public/attrcls',
|
|
|
+ data: data
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的addPublicAttrCls函数
|
|
|
+function addPublicAttrCls(data) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: `/entcls/add/public/attrcls`,
|
|
|
+ data: data
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -241,14 +423,25 @@ function addPublicAttrCls (data) {
|
|
|
* @param entClsId
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function getFlowId (entClsId) {
|
|
|
- return ajax({
|
|
|
- method: 'get',
|
|
|
- url: '/neural/flow',
|
|
|
- data: {
|
|
|
- entClsId
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的getFlowId函数
|
|
|
+/* function getFlowId(entClsId) {
|
|
|
+ return ajax({
|
|
|
+ method: 'get',
|
|
|
+ url: '/neural/flow',
|
|
|
+ data: {
|
|
|
+ entClsId
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的getFlowId函数
|
|
|
+function getFlowId(entClsId) {
|
|
|
+ return ajax({
|
|
|
+ method: 'get',
|
|
|
+ url: `/neural/flow`,
|
|
|
+ data: {
|
|
|
+ entClsId
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -256,14 +449,25 @@ function getFlowId (entClsId) {
|
|
|
* @param entClsID
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function getEntClsPrefixList (entClsID) {
|
|
|
- return ajax({
|
|
|
- method: 'get',
|
|
|
- url: '/entcls/prefix/tree',
|
|
|
- data: {
|
|
|
- entClsID
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的getEntClsPrefixList函数
|
|
|
+/* function getEntClsPrefixList(entClsID) {
|
|
|
+ return ajax({
|
|
|
+ method: 'get',
|
|
|
+ url: '/entcls/prefix/tree',
|
|
|
+ data: {
|
|
|
+ entClsID
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的getEntClsPrefixList函数
|
|
|
+function getEntClsPrefixList(entClsID) {
|
|
|
+ return request({
|
|
|
+ method: 'get',
|
|
|
+ url: `/entcls/prefix/tree`,
|
|
|
+ data: {
|
|
|
+ entClsID
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -272,15 +476,27 @@ function getEntClsPrefixList (entClsID) {
|
|
|
* @param entClsPrefix
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function updateEntClsPrefix (entClsID, entClsPrefix) {
|
|
|
- return ajax({
|
|
|
- method: 'post',
|
|
|
- url: '/entcls/prefix/update',
|
|
|
- data: {
|
|
|
- entClsID,
|
|
|
- entClsPrefix
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的updateEntClsPrefix函数
|
|
|
+/* function updateEntClsPrefix(entClsID, entClsPrefix) {
|
|
|
+ return ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: '/entcls/prefix/update',
|
|
|
+ data: {
|
|
|
+ entClsID,
|
|
|
+ entClsPrefix
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的updateEntClsPrefix函数
|
|
|
+function updateEntClsPrefix(entClsID, entClsPrefix) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: `/entcls/prefix/update`,
|
|
|
+ data: {
|
|
|
+ entClsID,
|
|
|
+ entClsPrefix
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -289,15 +505,27 @@ function updateEntClsPrefix (entClsID, entClsPrefix) {
|
|
|
* @param entClsConfig
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function updateEntClsConfig (entClsID, entClsConfig) {
|
|
|
- return ajax({
|
|
|
- method: 'post',
|
|
|
- url: '/entcls/config/update',
|
|
|
- data: {
|
|
|
- entClsID,
|
|
|
- entClsConfig
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的updateEntClsConfig函数
|
|
|
+/* function updateEntClsConfig(entClsID, entClsConfig) {
|
|
|
+ return ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: '/entcls/config/update',
|
|
|
+ data: {
|
|
|
+ entClsID,
|
|
|
+ entClsConfig
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的updateEntClsConfig函数
|
|
|
+function updateEntClsConfig(entClsID, entClsConfig) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: `/entcls/config/update`,
|
|
|
+ data: {
|
|
|
+ entClsID,
|
|
|
+ entClsConfig
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -305,37 +533,50 @@ function updateEntClsConfig (entClsID, entClsConfig) {
|
|
|
* @param message
|
|
|
* @returns {*}
|
|
|
*/
|
|
|
-function clearDatabase (message, clientType) {
|
|
|
- return ajax({
|
|
|
- method: 'post',
|
|
|
- url: '/vertex/all/drop',
|
|
|
- data: {
|
|
|
- message,
|
|
|
- clientType,
|
|
|
- noTimeout: true
|
|
|
- }
|
|
|
- })
|
|
|
+//旧的clearDatabase函数
|
|
|
+/* function clearDatabase(message, clientType) {
|
|
|
+ return ajax({
|
|
|
+ method: 'post',
|
|
|
+ url: '/vertex/all/drop',
|
|
|
+ data: {
|
|
|
+ message,
|
|
|
+ clientType,
|
|
|
+ noTimeout: true
|
|
|
+ }
|
|
|
+ })
|
|
|
+} */
|
|
|
+//新的clearDatabase函数
|
|
|
+function clearDatabase(message, clientType) {
|
|
|
+ return request({
|
|
|
+ method: 'post',
|
|
|
+ url: `/vertex/all/drop`,
|
|
|
+ data: {
|
|
|
+ message,
|
|
|
+ clientType,
|
|
|
+ noTimeout: true
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
export {
|
|
|
- addPublicAttrCls,
|
|
|
- saveAttrNoneAdjust,
|
|
|
- getEntClsNoneMmove,
|
|
|
- getEntClsNoneMerge,
|
|
|
- getEntClsNoneList,
|
|
|
- getEntClsParents,
|
|
|
- entClsTreeLazy,
|
|
|
- owlFileExport,
|
|
|
- owlFileImport,
|
|
|
- delEntityClass,
|
|
|
- addEntityClass,
|
|
|
- getAllEntityClass,
|
|
|
- getEntityClass,
|
|
|
- updateEntityClass,
|
|
|
- getFlowId,
|
|
|
- getAllEntclsRootTree,
|
|
|
- getEntClsPrefixList,
|
|
|
- updateEntClsPrefix,
|
|
|
- updateEntClsConfig,
|
|
|
- clearDatabase
|
|
|
+ addPublicAttrCls,
|
|
|
+ saveAttrNoneAdjust,
|
|
|
+ getEntClsNoneMmove,
|
|
|
+ getEntClsNoneMerge,
|
|
|
+ getEntClsNoneList,
|
|
|
+ getEntClsParents,
|
|
|
+ entClsTreeLazy,
|
|
|
+ owlFileExport,
|
|
|
+ owlFileImport,
|
|
|
+ delEntityClass,
|
|
|
+ addEntityClass,
|
|
|
+ getAllEntityClass,
|
|
|
+ getEntityClass,
|
|
|
+ updateEntityClass,
|
|
|
+ getFlowId,
|
|
|
+ getAllEntclsRootTree,
|
|
|
+ getEntClsPrefixList,
|
|
|
+ updateEntClsPrefix,
|
|
|
+ updateEntClsConfig,
|
|
|
+ clearDatabase
|
|
|
}
|