askbot-dragon 1.7.82-beta → 1.7.83-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/assets/js/common.js
CHANGED
|
@@ -249,6 +249,11 @@ function newInitWaterMark(elId, textValue) {
|
|
|
249
249
|
oTemp.appendChild(mask_div);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
+
// document.getElementById(elId).innerHTML = '';
|
|
253
|
+
let maskDiv = document.getElementById(elId).getElementsByClassName("mask_div")
|
|
254
|
+
maskDiv && maskDiv.forEach((item) => {
|
|
255
|
+
item.remove();
|
|
256
|
+
})
|
|
252
257
|
document.getElementById(elId).appendChild(oTemp);
|
|
253
258
|
}
|
|
254
259
|
export {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
</div> -->
|
|
38
38
|
|
|
39
39
|
<!-- <text-message :text="text" @submitClick="submitClick"></text-message> -->
|
|
40
|
-
<answer-docknowledge :isAskLightning="2" :isHasChat="true" :msg="
|
|
40
|
+
<answer-docknowledge :isAskLightning="2" :isHasChat="true" :msg="answerDocknowledge" :isLiBang="false"></answer-docknowledge>
|
|
41
41
|
<welcomeSuggest :msg="welcomeSuggest"></welcomeSuggest>
|
|
42
42
|
<!-- <voice-component @closeVoice="closeVoice">
|
|
43
43
|
<div slot="voiceTip">
|
|
@@ -237,95 +237,15 @@ export default {
|
|
|
237
237
|
}]
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
|
-
answerDocknowledge:
|
|
241
|
-
{
|
|
242
|
-
"content":
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
"tagId": "658b9c5e7cf604285f7cba46",
|
|
250
|
-
"enterprise": null,
|
|
251
|
-
"tagIds": [
|
|
252
|
-
"658b9c5e7cf604285f7cba46"
|
|
253
|
-
],
|
|
254
|
-
"format": "pptx",
|
|
255
|
-
"srcContentId": "c3eb5cb9bc1f0ad84243d824932cc9f9",
|
|
256
|
-
"updateTime": "2023-12-27 11:39:10",
|
|
257
|
-
"source": "CORP_LOCAL_FILE",
|
|
258
|
-
"srcContent": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
259
|
-
"url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/26/16/50/a25ee8f370fcefa639946805d6d3a7c3/ppt_preview.pptx",
|
|
260
|
-
"knowledgeId": "658a93de63d378228271913a",
|
|
261
|
-
"knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
|
|
262
|
-
"from": "ppt_preview",
|
|
263
|
-
"introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,。",
|
|
264
|
-
"previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"owner": null,
|
|
268
|
-
"tagId": "658b9c5e7cf604285f7cba46",
|
|
269
|
-
"enterprise": null,
|
|
270
|
-
"tagIds": [
|
|
271
|
-
"658b9c5e7cf604285f7cba46"
|
|
272
|
-
],
|
|
273
|
-
"format": "pptx",
|
|
274
|
-
"srcContentId": "c3eb5cb9bc1f0ad84243d824932cc9f9",
|
|
275
|
-
"updateTime": "2023-12-27 11:39:10",
|
|
276
|
-
"source": "CORP_LOCAL_FILE",
|
|
277
|
-
"srcContent": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
278
|
-
"url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/26/16/50/a25ee8f370fcefa639946805d6d3a7c3/ppt_preview.pptx",
|
|
279
|
-
"knowledgeId": "658a93de63d378228271913a",
|
|
280
|
-
"knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
|
|
281
|
-
"from": "ppt_preview",
|
|
282
|
-
"introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
283
|
-
"previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"owner": null,
|
|
287
|
-
"tagId": "658b9c5e7cf604285f7cba46",
|
|
288
|
-
"enterprise": null,
|
|
289
|
-
"tagIds": [
|
|
290
|
-
"658b9c5e7cf604285f7cba46"
|
|
291
|
-
],
|
|
292
|
-
"format": "pptx",
|
|
293
|
-
"srcContentId": "c3eb5cb9bc1f0ad84243d824932cc9f9",
|
|
294
|
-
"updateTime": "2023-12-27 11:39:10",
|
|
295
|
-
"source": "CORP_LOCAL_FILE",
|
|
296
|
-
"srcContent": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
297
|
-
"url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/26/16/50/a25ee8f370fcefa639946805d6d3a7c3/ppt_preview.pptx",
|
|
298
|
-
"knowledgeId": "658a93de63d378228271913a",
|
|
299
|
-
"knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
|
|
300
|
-
"from": "ppt_preview",
|
|
301
|
-
"introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
302
|
-
"previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"owner": null,
|
|
306
|
-
"tagId": "658b9c5e7cf604285f7cba46",
|
|
307
|
-
"enterprise": null,
|
|
308
|
-
"tagIds": [
|
|
309
|
-
"658b9c5e7cf604285f7cba46"
|
|
310
|
-
],
|
|
311
|
-
"format": "pptx",
|
|
312
|
-
"srcContentId": "c3eb5cb9bc1f0ad84243d824932cc9f9",
|
|
313
|
-
"updateTime": "2023-12-27 11:39:10",
|
|
314
|
-
"source": "CORP_LOCAL_FILE",
|
|
315
|
-
"srcContent": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
316
|
-
"url": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/26/16/50/a25ee8f370fcefa639946805d6d3a7c3/ppt_preview.pptx",
|
|
317
|
-
"knowledgeId": "658a93de63d378228271913a",
|
|
318
|
-
"knowledgePartId": "ypZaqYwBD3jzLtPbz5K8",
|
|
319
|
-
"from": "ppt_preview",
|
|
320
|
-
"introduction": "Spark是什么Spark 是一个开源的大数据处理引擎,它提供了一整套开发 API,包括流计算和机器学习。它支持批处理和流处理。Spark 的一个显著特点是它能够在内存中进行迭代计算,从而加快数据处理速度。尽管 Spark 是用 Scala 开发的,但它也为 Java、Scala、Python 和 R 等高级编程语言提供了开发接口。",
|
|
321
|
-
"previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
|
|
322
|
-
}
|
|
323
|
-
],
|
|
324
|
-
"renderType": 0,
|
|
325
|
-
"type": 1
|
|
326
|
-
},
|
|
327
|
-
"type": "answer_doc_knowledge"
|
|
328
|
-
},
|
|
240
|
+
answerDocknowledge: {"content":{"list":[{"owner":"财多多","tagId":"67e3bbe7b8d9470c7cbd8769","tagIds":["67e3bbe7b8d9470c7cbd8769"],"format":"pdf","updateTime":"2025-03-26 16:33:45","avatar":"https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2022/12/02/07/44/593e23bb-cca4-44af-89e9-2d7c2200209b/英招.jpg","source":"CORP_LOCAL_FILE","url":"https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/46b76aebe572421fa10e51f8f2086056/2024/04/22/17/17/642231f8e3f06c813525d9159121bef3/尚硅谷_授课须知.pdf?uploadId=A47AB26C750245D986FBBB675582E8E2","knowledgeId":"66262b1b3bd41767fae3a42d","reRankShowScore":"70.72","from":"尚硅谷_授课须知","folderName":"0422gzy测试"}],"type":2,"whetherRequestStream":false,"actionType":"answer_doc_knowledge","async":false,"textNoThink":"尚硅谷的课程安排如下:\\n\\n- **每天课程安排**:\\n - 830 开始读单词(25 个-30 个,来回两遍)\\n - 8:40-9:00 每天一考\\n - 9:00-12:00 上午三节课\\n - 1:45-2:00 学生分享\\n - 2:00-5:00 下午三节课\\n - 6:00-9:30 晚自习\\n - 6:00-6:30:梳理白天的知识(课件、视频、eDiary 框架)\\n - 6:30-晚自习结束:敲代码(至少每天代码敲2-3)\\n\\n- **每周课程安排**:\\n - 周一、二、三:上课\\n - 周四:自习\\n - 周五、周六:上课\\n - 周日:休息\n","stream":true,"recommendItems":["尚硅谷的每天一考有哪些要求?","尚硅谷的课程安排中晚自习的内容是什么?","尚硅谷的课程安排中每周的休息日是哪一天?"],"text":"尚硅谷的课程安排如下:\\n\\n- **每天课程安排**:\\n - 830 开始读单词(25 个-30 个,来回两遍)\\n - 8:40-9:00 每天一考\\n - 9:00-12:00 上午三节课\\n - 1:45-2:00 学生分享\\n - 2:00-5:00 下午三节课\\n - 6:00-9:30 晚自习\\n - 6:00-6:30:梳理白天的知识(课件、视频、eDiary 框架)\\n - 6:30-晚自习结束:敲代码(至少每天代码敲2-3)\\n\\n- **每周课程安排**:\\n - 周一、二、三:上课\\n - 周四:自习\\n - 周五、周六:上课\\n - 周日:休息\n","streamRequestUrl":"https://app.test.askbot.cn/dialog-api/dialog/stream/direct/v1/67e3c0dbcb4e977bce010096"},"msgId":"67e3c0db54b1d43f0f1fce9c","recordId":31357,"type":"answer_doc_knowledge"},
|
|
241
|
+
answerDocknowledge4: {
|
|
242
|
+
"content":{"images":[
|
|
243
|
+
{"url":"https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/ab0f90737c8b4f2d85ba2157e4473110/2024/12/25/12/38/58/676b8b26643e014bc160fb76/image1.jpeg"},
|
|
244
|
+
{"url":"https://itsm.mengniu.cn/o/bk_itsm/api/misc/download_rich_file/?file_path=/data/app/code/USERRES/richText/56389331cd62b3c1a47e22d499cd565e"},
|
|
245
|
+
{"url":"https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/front-oss/31623ccfe9dd4957bbd59c5823878bbe/2025/01/07/17/39/3fccf81e21cbcfaf7c0e1a69a848b5c0/1eeb31f8-1d9b-4d70-8cfd-4750f48c95ee.png"},
|
|
246
|
+
{"url":"https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/ab0f90737c8b4f2d85ba2157e4473110/2024/12/25/12/38/58/676b8b26643e014bc160fb76/image1.jpeg"},
|
|
247
|
+
{"url":"https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/ab0f90737c8b4f2d85ba2157e4473110/2024/12/25/12/38/58/676b8b26643e014bc160fb76/image1.jpeg"}],
|
|
248
|
+
"list":[{"owner":"吴明岩","tagId":"676b8c634bd318749f3383df","tagIds":["676b8c634bd318749f3383df"],"format":"docx","srcContentId":"4709b61b79242a90a2a5d5cb9b63f815","updateTime":"2024-12-31 14:56:16","avatar":"https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/2022/06/09/07/14/2dbcf1fa-f461-47e8-8e5b-3875df9d7b36/dynamicImage.942908447673894217.cmp.png","source":"CORP_LOCAL_FILE","srcContent":"在人际交往中,我们都怀揣着真诚与善意,希望收获真挚的友情。然而,并非所有人都值得我们倾心相待、深交厚谊。 有些人在相处过程中,会不自觉地流露出轻视与不屑,他们的言行犹如一把把利刃,悄无声息地刺伤我们的心灵。 倘若你身边有人经常如此对待你,那你可要提高警惕,因为这样的人,恐怕并非真心挚友,不值得你深交。","url":"https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/ab0f90737c8b4f2d85ba2157e4473110/2024/12/25/12/33/38120169a2cea918ef08e35e9065c8fa/838120169a2cea91.docx","knowledgeId":"676b8b26643e014bc160fb76","reRankShowScore":"97.66","knowledgePartId":"lPWAG5QBvcIPGxbfPEOj","from":"经常这样对待你的人,其实就是在轻视你,看不起你,不值得深交","folderName":"1225测试(所有文件均重新学习)-勿删","introduction":"在人际交往中,我们都怀揣着真诚与善意,希望收获真挚的友情。然而,并非所有人都值得我们倾心相待、深交厚谊。 有些人在相处过程中,会不自觉地流露出轻视与不屑,他们的言行犹如一把把利刃,悄无声息地刺伤我们的心灵。 倘若你身边有人经常如此对待你,那你可要提高警惕,因为这样的人,恐怕并非真心挚友,不值得你深交。"}],"type":2,"whetherRequestStream":false,"actionType":"answer_doc_knowledge","stream":true,"text":"**在人际交往中,我们都怀揣着真诚与善意,希望收获真挚的友情。然而,并非所有人都值得我们倾心相待、深交厚谊。** 有些人在相处过程中,会不自觉地流露出轻视与不屑,他们的言行犹如一把把利刃,悄无声息地刺伤我们的心灵。倘若你身边有人经常如此对待你,那你可要提高警惕,因为这样的人,恐怕并非真心挚友,不值得你深交。","streamRequestUrl":"https://app.test.askbot.cn/dialog-api/dialog/stream/v2/678484ea6e6197579e9b861b"},"msgId":"678484e654b1d43f0f0ae87d","recordId":27079,"type":"answer_doc_knowledge"},
|
|
329
249
|
ActionAiGuideObj: {
|
|
330
250
|
// 智能引导
|
|
331
251
|
type: "answer_intellect_guide",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
:excelRowList="excelRowList"
|
|
15
15
|
:tableChunkData="tableChunkData"
|
|
16
16
|
></excel-view>
|
|
17
|
-
<pdf-view v-else-if="fileType === 'PDF'" ref="pdfView" :split_paragraphs="splitParagraph" :ossPath="url" :isPC="isPC"></pdf-view>
|
|
17
|
+
<pdf-view v-else-if="fileType === 'PDF'" ref="pdfView" :split_paragraphs="splitParagraph" :ossPath="url" :isPC="isPC" :textWatermarkStr="textWatermarkStr"></pdf-view>
|
|
18
18
|
</div>
|
|
19
19
|
<template v-if="splitParagraph.length > 1 && fileType !== 'XLS' && fileType !== 'XLSX'">
|
|
20
20
|
<div class="btn_footer" v-if="!isPC">
|
|
@@ -68,6 +68,10 @@ export default {
|
|
|
68
68
|
url:{
|
|
69
69
|
type:String,
|
|
70
70
|
default:""
|
|
71
|
+
},
|
|
72
|
+
textWatermarkStr: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: ''
|
|
71
75
|
}
|
|
72
76
|
},
|
|
73
77
|
methods:{
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
49
|
<!-- PDF 渲染容器 -->
|
|
50
|
-
<div class="pdf-container" ref="pdfContainer">
|
|
50
|
+
<div class="pdf-container" id="pdf-container" ref="pdfContainer">
|
|
51
51
|
<div
|
|
52
52
|
v-for="(page, index) in pages"
|
|
53
53
|
:key="index"
|
|
@@ -78,7 +78,7 @@ if(pdfjsLib) {
|
|
|
78
78
|
pdfjsLib.GlobalWorkerOptions.workerSrc = window['pdfjs-dist/build/pdf.worker']
|
|
79
79
|
}
|
|
80
80
|
const { TextLayerBuilder } = window['pdfjs-dist/web/pdf_viewer']
|
|
81
|
-
|
|
81
|
+
import { newInitWaterMark } from "../../assets/js/common.js";
|
|
82
82
|
import Vue from 'vue';
|
|
83
83
|
export default {
|
|
84
84
|
name: "PdfViewer",
|
|
@@ -121,6 +121,10 @@ export default {
|
|
|
121
121
|
isPC:{
|
|
122
122
|
type:Boolean,
|
|
123
123
|
default:true
|
|
124
|
+
},
|
|
125
|
+
textWatermarkStr: {
|
|
126
|
+
type: String,
|
|
127
|
+
default: ''
|
|
124
128
|
}
|
|
125
129
|
},
|
|
126
130
|
methods: {
|
|
@@ -303,6 +307,9 @@ export default {
|
|
|
303
307
|
// 将文本 div 添加到覆盖层中
|
|
304
308
|
let pagesDiv = document.getElementById('canvas-wrapper' + pageIndex);
|
|
305
309
|
pagesDiv.appendChild(textDiv)
|
|
310
|
+
if (this.textWatermarkStr){
|
|
311
|
+
newInitWaterMark('canvas-wrapper' + pageIndex, this.textWatermarkStr)
|
|
312
|
+
}
|
|
306
313
|
})
|
|
307
314
|
this.renderInProgress = false;
|
|
308
315
|
this.$set(pageData,'loading',false)
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
</template>
|
|
44
44
|
<div class="header_close" v-else>
|
|
45
45
|
<span class="title_left">
|
|
46
|
-
{{ title ? title : '
|
|
46
|
+
{{ title ? title : $t('dragonCommon.viewDetails') }}
|
|
47
47
|
</span>
|
|
48
48
|
<section @click="close">
|
|
49
49
|
<i class="iconfont guoran-shanchu"></i>
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
</div>
|
|
106
106
|
<new-position-preview ref="newPositionPreview"
|
|
107
107
|
v-else-if="tagIds && tagIds.length != 0 && newVersion && newFileType !== 'PPT'"
|
|
108
|
+
:textWatermarkStr="textWatermarkStr"
|
|
108
109
|
:knowledgeId="knowledgeId" :tagIds="tagIds" :url="previewHref"></new-position-preview>
|
|
109
110
|
<template v-else>
|
|
110
111
|
<div v-if="fileType == 'VIDEO'" style="width: 100%;height: 100%">
|
|
@@ -118,7 +119,7 @@
|
|
|
118
119
|
frameborder="no" border="0"></iframe>
|
|
119
120
|
</template>
|
|
120
121
|
<template v-else>
|
|
121
|
-
<iframe class="preview_iframe_kk" :src="previewUrl" style="border:none;"
|
|
122
|
+
<iframe class="preview_iframe_kk" :src="previewUrl" @load="load" style="border:none;"
|
|
122
123
|
:style="{ height: iframeHeight }"></iframe>
|
|
123
124
|
<template v-if="!loading && (newFileType === 'PPT' && pageChunkData.length > 1)">
|
|
124
125
|
<div class="btn_footer" v-if="!isPc">
|
|
@@ -317,29 +318,40 @@ export default {
|
|
|
317
318
|
}
|
|
318
319
|
}
|
|
319
320
|
return url
|
|
321
|
+
// fileType() {
|
|
322
|
+
// const fileType = this.url.substring(this.url.lastIndexOf('.'));
|
|
323
|
+
// if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.mov') {
|
|
324
|
+
// return 'VIDEO'
|
|
325
|
+
// } else {
|
|
326
|
+
// return 'OTHER'
|
|
327
|
+
// }
|
|
320
328
|
|
|
321
|
-
|
|
322
|
-
// fileType() {
|
|
323
|
-
// const fileType = this.url.substring(this.url.lastIndexOf('.'));
|
|
324
|
-
// if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.mov') {
|
|
325
|
-
// return 'VIDEO'
|
|
326
|
-
// } else {
|
|
327
|
-
// return 'OTHER'
|
|
328
|
-
// }
|
|
329
|
-
|
|
330
|
-
// }
|
|
329
|
+
}
|
|
331
330
|
},
|
|
332
331
|
methods: {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
332
|
+
load() {
|
|
333
|
+
this.loading = false;
|
|
334
|
+
if(sessionStorage.getItem('wxAuth')){
|
|
335
|
+
window.postMessage({
|
|
336
|
+
type: "wx_bind",
|
|
337
|
+
data: JSON.parse(sessionStorage.getItem('wxAuth'))
|
|
338
|
+
}, '*')
|
|
339
|
+
} else {
|
|
340
|
+
window.postMessage({
|
|
341
|
+
type: "wx_bind",
|
|
342
|
+
data: 'pass'
|
|
343
|
+
}, '*')
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
close() {
|
|
347
|
+
setTimeout(() => {
|
|
348
|
+
this.previewShowPopup = false;
|
|
349
|
+
this.fileType = ''
|
|
350
|
+
}, 300)
|
|
351
|
+
this.drawer = false;
|
|
352
|
+
this.showSummary = false;
|
|
353
|
+
},
|
|
354
|
+
loadIframe() {
|
|
343
355
|
if (this.fileType == 'VIDEO' || this.fileType == 'WECHAT' || (this.tagIds && this.tagIds.length != 0 && this.newFileType !== 'PPT')) {
|
|
344
356
|
this.loading = false
|
|
345
357
|
} else {
|