|
@@ -142,6 +142,15 @@
|
|
|
<template v-if="printForm.range.indexOf('ciyun')>-1">
|
|
|
<iframe class="ciyun-box" width="100%" height="650px" border="none" :src="'./ciyun/ciyunPrint.html?partitionKey=1&searchType=2&articleId='+articleId"></iframe>
|
|
|
</template>
|
|
|
+ <template v-if="printForm.range.indexOf('notes')>-1">
|
|
|
+ <h5 v-if="notesList.length>0">笔记</h5>
|
|
|
+ <ul class="explainlist">
|
|
|
+ <li v-for="(itemW,indexW) in notesList" :key="indexW">
|
|
|
+ <b class="prefix" :style="{color:colorObj.phraseOhterColor}">{{itemW.select_text}}</b>
|
|
|
+ <div class="para-list" :style="{color:colorObj.newWordOtherColor}" v-html="itemW.note"></div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
<footer class="print-footer">
|
|
|
<span>{{printForm.school}}</span>
|
|
@@ -250,6 +259,7 @@
|
|
|
<script>
|
|
|
import waterMark from "../../../store/watermark"
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
+import { getLogin } from "@/api/ajax";
|
|
|
export default {
|
|
|
props: [ "titleFontsize", "wordFontsize", "colorObj","articleType","articleInfo","likePhraseList","likeWord"],
|
|
|
data(){
|
|
@@ -303,6 +313,7 @@ export default {
|
|
|
wordLit:[],
|
|
|
annotationList: [],
|
|
|
phraseList: [],
|
|
|
+ notesList: [], // 笔记列表
|
|
|
fontList: [
|
|
|
{
|
|
|
value:'roman',
|
|
@@ -530,11 +541,25 @@ export default {
|
|
|
this.printForm.className = ''
|
|
|
this.printForm.dateStr = ''
|
|
|
this.printForm.momo = ''
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 高亮笔记句子
|
|
|
+ handleHighSentence(){
|
|
|
+ let MethodName = '/PaperServer/Client/Article/ArtNoteListInArt'
|
|
|
+ let data = {
|
|
|
+ id: this.$route.query.id
|
|
|
+ }
|
|
|
+ getLogin(MethodName, data)
|
|
|
+ .then((res) => {
|
|
|
+ if(res.status===1){
|
|
|
+ this.notesList = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
mounted(){
|
|
|
if (this.articleInfo) {
|
|
|
this.handleData();
|
|
|
+ this.handleHighSentence()
|
|
|
}
|
|
|
this.$nextTick(() => {
|
|
|
document.onselectstart = new Function("event.returnValue=false");
|