|
@@ -97,6 +97,7 @@ function getEntityPredict(){
|
|
|
let content = result.content
|
|
|
if((JSON.stringify(entryList)!='[""]')&&(JSON.stringify(relationList)!='[""]')){
|
|
|
// getRelationList(relationList,entryList)
|
|
|
+ const relationListCopy = JSON.parse(JSON.stringify(relationList))
|
|
|
let enter = chageEnter(entryList)
|
|
|
let rela = chageRelation(relationList)
|
|
|
svgData = Object.assign(enter,rela,{"content":content})
|
|
@@ -104,7 +105,7 @@ function getEntityPredict(){
|
|
|
showSvg(svgData)
|
|
|
}
|
|
|
getSchema(content,entryList)
|
|
|
- getRelationList(relationList,entryList)
|
|
|
+ getRelationList(relationListCopy,entryList)
|
|
|
$('#analy').removeClass('disabled')
|
|
|
}else{
|
|
|
// $('#analy').addClass('disabled')
|
|
@@ -196,6 +197,7 @@ function getSchema(content, entryList){
|
|
|
$('#resultBoxInfo').html(content)
|
|
|
}
|
|
|
function getRelationList(relationList,entryList){
|
|
|
+
|
|
|
let str = ''
|
|
|
for(let i = 1; i < relationList.length; i++){
|
|
|
const relationItem = relationList[i]
|
|
@@ -212,7 +214,11 @@ function getRelationList(relationList,entryList){
|
|
|
$('.empty').css("display","none");
|
|
|
$('.analying').css("display","none")
|
|
|
$('table').css("display","table")
|
|
|
- $('.tableTitle').css("display","table")
|
|
|
+ $('.tableTitle').css("display","block")
|
|
|
+ }else{
|
|
|
+ $('.tableTitle').css("display","none")
|
|
|
+ $('.tableBox .empty').css("display","block");
|
|
|
+ $('.analying').css("display","none")
|
|
|
}
|
|
|
$('.relationBody').html(str)
|
|
|
}
|