askbot-dragon 1.7.83-beta → 1.7.84-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 +1 -3
- package/public/index.html +9 -6
- package/src/assets/js/AliyunlssUtil.js +25 -49
- package/src/assets/js/hammer.js +2 -13
- package/src/assets/less/converSationContainer/common.less +0 -7
- package/src/components/ActionAlertIframe.vue +1 -24
- package/src/components/AiGuide.vue +150 -113
- package/src/components/AnswerDocknowledge.vue +5 -5
- package/src/components/ConversationContainer.vue +206 -10
- package/src/components/MyEditor.vue +1 -2
- package/src/components/actionSatisfaction.vue +1 -1
- package/src/components/answerRadio.vue +1 -1
- package/src/components/askVideo.vue +0 -23
- package/src/components/associationIntention.vue +7 -11
- package/src/components/formTemplate.vue +50 -54
- package/src/components/intelligentSummary.vue +1 -5
- package/src/components/message/TextMessage.vue +1 -5
- package/src/components/message/swiper/ticketSwiper.vue +1 -1
- package/src/components/pdfPosition.vue +12 -190
- package/src/components/previewDoc.vue +0 -4
- package/src/components/previewPdf.vue +179 -179
- package/src/components/senderMessagePlatform.vue +1 -1
- package/src/components/utils/ckeditor.js +1 -1
- package/src/components/welcomeKnowledgeFile.vue +1 -5
- package/src/components/welcomeLlmCard.vue +1 -5
- package/src/main.js +1 -1
- package/src/components/newPdfPosition.vue +0 -878
- package/src/locales/jp.json +0 -73
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
:textWatermarkStr="textWatermarkStr"
|
|
109
109
|
:knowledgeId="knowledgeId" :tagIds="tagIds" :url="previewHref"></new-position-preview>
|
|
110
110
|
<template v-else>
|
|
111
|
-
<div v-if="fileType == 'VIDEO'" style="width: 100%;
|
|
111
|
+
<div v-if="fileType == 'VIDEO'" style="width: 100%;">
|
|
112
112
|
<video :src="url" controls width="100%;" height="98%"></video>
|
|
113
113
|
</div>
|
|
114
114
|
<div v-else-if="fileType == 'HTML'" style="width: 100%;">
|
|
@@ -154,170 +154,166 @@ import { isMobile } from "../assets/js/common";
|
|
|
154
154
|
import { Toast } from 'vant';
|
|
155
155
|
import NewPositionPreview from "./preview/newPositionPreview";
|
|
156
156
|
export default {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
},
|
|
240
|
-
userId: {
|
|
241
|
-
type: String,
|
|
242
|
-
default: ''
|
|
243
|
-
}
|
|
157
|
+
data() {
|
|
158
|
+
return {
|
|
159
|
+
previewShowPopup: false,
|
|
160
|
+
fileText: '',
|
|
161
|
+
fileType: "",
|
|
162
|
+
isPc: false,
|
|
163
|
+
drawer: false,
|
|
164
|
+
tagIds: [],
|
|
165
|
+
// '6454aa1a70573a6ead6f0f7d', '6454aa1a70573a6ead6f0f81',
|
|
166
|
+
loading: true,
|
|
167
|
+
previewKnowledgeId: "",
|
|
168
|
+
showSummary: false,
|
|
169
|
+
iframeHeight: "100%",
|
|
170
|
+
isDownload: false,
|
|
171
|
+
textWatermarkStr: "",
|
|
172
|
+
copy: '',
|
|
173
|
+
newVersion: '',
|
|
174
|
+
previewHref: "",
|
|
175
|
+
newFileType: "",
|
|
176
|
+
numberPage: 0,
|
|
177
|
+
pageChunkData: [],
|
|
178
|
+
currentPage: 0
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
mounted() {
|
|
182
|
+
this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
|
|
183
|
+
window.addEventListener('message', this.handleIframeMessage, false);
|
|
184
|
+
this.isPcFun();
|
|
185
|
+
},
|
|
186
|
+
props: {
|
|
187
|
+
url: {
|
|
188
|
+
type: String,
|
|
189
|
+
required: true,
|
|
190
|
+
},
|
|
191
|
+
officePreviewType: {
|
|
192
|
+
type: String,
|
|
193
|
+
default: ''
|
|
194
|
+
},
|
|
195
|
+
isMessageRecord: {
|
|
196
|
+
type: Boolean,
|
|
197
|
+
default: false,
|
|
198
|
+
},
|
|
199
|
+
sourceFileType: {
|
|
200
|
+
type: String,
|
|
201
|
+
default: '',
|
|
202
|
+
},
|
|
203
|
+
title: {
|
|
204
|
+
type: String,
|
|
205
|
+
default: ''
|
|
206
|
+
},
|
|
207
|
+
isHasChat: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
default: false
|
|
210
|
+
},
|
|
211
|
+
knowledgeId: {
|
|
212
|
+
type: String,
|
|
213
|
+
default: '',
|
|
214
|
+
},
|
|
215
|
+
previewOssPath: {
|
|
216
|
+
type: String,
|
|
217
|
+
default: '',
|
|
218
|
+
},
|
|
219
|
+
folderName: {
|
|
220
|
+
type: String,
|
|
221
|
+
default: '',
|
|
222
|
+
},
|
|
223
|
+
folderUrl: {
|
|
224
|
+
type: String,
|
|
225
|
+
default: '',
|
|
226
|
+
},
|
|
227
|
+
isLiBang: {
|
|
228
|
+
type: Boolean,
|
|
229
|
+
default: false
|
|
230
|
+
},
|
|
231
|
+
mainId: {
|
|
232
|
+
type: String,
|
|
233
|
+
default: ''
|
|
234
|
+
},
|
|
235
|
+
userId: {
|
|
236
|
+
type: String,
|
|
237
|
+
default: ''
|
|
238
|
+
}
|
|
244
239
|
},
|
|
245
240
|
components: {
|
|
246
241
|
NewPositionPreview,
|
|
247
242
|
IntelligentSummary,
|
|
248
243
|
pdfPosition
|
|
249
244
|
},
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
computed: {
|
|
287
|
-
pdfStyle () {
|
|
288
|
-
return {
|
|
289
|
-
paddingTop: this.isPc ? '30px' : '0', // 30px 是 加上外层的 20 流出 50的上边距展示 放大缩小操作栏
|
|
290
|
-
paddingBottom: this.tagIds > 1 ? '60px' : '0',
|
|
291
|
-
height: '100%'
|
|
245
|
+
watch: {
|
|
246
|
+
drawer(value) {
|
|
247
|
+
if (value) {
|
|
248
|
+
this.$emit('open')
|
|
249
|
+
this.$nextTick(() => {
|
|
250
|
+
zoomElement(document.getElementById('drawer_content_pre'))
|
|
251
|
+
})
|
|
252
|
+
} else {
|
|
253
|
+
this.$emit('close')
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
showSummary: {
|
|
257
|
+
handler(val) {
|
|
258
|
+
// if (!val){
|
|
259
|
+
// this.$nextTick(() => {
|
|
260
|
+
// let preCon = document.querySelector('.pdf_view');
|
|
261
|
+
// if (preCon){
|
|
262
|
+
// preCon.style.height = 'calc(100% - ' + 50 + 'px)'
|
|
263
|
+
// }
|
|
264
|
+
// })
|
|
265
|
+
// } else {
|
|
266
|
+
// this.getSummarySuccess();
|
|
267
|
+
// }
|
|
268
|
+
if (val) {
|
|
269
|
+
this.getSummarySuccess();
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
knowledgeId: {
|
|
274
|
+
handler(val) {
|
|
275
|
+
if (val) {
|
|
276
|
+
this.getTextWatermark();
|
|
277
|
+
}
|
|
278
|
+
}
|
|
292
279
|
}
|
|
293
280
|
},
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
// } else {
|
|
301
|
-
// url += btoa(this.url)
|
|
302
|
-
// }
|
|
303
|
-
// }
|
|
304
|
-
url = url + this.url
|
|
305
|
-
if (this.sourceFileType == '.ppt' || this.sourceFileType == '.pptx' || this.sourceFileType == '.pdf') {
|
|
306
|
-
url += '&officePreviewType=pdf'
|
|
307
|
-
if (this.watermark) {
|
|
308
|
-
url = this.watermark.textWatermarkValue ? (url += '&textWatermarkValue=' + this.watermark.textWatermarkValue) : url
|
|
309
|
-
url = this.watermark.visitorWatermarkValue ? (url += '&visitorWatermarkValue=' + this.watermark.visitorWatermarkValue) : url
|
|
281
|
+
computed: {
|
|
282
|
+
pdfStyle() {
|
|
283
|
+
return {
|
|
284
|
+
paddingTop: this.isPc ? '30px' : '0', // 30px 是 加上外层的 20 流出 50的上边距展示 放大缩小操作栏
|
|
285
|
+
paddingBottom: this.tagIds > 1 ? '60px' : '0',
|
|
286
|
+
height: '100%'
|
|
310
287
|
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
url
|
|
315
|
-
|
|
288
|
+
},
|
|
289
|
+
previewUrl() {
|
|
290
|
+
console.debug('VUE_APP_ENV', process.env.VUE_APP_ENV)
|
|
291
|
+
let url = process.env.VUE_APP_ENV === 'production' ? 'https://kkfileview.askbot.cn/onlinePreview?url=' : 'https://test.open.askbot.cn/kkfileview/onlinePreview?url='
|
|
292
|
+
// if(this.url != '') {
|
|
293
|
+
// if(/[\u4E00-\u9FA5]+/g.test(this.url)) {
|
|
294
|
+
// url += btoa(encodeURIComponent(this.url))
|
|
295
|
+
// } else {
|
|
296
|
+
// url += btoa(this.url)
|
|
297
|
+
// }
|
|
298
|
+
// }
|
|
299
|
+
url = url + this.url
|
|
300
|
+
if (this.sourceFileType == '.ppt' || this.sourceFileType == '.pptx' || this.sourceFileType == '.pdf') {
|
|
301
|
+
url += '&officePreviewType=pdf'
|
|
302
|
+
}
|
|
303
|
+
if(sessionStorage.getItem('wxAuth') ) {
|
|
304
|
+
let wxAuth = JSON.parse(sessionStorage.getItem('wxAuth'))
|
|
305
|
+
let mainId = wxAuth.mainId ? wxAuth.mainId : ''
|
|
306
|
+
let userId = wxAuth.userId ? wxAuth.userId : ''
|
|
307
|
+
let test = wxAuth.test ? wxAuth.test : ''
|
|
308
|
+
let corpId = wxAuth.corpId ? wxAuth.corpId : ''
|
|
309
|
+
url += '&mainId=' + mainId + '&userId=' + userId + '&test=' + test + '&corpId=' + corpId
|
|
310
|
+
}
|
|
311
|
+
// console.log('textWatermarkStr 216', this.textWatermarkStr)
|
|
316
312
|
if (this.textWatermarkStr) {
|
|
317
313
|
url += '&textWatermarkValue=' + this.textWatermarkStr
|
|
318
314
|
}
|
|
319
|
-
|
|
320
|
-
|
|
315
|
+
return url
|
|
316
|
+
},
|
|
321
317
|
// fileType() {
|
|
322
318
|
// const fileType = this.url.substring(this.url.lastIndexOf('.'));
|
|
323
319
|
// if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.mov') {
|
|
@@ -326,7 +322,7 @@ export default {
|
|
|
326
322
|
// return 'OTHER'
|
|
327
323
|
// }
|
|
328
324
|
|
|
329
|
-
}
|
|
325
|
+
// }
|
|
330
326
|
},
|
|
331
327
|
methods: {
|
|
332
328
|
load() {
|
|
@@ -627,7 +623,7 @@ export default {
|
|
|
627
623
|
}
|
|
628
624
|
},
|
|
629
625
|
beforeDestroy() {
|
|
630
|
-
|
|
626
|
+
window.removeEventListener('message', this.handleIframeMessage);
|
|
631
627
|
}
|
|
632
628
|
}
|
|
633
629
|
</script>
|
|
@@ -923,26 +919,26 @@ export default {
|
|
|
923
919
|
align-items: center;
|
|
924
920
|
justify-content: space-between;
|
|
925
921
|
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
922
|
+
.header-right {
|
|
923
|
+
display: flex;
|
|
924
|
+
}
|
|
929
925
|
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
926
|
+
.summaryBtn {
|
|
927
|
+
flex: none;
|
|
928
|
+
//width: 95px;
|
|
929
|
+
height: 26px;
|
|
930
|
+
padding: 0 8px;
|
|
931
|
+
background: #ffffff;
|
|
932
|
+
display: flex;
|
|
933
|
+
align-items: center;
|
|
934
|
+
justify-content: center;
|
|
935
|
+
box-sizing: border-box;
|
|
936
|
+
border: 1px solid #a1b9ff;
|
|
937
|
+
border-radius: 15px;
|
|
938
|
+
cursor: pointer;
|
|
939
|
+
color: #366aff;
|
|
940
|
+
margin-right: 10px;
|
|
941
|
+
font-size: 14px;
|
|
946
942
|
|
|
947
943
|
i {
|
|
948
944
|
font-size: 14px;
|
|
@@ -1045,11 +1041,15 @@ export default {
|
|
|
1045
1041
|
height: 100%;
|
|
1046
1042
|
}
|
|
1047
1043
|
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1044
|
+
#drawer_content_pre {
|
|
1045
|
+
overflow: auto;
|
|
1046
|
+
height: calc(100% - 50px);
|
|
1047
|
+
background: #FFF;
|
|
1048
|
+
background-image: url('https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/loading.gif');
|
|
1049
|
+
background-position: center;
|
|
1050
|
+
background-size: 50px;
|
|
1051
|
+
background-repeat: no-repeat;
|
|
1052
|
+
}
|
|
1053
1053
|
|
|
1054
1054
|
.libang_content_pre {
|
|
1055
1055
|
height: calc(100% - 64px) !important;
|
|
@@ -39,11 +39,7 @@ export default {
|
|
|
39
39
|
clickFun (item) {
|
|
40
40
|
this.$emit('llmCardClickFun', item)
|
|
41
41
|
}
|
|
42
|
-
}
|
|
43
|
-
mounted() {
|
|
44
|
-
let languageCode = sessionStorage.getItem('languageCode');
|
|
45
|
-
console.log('languageCode',languageCode,this.$i18n.locale,localStorage.getItem('languageCode'))
|
|
46
|
-
}
|
|
42
|
+
}
|
|
47
43
|
};
|
|
48
44
|
</script>
|
|
49
45
|
|