|
@@ -1,11 +1,12 @@
|
|
-import ajax from '../util'
|
|
|
|
|
|
+import request from '@/utils/request'
|
|
|
|
|
|
/**
|
|
/**
|
|
* 根据实体类id获取实体列表
|
|
* 根据实体类id获取实体列表
|
|
* @param id
|
|
* @param id
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
-function getEntityListByEntityClassId(id, data) {
|
|
|
|
|
|
+//旧的getEntityListByEntityClassId函数
|
|
|
|
+/* function getEntityListByEntityClassId(id, data) {
|
|
return ajax({
|
|
return ajax({
|
|
method: 'get',
|
|
method: 'get',
|
|
url: '/ent/{id}/list',
|
|
url: '/ent/{id}/list',
|
|
@@ -16,6 +17,16 @@ function getEntityListByEntityClassId(id, data) {
|
|
id: id,
|
|
id: id,
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
+} */
|
|
|
|
+//新的getEntityListByEntityClassId函数
|
|
|
|
+function getEntityListByEntityClassId(id, data) {
|
|
|
|
+ return request({
|
|
|
|
+ method: 'get',
|
|
|
|
+ url: `/ent/${id}/list`,
|
|
|
|
+ params: {
|
|
|
|
+ id: id
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -23,10 +34,22 @@ function getEntityListByEntityClassId(id, data) {
|
|
* @param id
|
|
* @param id
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的delEntityById函数
|
|
|
|
+// function delEntityById(id, isModel) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/ent/del/ids',
|
|
|
|
+// data: {
|
|
|
|
+// ids: id,
|
|
|
|
+// isModel,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的delEntityById函数
|
|
function delEntityById(id, isModel) {
|
|
function delEntityById(id, isModel) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/ent/del/ids',
|
|
|
|
|
|
+ url: `/ent/del/ids`,
|
|
data: {
|
|
data: {
|
|
ids: id,
|
|
ids: id,
|
|
isModel,
|
|
isModel,
|
|
@@ -50,10 +73,21 @@ function delEntityById(id, isModel) {
|
|
* @param ids
|
|
* @param ids
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的delEntityByIds函数
|
|
|
|
+// function delEntityByIds(ids) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/ent/del/ids',
|
|
|
|
+// data: {
|
|
|
|
+// ids: ids,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的delEntityByIds函数
|
|
function delEntityByIds(ids) {
|
|
function delEntityByIds(ids) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/ent/del/ids',
|
|
|
|
|
|
+ url: `/ent/del/ids`,
|
|
data: {
|
|
data: {
|
|
ids: ids,
|
|
ids: ids,
|
|
},
|
|
},
|
|
@@ -66,6 +100,33 @@ function delEntityByIds(ids) {
|
|
* @param entName
|
|
* @param entName
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的addEntity函数
|
|
|
|
+// function addEntity(
|
|
|
|
+// entClsID,
|
|
|
|
+// entName,
|
|
|
|
+// entMemo,
|
|
|
|
+// entIcon,
|
|
|
|
+// notNullAttrVOList,
|
|
|
|
+// isModel
|
|
|
|
+// ) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/ent/add',
|
|
|
|
+// headers: {
|
|
|
|
+// 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
+// },
|
|
|
|
+// data: {
|
|
|
|
+// entClsID: entClsID,
|
|
|
|
+// entMemo: entMemo,
|
|
|
|
+// entName: entName,
|
|
|
|
+// entIcon: entIcon,
|
|
|
|
+// notNullAttrVOList: notNullAttrVOList, // 必填属性列表
|
|
|
|
+// isModel,
|
|
|
|
+// },
|
|
|
|
+// json: true,
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的addEntity函数
|
|
function addEntity(
|
|
function addEntity(
|
|
entClsID,
|
|
entClsID,
|
|
entName,
|
|
entName,
|
|
@@ -74,10 +135,12 @@ function addEntity(
|
|
notNullAttrVOList,
|
|
notNullAttrVOList,
|
|
isModel
|
|
isModel
|
|
) {
|
|
) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/ent/add',
|
|
|
|
- headers: { 'Content-Type': 'application/json;charset=UTF-8' },
|
|
|
|
|
|
+ url: `/ent/add`,
|
|
|
|
+ headers: {
|
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
+ },
|
|
data: {
|
|
data: {
|
|
entClsID: entClsID,
|
|
entClsID: entClsID,
|
|
entMemo: entMemo,
|
|
entMemo: entMemo,
|
|
@@ -95,16 +158,28 @@ function addEntity(
|
|
* @param id
|
|
* @param id
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的getEntityDetailById函数
|
|
|
|
+// function getEntityDetailById(id, isModel) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'get',
|
|
|
|
+// url: '/ent/{id}',
|
|
|
|
+// path: {
|
|
|
|
+// id: id,
|
|
|
|
+// },
|
|
|
|
+// data: {
|
|
|
|
+// isModel,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的getEntityDetailById函数
|
|
function getEntityDetailById(id, isModel) {
|
|
function getEntityDetailById(id, isModel) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'get',
|
|
method: 'get',
|
|
- url: '/ent/{id}',
|
|
|
|
- path: {
|
|
|
|
|
|
+ url: `/ent/${id}`,
|
|
|
|
+ params: {
|
|
id: id,
|
|
id: id,
|
|
- },
|
|
|
|
- data: {
|
|
|
|
- isModel,
|
|
|
|
- },
|
|
|
|
|
|
+ isModel
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -114,10 +189,25 @@ function getEntityDetailById(id, isModel) {
|
|
* @param entName
|
|
* @param entName
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的updateEntityName函数
|
|
|
|
+// function updateEntityName(entID, entName, entMemo, entIcon, isModel) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/ent/update',
|
|
|
|
+// data: {
|
|
|
|
+// entID: entID,
|
|
|
|
+// entMemo: entMemo, // 可选择传不传
|
|
|
|
+// entName: entName,
|
|
|
|
+// entIcon: entIcon,
|
|
|
|
+// isModel,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的updateEntityName函数
|
|
function updateEntityName(entID, entName, entMemo, entIcon, isModel) {
|
|
function updateEntityName(entID, entName, entMemo, entIcon, isModel) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/ent/update',
|
|
|
|
|
|
+ url: `/ent/update`,
|
|
data: {
|
|
data: {
|
|
entID: entID,
|
|
entID: entID,
|
|
entMemo: entMemo, // 可选择传不传
|
|
entMemo: entMemo, // 可选择传不传
|
|
@@ -133,13 +223,24 @@ function updateEntityName(entID, entName, entMemo, entIcon, isModel) {
|
|
* @param entName
|
|
* @param entName
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的searchEntClsByEntName函数
|
|
|
|
+// function searchEntClsByEntName(entName) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'get',
|
|
|
|
+// url: 'ent/search/entclses',
|
|
|
|
+// data: {
|
|
|
|
+// entName: entName,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的searchEntClsByEntName函数
|
|
function searchEntClsByEntName(entName) {
|
|
function searchEntClsByEntName(entName) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'get',
|
|
method: 'get',
|
|
- url: 'ent/search/entclses',
|
|
|
|
- data: {
|
|
|
|
- entName: entName,
|
|
|
|
- },
|
|
|
|
|
|
+ url: `ent/search/entclses`,
|
|
|
|
+ params: {
|
|
|
|
+ entName: entName
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -148,17 +249,29 @@ function searchEntClsByEntName(entName) {
|
|
* @param attrClsID
|
|
* @param attrClsID
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的deleteAttrClassNone函数
|
|
|
|
+// function deleteAttrClassNone(attrClsID, isModel) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/attrcls/none/del/{attrClsID}',
|
|
|
|
+// path: {
|
|
|
|
+// attrClsID: attrClsID,
|
|
|
|
+// },
|
|
|
|
+// data: {
|
|
|
|
+// attrClsID: attrClsID,
|
|
|
|
+// isModel,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的deleteAttrClassNone函数
|
|
function deleteAttrClassNone(attrClsID, isModel) {
|
|
function deleteAttrClassNone(attrClsID, isModel) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/attrcls/none/del/{attrClsID}',
|
|
|
|
- path: {
|
|
|
|
- attrClsID: attrClsID,
|
|
|
|
- },
|
|
|
|
- data: {
|
|
|
|
|
|
+ url: `/attrcls/none/del/${attrClsID}`,
|
|
|
|
+ params: {
|
|
attrClsID: attrClsID,
|
|
attrClsID: attrClsID,
|
|
- isModel,
|
|
|
|
- },
|
|
|
|
|
|
+ isModel
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -170,10 +283,27 @@ function deleteAttrClassNone(attrClsID, isModel) {
|
|
* @param valueType
|
|
* @param valueType
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的addEntNoneAttr函数
|
|
|
|
+// function addEntNoneAttr(data) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/attr/add/none',
|
|
|
|
+// data: {
|
|
|
|
+// entID: data.entID,
|
|
|
|
+// attrClsMemo: data.attrClsMemo,
|
|
|
|
+// attrClsName: data.attrClsName,
|
|
|
|
+// attrUnit: data.attrUnit,
|
|
|
|
+// attrValue: data.attrValue,
|
|
|
|
+// valueType: data.valueType,
|
|
|
|
+// isModel: data.isModel,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的addEntNoneAttr函数
|
|
function addEntNoneAttr(data) {
|
|
function addEntNoneAttr(data) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/attr/add/none',
|
|
|
|
|
|
+ url: `/attr/add/none`,
|
|
data: {
|
|
data: {
|
|
entID: data.entID,
|
|
entID: data.entID,
|
|
attrClsMemo: data.attrClsMemo,
|
|
attrClsMemo: data.attrClsMemo,
|
|
@@ -186,17 +316,29 @@ function addEntNoneAttr(data) {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
-//
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 实体待审属性查找接口
|
|
* 实体待审属性查找接口
|
|
* @param entID
|
|
* @param entID
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的getEntNoneList函数
|
|
|
|
+// function getEntNoneList(entID, pagenum, pagesize, isModel) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/attr/none/list',
|
|
|
|
+// data: {
|
|
|
|
+// entID: entID,
|
|
|
|
+// pagenum: pagenum,
|
|
|
|
+// pagesize: pagesize,
|
|
|
|
+// isModel,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的getEntNoneList函数
|
|
function getEntNoneList(entID, pagenum, pagesize, isModel) {
|
|
function getEntNoneList(entID, pagenum, pagesize, isModel) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/attr/none/list',
|
|
|
|
|
|
+ url: `/attr/none/list`,
|
|
data: {
|
|
data: {
|
|
entID: entID,
|
|
entID: entID,
|
|
pagenum: pagenum,
|
|
pagenum: pagenum,
|
|
@@ -211,10 +353,21 @@ function getEntNoneList(entID, pagenum, pagesize, isModel) {
|
|
* @param attrClsID
|
|
* @param attrClsID
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的getAttrClassAdjustSearch函数
|
|
|
|
+// function getAttrClassAdjustSearch(attrClsID) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/attrcls/none/attrs',
|
|
|
|
+// data: {
|
|
|
|
+// attrClsID: attrClsID,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的getAttrClassAdjustSearch函数
|
|
function getAttrClassAdjustSearch(attrClsID) {
|
|
function getAttrClassAdjustSearch(attrClsID) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/attrcls/none/attrs',
|
|
|
|
|
|
+ url: `/attrcls/none/attrs`,
|
|
data: {
|
|
data: {
|
|
attrClsID: attrClsID,
|
|
attrClsID: attrClsID,
|
|
},
|
|
},
|
|
@@ -226,10 +379,19 @@ function getAttrClassAdjustSearch(attrClsID) {
|
|
* @param data
|
|
* @param data
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的updateAttrNoneName函数
|
|
|
|
+// function updateAttrNoneName(data) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/attr/none/update',
|
|
|
|
+// data: data,
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的updateAttrNoneName函数
|
|
function updateAttrNoneName(data) {
|
|
function updateAttrNoneName(data) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/attr/none/update',
|
|
|
|
|
|
+ url: `/attr/none/update`,
|
|
data: data,
|
|
data: data,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -249,10 +411,19 @@ function updateAttrNoneName(data) {
|
|
}
|
|
}
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的addReferenceEnt函数
|
|
|
|
+// function addReferenceEnt(entReferenceQuery) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/ent/reference/add',
|
|
|
|
+// data: entReferenceQuery,
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的addReferenceEnt函数
|
|
function addReferenceEnt(entReferenceQuery) {
|
|
function addReferenceEnt(entReferenceQuery) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/ent/reference/add',
|
|
|
|
|
|
+ url: `/ent/reference/add`,
|
|
data: entReferenceQuery,
|
|
data: entReferenceQuery,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -262,36 +433,73 @@ function addReferenceEnt(entReferenceQuery) {
|
|
* @param id, degree, delEntIds, direction, isModel, entClsIDs, relClsIDs
|
|
* @param id, degree, delEntIds, direction, isModel, entClsIDs, relClsIDs
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的getRelationEnt函数
|
|
|
|
+// function getRelationEnt(
|
|
|
|
+// id,
|
|
|
|
+// degree,
|
|
|
|
+// delEntIds,
|
|
|
|
+// direction = "BOTH",
|
|
|
|
+// isModel,
|
|
|
|
+// entClsIDs,
|
|
|
|
+// entName,
|
|
|
|
+// relClsIDs,
|
|
|
|
+// limitNum = 3,
|
|
|
|
+// entConditionQueries = []
|
|
|
|
+// ) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/show/graph',
|
|
|
|
+// data: {
|
|
|
|
+// entId: id,
|
|
|
|
+// degree,
|
|
|
|
+// delEntIds,
|
|
|
|
+// direction,
|
|
|
|
+// isModel,
|
|
|
|
+// entName,
|
|
|
|
+// relClsIDs,
|
|
|
|
+// limitNum,
|
|
|
|
+// entConditionQueries: entConditionQueries
|
|
|
|
+// },
|
|
|
|
+// headers: {
|
|
|
|
+// 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
+// },
|
|
|
|
+// json: true,
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的getRelationEnt函数
|
|
function getRelationEnt(
|
|
function getRelationEnt(
|
|
id,
|
|
id,
|
|
degree,
|
|
degree,
|
|
delEntIds,
|
|
delEntIds,
|
|
- direction="BOTH",
|
|
|
|
|
|
+ direction = "BOTH",
|
|
isModel,
|
|
isModel,
|
|
entClsIDs,
|
|
entClsIDs,
|
|
- entName,
|
|
|
|
|
|
+ entName,
|
|
relClsIDs,
|
|
relClsIDs,
|
|
- limitNum=3,
|
|
|
|
- entConditionQueries=[]
|
|
|
|
|
|
+ limitNum = 3,
|
|
|
|
+ entConditionQueries = []
|
|
) {
|
|
) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/show/graph',
|
|
|
|
|
|
+ url: `/show/graph`,
|
|
data: {
|
|
data: {
|
|
entId: id,
|
|
entId: id,
|
|
degree,
|
|
degree,
|
|
delEntIds,
|
|
delEntIds,
|
|
direction,
|
|
direction,
|
|
isModel,
|
|
isModel,
|
|
- entName,
|
|
|
|
|
|
+ entName,
|
|
relClsIDs,
|
|
relClsIDs,
|
|
- limitNum,
|
|
|
|
- entConditionQueries: entConditionQueries
|
|
|
|
|
|
+ limitNum,
|
|
|
|
+ entConditionQueries: entConditionQueries
|
|
|
|
+ },
|
|
|
|
+ headers: {
|
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
},
|
|
},
|
|
- headers: { 'Content-Type': 'application/json;charset=UTF-8' },
|
|
|
|
json: true,
|
|
json: true,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+
|
|
/*
|
|
/*
|
|
|
|
|
|
let data = {
|
|
let data = {
|
|
@@ -306,27 +514,54 @@ function getRelationEnt(
|
|
entConditionQueries: entConditionQueries
|
|
entConditionQueries: entConditionQueries
|
|
}
|
|
}
|
|
*/
|
|
*/
|
|
|
|
+//旧的getChart函数
|
|
|
|
+// function getChart(data) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/show/graph',
|
|
|
|
+// data: data,
|
|
|
|
+// headers: {
|
|
|
|
+// 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
+// },
|
|
|
|
+// json: true,
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的getChart函数
|
|
function getChart(data) {
|
|
function getChart(data) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/show/graph',
|
|
|
|
|
|
+ url: `/show/graph`,
|
|
data: data,
|
|
data: data,
|
|
- headers: { 'Content-Type': 'application/json;charset=UTF-8' },
|
|
|
|
|
|
+ headers: {
|
|
|
|
+ 'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
+ },
|
|
json: true,
|
|
json: true,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 根据实体类,获取关系类
|
|
* 根据实体类,获取关系类
|
|
* @param id, degree, delEntIds, direction, isModel
|
|
* @param id, degree, delEntIds, direction, isModel
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的getRelationClsByEntCls函数
|
|
|
|
+// function getRelationClsByEntCls(id) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'get',
|
|
|
|
+// url: '/relcls/all/list/{id}',
|
|
|
|
+// path: {
|
|
|
|
+// id,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的getRelationClsByEntCls函数
|
|
function getRelationClsByEntCls(id) {
|
|
function getRelationClsByEntCls(id) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'get',
|
|
method: 'get',
|
|
- url: '/relcls/all/list/{id}',
|
|
|
|
- path: {
|
|
|
|
|
|
+ url: `/relcls/all/list/${id}`,
|
|
|
|
+ params: {
|
|
id,
|
|
id,
|
|
- },
|
|
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -335,20 +570,36 @@ function getRelationClsByEntCls(id) {
|
|
* @param entId, relClsId, direction, isModel, current, size
|
|
* @param entId, relClsId, direction, isModel, current, size
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的getRelationAttr函数
|
|
|
|
+// function getRelationAttr(entId, relClsId, direction, isModel, current, size) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'get',
|
|
|
|
+// url: '/entcls/{direction}/{relClsId}/{entId}',
|
|
|
|
+// path: {
|
|
|
|
+// entId,
|
|
|
|
+// relClsId,
|
|
|
|
+// direction,
|
|
|
|
+// },
|
|
|
|
+// data: {
|
|
|
|
+// current,
|
|
|
|
+// isModel,
|
|
|
|
+// size,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的getRelationAttr函数
|
|
function getRelationAttr(entId, relClsId, direction, isModel, current, size) {
|
|
function getRelationAttr(entId, relClsId, direction, isModel, current, size) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'get',
|
|
method: 'get',
|
|
- url: '/entcls/{direction}/{relClsId}/{entId}',
|
|
|
|
- path: {
|
|
|
|
|
|
+ url: `/entcls/${direction}/${relClsId}/${entId}`,
|
|
|
|
+ params: {
|
|
entId,
|
|
entId,
|
|
relClsId,
|
|
relClsId,
|
|
direction,
|
|
direction,
|
|
- },
|
|
|
|
- data: {
|
|
|
|
current,
|
|
current,
|
|
isModel,
|
|
isModel,
|
|
size,
|
|
size,
|
|
- },
|
|
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -357,10 +608,19 @@ function getRelationAttr(entId, relClsId, direction, isModel, current, size) {
|
|
* @param data
|
|
* @param data
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的saveEntAttr函数
|
|
|
|
+// function saveEntAttr(data) {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/ent/update/batch',
|
|
|
|
+// data: data,
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的saveEntAttr函数
|
|
function saveEntAttr(data) {
|
|
function saveEntAttr(data) {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/ent/update/batch',
|
|
|
|
|
|
+ url: `/ent/update/batch`,
|
|
data: data,
|
|
data: data,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -370,10 +630,21 @@ function saveEntAttr(data) {
|
|
* @param data
|
|
* @param data
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的exportUnionid函数
|
|
|
|
+// function exportUnionid() {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/ent/batch/unionid',
|
|
|
|
+// data: {
|
|
|
|
+// noTimeout: true,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的exportUnionid函数
|
|
function exportUnionid() {
|
|
function exportUnionid() {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/ent/batch/unionid',
|
|
|
|
|
|
+ url: `/ent/batch/unionid`,
|
|
data: {
|
|
data: {
|
|
noTimeout: true,
|
|
noTimeout: true,
|
|
},
|
|
},
|
|
@@ -384,10 +655,21 @@ function exportUnionid() {
|
|
* 集成服务导出接口2
|
|
* 集成服务导出接口2
|
|
* @returns {*}
|
|
* @returns {*}
|
|
*/
|
|
*/
|
|
|
|
+//旧的exportOmsUpload函数
|
|
|
|
+// function exportOmsUpload() {
|
|
|
|
+// return ajax({
|
|
|
|
+// method: 'post',
|
|
|
|
+// url: '/oms/media/upload',
|
|
|
|
+// data: {
|
|
|
|
+// noTimeout: true,
|
|
|
|
+// },
|
|
|
|
+// })
|
|
|
|
+// }
|
|
|
|
+//新的exportOmsUpload函数
|
|
function exportOmsUpload() {
|
|
function exportOmsUpload() {
|
|
- return ajax({
|
|
|
|
|
|
+ return request({
|
|
method: 'post',
|
|
method: 'post',
|
|
- url: '/oms/media/upload',
|
|
|
|
|
|
+ url: `/oms/media/upload`,
|
|
data: {
|
|
data: {
|
|
noTimeout: true,
|
|
noTimeout: true,
|
|
},
|
|
},
|