Selaa lähdekoodia

add all entity graph

allen 2 vuotta sitten
vanhempi
sitoutus
661d064c0f

+ 10 - 10
src/api/graph/entity.js

@@ -49,7 +49,7 @@ function getEntityListByEntityClassId(id, data) {
 function delEntityById(id) {
 	return request({
 		method: 'delete',
-		url: `/knowledge/entity/ent/del/${id}`
+		url: `/neo4j/entity/ent/del/${id}`
 	})
 }
 
@@ -83,7 +83,7 @@ function delEntityById(id) {
 function delEntityByIds(ids) {
 	return request({
 		method: 'delete',
-		url: `/knowledge/entity/ent/del/${ids}`,
+		url: `/neo4j/entity/ent/del/${ids}`,
 	})
 }
 
@@ -130,7 +130,7 @@ function addEntity(
 ) {
 	return request({
 		method: 'post',
-		url: `/knowledge/entity/ent/add`,
+		url: `/neo4j/entity/ent/add`,
 		data: {
 			entClsID: entClsID,
 			entMemo: entMemo,
@@ -164,7 +164,7 @@ function addEntity(
 function getEntityDetailById(id, isModel) {
 	return request({
 		method: 'get',
-		url: `/knowledge/entity/ent/${id}`,
+		url: `/neo4j/entity/ent/${id}`,
 		params: {
 			id: id,
 			isModel
@@ -196,7 +196,7 @@ function getEntityDetailById(id, isModel) {
 function updateEntityName(entId, entName, entMemo, entIcon, isModel) {
 	return request({
 		method: 'post',
-		url: `/knowledge/entity/ent/update`,
+		url: `/neo4j/entity/ent/update`,
 		data: {
 			entId: entId,
 			entMemo: entMemo, // 可选择传不传
@@ -470,7 +470,7 @@ function getRelationEnt(
 ) {
 	return request({
 		method: 'post',
-		url: `/knowledge/statisticalMap/show/graph`,
+		url: `/neo4j/statisticalMap/show/graph`,
 		data: {
 			entId: id,
 			degree,
@@ -519,7 +519,7 @@ function getRelationEnt(
 function getChart(data) {
 	return request({
 		method: 'post',
-		url: `/knowledge/statisticalMap/show/graph`,
+		url: `/neo4j/statisticalMap/show/graph`,
 		data: data,
 		headers: {
 			'Content-Type': 'application/json;charset=UTF-8'
@@ -531,7 +531,7 @@ function getChart(data) {
 function getAllChart() {
 	return request({
 		method: 'get',
-		url: `/knowledge/statisticalMap/show/allGraph`,
+		url: `/neo4j/statisticalMap/show/allGraph`,
 	})
 }
 
@@ -554,7 +554,7 @@ function getAllChart() {
 function getRelationClsByEntCls(id) {
 	return request({
 		method: 'get',
-		url: `/knowledge/classRelation/relcls/all/list/${id}`,
+		url: `/neo4j/classRelation/relcls/all/list/${id}`,
 		params: {
 			id,
 		}
@@ -587,7 +587,7 @@ function getRelationClsByEntCls(id) {
 function getRelationAttr(entId, relClsId, direction, isModel, current, size) {
 	return request({
 		method: 'get',
-		url: `/knowledge/entityRelation/entcls/${direction}/${relClsId}/${entId}`,
+		url: `/neo4j/entityRelation/entcls/${direction}/${relClsId}/${entId}`,
 		params: {
 			entId,
 			relClsId,

+ 6 - 6
src/api/graph/entityClass.js

@@ -18,7 +18,7 @@ import request from '@/utils/request'
 function delEntityClass(id) {
 	return request({
 		method: 'delete',
-		url: `/knowledge/class/entcls/del/${id}`
+		url: `/neo4j/class/entcls/del/${id}`
 	})
 }
 
@@ -47,7 +47,7 @@ function delEntityClass(id) {
 function addEntityClass(data) {
 	return request({
 		method: 'post',
-		url: `/knowledge/class/entcls/add`,
+		url: `/neo4j/class/entcls/add`,
 		data: {
 			entClsName: data.entClsName,
 			pid: data.pid,
@@ -76,7 +76,7 @@ function addEntityClass(data) {
 function getAllEntityClass(isIcon) {
 	return request({
 		method: 'get',
-		url: `/knowledge/class/entcls`,
+		url: `/neo4j/class/entcls`,
 		data: {
 			isIcon: isIcon
 		}
@@ -120,7 +120,7 @@ function getAllEntclsRootTree() {
 function getEntityClass(id) {
 	return request({
 		method: 'get',
-		url: `/knowledge/class/entcls/${id}`,
+		url: `/neo4j/class/entcls/${id}`,
 		params: {
 			id: id
 		}
@@ -155,7 +155,7 @@ function getEntityClass(id) {
 function updateEntityClass(type, id, name, entClsMemo, entClsIcon, backGroundColor) {
 	return request({
 		method: 'post',
-		url: `/knowledge/class/entcls/update`,
+		url: `/neo4j/class/entcls/update`,
 		data: {
 			entClsAllowAttrType: type,
 			entClsID: id,
@@ -245,7 +245,7 @@ function owlFileExport(id) {
 function entClsTreeLazy(id) {
 	return request({
 		method: 'get',
-		url: `/knowledge/class/entcls/tree`,
+		url: `/neo4j/class/entcls/tree`,
 		data: {
 			entClsID: id
 		}

+ 9 - 9
src/api/graph/relationClass.js

@@ -22,7 +22,7 @@ import request from '@/utils/request'
 function getAllRelationClassList(id, entClsType) {
 	return request({
 		method: 'get',
-		url: `/knowledge/classRelation/relcls/${id}/list`,
+		url: `/neo4j/classRelation/relcls/${id}/list`,
 		params: {
 			id: id,
 			entClsType: entClsType,
@@ -49,7 +49,7 @@ function getAllRelationClassList(id, entClsType) {
 function deleteRelationClass(id) {
 	return request({
 		method: 'post',
-		url: `/knowledge/classRelation/relcls/del/${id}`,
+		url: `/neo4j/classRelation/relcls/del/${id}`,
 		params: {
 			id: id
 		}
@@ -78,7 +78,7 @@ function deleteRelationClass(id) {
 function getAllRelationClassListByName(name, isModel, current, size) {
 	return request({
 		method: 'get',
-		url: `/knowledge/classRelation/relcls/list`,
+		url: `/neo4j/classRelation/relcls/list`,
 		params: {
 			name: name,
 			pageNum: current,
@@ -105,7 +105,7 @@ function getAllRelationClassListByName(name, isModel, current, size) {
 function editRelationClass(data) {
 	return request({
 		method: 'post',
-		url: `/knowledge/classRelation/relcls/update`,
+		url: `/neo4j/classRelation/relcls/update`,
 		data: data
 	})
 }
@@ -127,7 +127,7 @@ function editRelationClass(data) {
 function addRelationClass(data) {
 	return request({
 		method: 'post',
-		url: `/knowledge/classRelation/relcls/add`,
+		url: `/neo4j/classRelation/relcls/add`,
 		data: data
 	})
 }
@@ -177,7 +177,7 @@ function addEntityRelation(data) {
 function deleteEntityRelation(relIds, isModel) {
 	return request({
 		method: 'delete',
-		url: `/knowledge/entityRelation/rel/del/${relIds}`
+		url: `/neo4j/entityRelation/rel/del/${relIds}`
 	})
 }
 
@@ -195,7 +195,7 @@ function deleteEntityRelation(relIds, isModel) {
 function getAllRelationClass() {
 	return request({
 		method: 'get',
-		url: `/knowledge/classRelation/relcls/getall`
+		url: `/neo4j/classRelation/relcls/getall`
 	})
 }
 
@@ -214,7 +214,7 @@ function getAllRelationClass() {
 function addRelBatch(data) {
 	return request({
 		method: 'post',
-		url: `/knowledge/entityRelation/rel/add/batch`,
+		url: `/neo4j/entityRelation/rel/add/batch`,
 		data: data
 	})
 }
@@ -284,7 +284,7 @@ function getRelclsUnpoint(relClsId, direction, entId, isModel, current, size) {
 function getRelclsEnt(relClsId, direction, entId, isModel, entName, current, size) {
 	return request({
 		method: 'get',
-		url: `/knowledge/entity/relcls/${direction}/${relClsId}/ent/${entId}`,
+		url: `/neo4j/entity/relcls/${direction}/${relClsId}/ent/${entId}`,
 		params: {
 			entName,
 			pageNum: current,

+ 1 - 1
src/api/graph/search.js

@@ -29,7 +29,7 @@ import request from '@/utils/request'
 function entSearch(searchStr, entClsIDs, pageNum, pageSize, isModel, isIcon, searchType) {
 	return request({
 		method: 'get',
-		url: `/knowledge/entity/ent/entquery`,
+		url: `/neo4j/entity/ent/entquery`,
 		params: {
 			searchStr: (searchType === 'name' || searchType == null) ? searchStr : null,
 			entClsIDs,

+ 1 - 1
src/api/graph/statisticalMap.js

@@ -8,7 +8,7 @@ import request from '@/utils/request'
 function getEntityListByStr(str) {
     return request({
         method: 'get',
-        url: '/knowledge/entity/show/entlist',
+        url: '/neo4j/entity/show/entlist',
         params: {
             name: str
         }

+ 1 - 1
src/views/knowledge/graphClass/entityClassZtree.vue

@@ -92,7 +92,7 @@ export default {
       setting: {
         async: {
           enable: true,
-          url: window.global.baseUrl() + "/knowledge/class/entcls/tree",
+          url: window.global.baseUrl() + "/neo4j/class/entcls/tree",
           dataFilter: ajaxDataFilter,
         },
       },

+ 0 - 2
src/views/knowledge/modal/createRelationClassModal.vue

@@ -190,7 +190,6 @@ export default {
     },
     getRelationCls() {
       this.$open('getRelationClsListModal', {}, function (data) {
-        debugger;
         if (data) {
           this.relClsName = data
           this.selectedRelCls = data
@@ -212,7 +211,6 @@ export default {
       return result;
     },
     async handleOk(e) {
-      debugger;
       let result = await this.getFormData(); // this是当前组件的this,  'form'此表单的名称,一定要是字符串
       const endID = this.EntityClassNode && this.EntityClassNode.entClsID;
       const relClsID = this.selectRelationValue;

+ 0 - 1
src/views/search/pdf/view.vue

@@ -44,7 +44,6 @@ export default {
     methods:{
         //计算pdf页码总数
         getPDFnums(url) {
-            debugger
             this.loading = true
             //let loadURL = pdf.createLoadingTask(url)
             let loadURL = pdf.createLoadingTask({