askbot-dragon 1.8.38-beta → 1.8.39-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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "askbot-dragon",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.39-beta",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve",
|
|
6
6
|
"build": "vue-cli-service build",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"marked": "^4.0.0",
|
|
14
|
-
"highlight.js": "^11.11.1",
|
|
15
14
|
"audio-loader": "^1.0.3",
|
|
16
15
|
"core-js": "^3.6.5",
|
|
17
16
|
"install": "^0.13.0",
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
:folderName="folderName" :folderUrl="folderUrl"
|
|
205
205
|
:sourceFileType="sourceFileType" officePreviewType="pdf" @previewToDialog="previewToDialog"
|
|
206
206
|
@recommendQues="recommendQues" @close="close" @open="open" :isHasChat="isHasChat"
|
|
207
|
-
:knowledgeId="previewKnowledgeId" :isLiBang="isLiBang" @previewClickFloder="previewClickFloder"></previewPdf>
|
|
207
|
+
:knowledgeId="previewKnowledgeId" :isLiBang="isLiBang" @previewClickFloder="previewClickFloder" :cMapUrl="cMapUrl" :standardFontDataUrl="standardFontDataUrl"></previewPdf>
|
|
208
208
|
</div>
|
|
209
209
|
</template>
|
|
210
210
|
|
|
@@ -302,7 +302,7 @@ export default {
|
|
|
302
302
|
showImage: false
|
|
303
303
|
}
|
|
304
304
|
},
|
|
305
|
-
props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","language","isHistory","knowledgeIndex"],
|
|
305
|
+
props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang","language","isHistory","knowledgeIndex","cMapUrl","standardFontDataUrl"],
|
|
306
306
|
beforeMounted () {
|
|
307
307
|
},
|
|
308
308
|
watch: {
|
|
@@ -82,6 +82,13 @@
|
|
|
82
82
|
<association-intention :msg="item" :msgType="item.type" :isOpen="isOpen"></association-intention>
|
|
83
83
|
</div> -->
|
|
84
84
|
<pdf-view ref="pdfView" :split_paragraphs="splitParagraph" :ossPath="ossPath" :isPC="true"></pdf-view>
|
|
85
|
+
<doc-view
|
|
86
|
+
:html_result="html_result"
|
|
87
|
+
:split_paragraphs="splitParagraph"
|
|
88
|
+
ref="docView"
|
|
89
|
+
:fileSuffix="'DOC'"
|
|
90
|
+
v-if="false"
|
|
91
|
+
></doc-view>
|
|
85
92
|
</div>
|
|
86
93
|
</template>
|
|
87
94
|
<script>
|
|
@@ -124,9 +131,11 @@ import WelcomeLlmCard from "./welcomeLlmCard";
|
|
|
124
131
|
import welcomeSuggest from "./welcomeSuggest"
|
|
125
132
|
import QwFeedback from './QwFeedback';
|
|
126
133
|
import PdfView from "./preview/pdfView";
|
|
134
|
+
import DocView from "./preview/docView";
|
|
127
135
|
export default {
|
|
128
136
|
name: 'ConversationContainer',
|
|
129
137
|
components: {
|
|
138
|
+
DocView,
|
|
130
139
|
PdfView,
|
|
131
140
|
WelcomeLlmCard,
|
|
132
141
|
WelcomeKnowledgeFile,
|
|
@@ -913,6 +922,97 @@ export default {
|
|
|
913
922
|
"page": null,
|
|
914
923
|
"paragraph_id": "fbe6c0be-d5a5-4292-b6dd-7b70889d608b"
|
|
915
924
|
}],
|
|
925
|
+
docPath:"https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/ab0f90737c8b4f2d85ba2157e4473110/2025/09/23/16/16/312e61f72a31c63de4f121299aa3c09d/0312e61f72a31c63.docx?Expires=1767888132&OSSAccessKeyId=LTAI4Fr7hD1XCFb5zMNjMcGy&Signature=1Vk5jKO2LssHsKJ5fskZ%2FzG3QLA%3D",
|
|
926
|
+
docSplitParagraph:[
|
|
927
|
+
{
|
|
928
|
+
"paragraph": "3、相关说明: (1)组织结构调整导致预算调整: 部门间的预算调整:根据公司部门设置引起的职能、人员调整,需要调整部门预算的,由两个部门的负责人确认预算调整金额,在系统中完成预算调整; 部门预算的拆分:一个部门由于业务调整拆分成两个以上的部门,年初预算需要拆分的按照以下方式拆分:由新的部门负责人按照业务、人员拆分的情况确认各项费用的年初预算、项目预算以及项目下的合同调整金额,统一在网上支付系统中调整。 (2)费用报销的预算控制 费用超年度预算控制:费用报销时如果超出项目或科目的年度预算,系统不允许提交报销, 需要提前沟通预算调增需求, 按邮件审批流程获得审批后,可在系统提交预算调增流程; 费用超标准控制:按公司费用标准控制的,如:差旅费、通讯费等,如超标准报销,在预算满足的前提下,需要提前邮件通知系统负责人(或业务总监); 分摊类费用的预算控制:分摊类费用应进行年度预算控制,对于超预算的部门,建议提交部门预算调整流程,完成后再进行正常的分摊报销。",
|
|
929
|
+
"edit_paragraph": null,
|
|
930
|
+
"original_paragraph": [
|
|
931
|
+
{
|
|
932
|
+
"text": "3、相关说明:",
|
|
933
|
+
"title": {
|
|
934
|
+
"number": "3.2.1.3.1.1.1",
|
|
935
|
+
"level": 7,
|
|
936
|
+
"text": "3、相关说明:"
|
|
937
|
+
},
|
|
938
|
+
"paragraph_id": "41ccc1c5-e62c-41bd-a241-ca82094ba49a",
|
|
939
|
+
"images": [],
|
|
940
|
+
"page": 0,
|
|
941
|
+
"position": []
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"text": "(1)组织结构调整导致预算调整:",
|
|
945
|
+
"title": {
|
|
946
|
+
"number": "3.2.1.3.1.1.1.1",
|
|
947
|
+
"level": 8,
|
|
948
|
+
"text": "(1)组织结构调整导致预算调整:"
|
|
949
|
+
},
|
|
950
|
+
"paragraph_id": "02d2641f-f8ce-4987-b988-b1ace8461879",
|
|
951
|
+
"images": [],
|
|
952
|
+
"page": 0,
|
|
953
|
+
"position": []
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"text": "部门间的预算调整:根据公司部门设置引起的职能、人员调整,需要调整部门预算的,由两个部门的负责人确认预算调整金额,在系统中完成预算调整;",
|
|
957
|
+
"title": null,
|
|
958
|
+
"paragraph_id": "beea1ad2-812d-459b-ba39-9e4a5000890a",
|
|
959
|
+
"images": [],
|
|
960
|
+
"page": 0,
|
|
961
|
+
"position": []
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"text": "部门预算的拆分:一个部门由于业务调整拆分成两个以上的部门,年初预算需要拆分的按照以下方式拆分:由新的部门负责人按照业务、人员拆分的情况确认各项费用的年初预算、项目预算以及项目下的合同调整金额,统一在网上支付系统中调整。",
|
|
965
|
+
"title": null,
|
|
966
|
+
"paragraph_id": "aa7d36e1-366d-4580-ba0e-41877e678ef0",
|
|
967
|
+
"images": [],
|
|
968
|
+
"page": 0,
|
|
969
|
+
"position": []
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"text": "(2)费用报销的预算控制",
|
|
973
|
+
"title": {
|
|
974
|
+
"number": "3.2.1.3.1.1.1.2",
|
|
975
|
+
"level": 8,
|
|
976
|
+
"text": "(2)费用报销的预算控制"
|
|
977
|
+
},
|
|
978
|
+
"paragraph_id": "122fa610-00c8-4cc8-8d99-cb601fd90426",
|
|
979
|
+
"images": [],
|
|
980
|
+
"page": 0,
|
|
981
|
+
"position": []
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"text": "费用超年度预算控制:费用报销时如果超出项目或科目的年度预算,系统不允许提交报销, 需要提前沟通预算调增需求, 按邮件审批流程获得审批后,可在系统提交预算调增流程;",
|
|
985
|
+
"title": null,
|
|
986
|
+
"paragraph_id": "50492c6f-3267-4a04-a008-d923e67f5d9e",
|
|
987
|
+
"images": [],
|
|
988
|
+
"page": 0,
|
|
989
|
+
"position": []
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"text": "费用超标准控制:按公司费用标准控制的,如:差旅费、通讯费等,如超标准报销,在预算满足的前提下,需要提前邮件通知系统负责人(或业务总监);",
|
|
993
|
+
"title": null,
|
|
994
|
+
"paragraph_id": "608f2d9e-a159-48d8-aea9-952545a46f1e",
|
|
995
|
+
"images": [],
|
|
996
|
+
"page": 0,
|
|
997
|
+
"position": []
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"text": "分摊类费用的预算控制:分摊类费用应进行年度预算控制,对于超预算的部门,建议提交部门预算调整流程,完成后再进行正常的分摊报销。",
|
|
1001
|
+
"title": null,
|
|
1002
|
+
"paragraph_id": "d14e0364-1034-4036-ab7c-c71383647779",
|
|
1003
|
+
"images": [],
|
|
1004
|
+
"page": 0,
|
|
1005
|
+
"position": []
|
|
1006
|
+
}
|
|
1007
|
+
],
|
|
1008
|
+
"images": [],
|
|
1009
|
+
"html": null,
|
|
1010
|
+
"html_result": "https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/ab0f90737c8b4f2d85ba2157e4473110/2025/12/18/11/39/06/6943773e0229e8779290ca49/6943773e0229e8779290ca49_1766029146.html",
|
|
1011
|
+
"page": null,
|
|
1012
|
+
"paragraph_id": "dc7973d7-25bc-428c-911c-e6f04c9b653d"
|
|
1013
|
+
}
|
|
1014
|
+
],
|
|
1015
|
+
html_result:"https://guoranwisdom.oss-cn-zhangjiakou.aliyuncs.com/ab0f90737c8b4f2d85ba2157e4473110/2025/12/18/11/39/06/6943773e0229e8779290ca49/6943773e0229e8779290ca49_1766029146.html",
|
|
916
1016
|
black: '',
|
|
917
1017
|
welcomeSuggest: {
|
|
918
1018
|
content: {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
:tableChunkData="tableChunkData"
|
|
17
17
|
:textWatermarkStr="textWatermarkStr"
|
|
18
18
|
></excel-view>
|
|
19
|
-
<pdf-view v-else-if="fileType === 'PDF'" ref="pdfView" :split_paragraphs="splitParagraph" :ossPath="url" :isPC="isPC" :textWatermarkStr="textWatermarkStr"></pdf-view>
|
|
19
|
+
<pdf-view v-else-if="fileType === 'PDF'" ref="pdfView" :split_paragraphs="splitParagraph" :ossPath="url" :isPC="isPC" :textWatermarkStr="textWatermarkStr" :cMapUrl="cMapUrl" :standardFontDataUrl="standardFontDataUrl"></pdf-view>
|
|
20
20
|
<mark-down-view v-else-if="fileType === 'MD'" :url="url" :split_paragraphs="splitParagraph" :textWatermarkStr="textWatermarkStr"></mark-down-view>
|
|
21
21
|
<template v-else-if="fileType === 'URL'">
|
|
22
22
|
<div class="preview_iframe_html" id="preview_iframe_html" style="text-align:left" v-html="fileText"></div>
|
|
@@ -85,6 +85,14 @@ export default {
|
|
|
85
85
|
previewOssPath:{
|
|
86
86
|
type:String,
|
|
87
87
|
default:""
|
|
88
|
+
},
|
|
89
|
+
cMapUrl:{
|
|
90
|
+
type:String,
|
|
91
|
+
default:"/pdfjs/cmaps/"
|
|
92
|
+
},
|
|
93
|
+
standardFontDataUrl:{
|
|
94
|
+
type:String,
|
|
95
|
+
default:"/pdfjs/standard_fonts/"
|
|
88
96
|
}
|
|
89
97
|
},
|
|
90
98
|
methods:{
|
|
@@ -125,6 +125,14 @@ export default {
|
|
|
125
125
|
textWatermarkStr: {
|
|
126
126
|
type: String,
|
|
127
127
|
default: ''
|
|
128
|
+
},
|
|
129
|
+
cMapUrl:{
|
|
130
|
+
type:String,
|
|
131
|
+
default:"/pdfjs/cmaps/"
|
|
132
|
+
},
|
|
133
|
+
standardFontDataUrl:{
|
|
134
|
+
type:String,
|
|
135
|
+
default:"/pdfjs/standard_fonts/"
|
|
128
136
|
}
|
|
129
137
|
},
|
|
130
138
|
methods: {
|
|
@@ -168,11 +176,9 @@ export default {
|
|
|
168
176
|
// this.pdf = await pdfjsLib.getDocument(this.pdfFile).promise;
|
|
169
177
|
this.loadingTask = pdfjsLib.getDocument({
|
|
170
178
|
url: this.pdfFile,
|
|
171
|
-
cMapUrl:
|
|
179
|
+
cMapUrl: this.cMapUrl,
|
|
172
180
|
cMapPacked: true,
|
|
173
|
-
standardFontDataUrl:
|
|
174
|
-
disableFontFace: true,
|
|
175
|
-
useSystemFonts: true
|
|
181
|
+
standardFontDataUrl: this.standardFontDataUrl,
|
|
176
182
|
});
|
|
177
183
|
await this.loadingTask.promise.then(async pdf => {
|
|
178
184
|
// 获取PDF的第一页
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
<new-position-preview ref="newPositionPreview"
|
|
107
107
|
v-else-if="tagIds && tagIds.length != 0 && newVersion && newFileType !== 'PPT' && newFileType !== 'PPTX' && newFileType !== 'IMAGE'"
|
|
108
108
|
:textWatermarkStr="textWatermarkStr"
|
|
109
|
-
:knowledgeId="knowledgeId" :tagIds="tagIds" :url="previewHref" :previewOssPath="previewOssPath"></new-position-preview>
|
|
109
|
+
:knowledgeId="knowledgeId" :tagIds="tagIds" :url="previewHref" :previewOssPath="previewOssPath" :cMapUrl="cMapUrl" :standardFontDataUrl="standardFontDataUrl"></new-position-preview>
|
|
110
110
|
<template v-else>
|
|
111
111
|
<div v-if="fileType == 'VIDEO'" style="width: 100%;height: 100%">
|
|
112
112
|
<video :src="url" controls width="100%;" height="98%"></video>
|
|
@@ -244,6 +244,14 @@ export default {
|
|
|
244
244
|
isLining:{
|
|
245
245
|
type: Boolean,
|
|
246
246
|
default: false
|
|
247
|
+
},
|
|
248
|
+
cMapUrl:{
|
|
249
|
+
type:String,
|
|
250
|
+
default:"/pdfjs/cmaps/"
|
|
251
|
+
},
|
|
252
|
+
standardFontDataUrl:{
|
|
253
|
+
type:String,
|
|
254
|
+
default:"/pdfjs/standard_fonts/"
|
|
247
255
|
}
|
|
248
256
|
},
|
|
249
257
|
components: {
|