fixed stats and added views in researchComp
This commit is contained in:
parent
24f82812f4
commit
5c0dfa3596
@ -22,7 +22,7 @@ function format(date){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const emit = defineEmits(["downloadPdf","downloadBibTex"]);
|
const emit = defineEmits(["modal-close","downloadPdf","downloadBibTex"]);
|
||||||
|
|
||||||
const target = ref(null)
|
const target = ref(null)
|
||||||
onClickOutside(target, ()=>emit('modal-close'))
|
onClickOutside(target, ()=>emit('modal-close'))
|
||||||
@ -42,6 +42,7 @@ onClickOutside(target, ()=>emit('modal-close'))
|
|||||||
<li>Language : {{article.language}}</li>
|
<li>Language : {{article.language}}</li>
|
||||||
<li>PaperType : {{article.paperType}}</li>
|
<li>PaperType : {{article.paperType}}</li>
|
||||||
<li>Domain : {{article.domain}}</li>
|
<li>Domain : {{article.domain}}</li>
|
||||||
|
<li>Views : {{article.views}}</li>
|
||||||
<li>Access : {{article.access}}</li>
|
<li>Access : {{article.access}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="downloads" v-if="article.pdfLocation !== null">
|
<div id="downloads" v-if="article.pdfLocation !== null">
|
||||||
|
@ -117,9 +117,9 @@ function update(){
|
|||||||
fontColor: "white",
|
fontColor: "white",
|
||||||
text: statsOf.value + " By "+ statsBy.value,
|
text: statsOf.value + " By "+ statsBy.value,
|
||||||
}
|
}
|
||||||
const index = (0 ?statsOf.value === "views": 3 ? statsOf.value === "researches":6) + (0?statsBy.value ==="years":1?statsBy.value==="months":2)
|
let index = (statsOf.value === "views"?0:(statsOf.value === "researches"?3:6)) + (statsBy.value ==="years"?0:(statsBy.value==="months"?1:2))
|
||||||
|
|
||||||
|
|
||||||
|
if (statsOf.value !== "" && statsBy.value !== "")
|
||||||
options.data[0].dataPoints = stats.value[index]
|
options.data[0].dataPoints = stats.value[index]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user