askbot-dragon 1.7.28-beta → 1.7.31-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 +2 -4
- package/src/assets/js/AliyunlssUtil.js +9 -32
- package/src/components/AnswerDocknowledge.vue +93 -101
- package/src/components/ConversationContainer.vue +17 -6
- package/src/components/MyEditor.vue +10 -1
- package/src/components/QwFeedback.vue +302 -0
- package/src/components/askVideo.vue +2 -2
- package/src/components/formTemplate.vue +14 -4
- package/src/components/intelligentSummary.vue +12 -14
- package/src/components/pdfPosition.vue +58 -66
- package/src/components/previewPdf.vue +21 -16
- package/src/components/utils/AliyunIssUtil.js +12 -33
- package/src/components/utils/ckeditor.js +48 -59
- package/src/main.js +0 -16
- package/src/components/imgView.vue +0 -32
- package/src/components/markDownText.vue +0 -164
- package/src/locales/cn.json +0 -26
- package/src/locales/en.json +0 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "askbot-dragon",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.31-beta",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve",
|
|
6
6
|
"build": "vue-cli-service build",
|
|
@@ -28,12 +28,10 @@
|
|
|
28
28
|
"babel-eslint": "^10.1.0",
|
|
29
29
|
"element-ui": "^2.15.10",
|
|
30
30
|
"eslint": "^6.7.2",
|
|
31
|
-
"vue-markdown": "^2.2.4",
|
|
32
31
|
"eslint-plugin-vue": "^6.2.2",
|
|
33
32
|
"less": "^3.12.2",
|
|
34
33
|
"less-loader": "^7.0.2",
|
|
35
|
-
"vue-template-compiler": "^2.6.11"
|
|
36
|
-
"vue-i18n": "^8.26.4"
|
|
34
|
+
"vue-template-compiler": "^2.6.11"
|
|
37
35
|
},
|
|
38
36
|
"eslintConfig": {
|
|
39
37
|
"root": true,
|
|
@@ -4,27 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
const OSS = window.OSS
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
let mainSource = sessionStorage.getItem('_mainSource') ? sessionStorage.getItem('_mainSource') : "askbot";
|
|
9
|
-
switch (mainSource) {
|
|
10
|
-
case "askbot":
|
|
11
|
-
return {
|
|
12
|
-
region: "oss-cn-zhangjiakou",
|
|
13
|
-
accessKeyId: "LTAI4G3QtdEdwkEbihBngAsK",
|
|
14
|
-
accessKeySecret: "OwgdVfc5PeCkIgqIdug660xmiSPchn",
|
|
15
|
-
bucket: "guoranopen-zjk",
|
|
16
|
-
}
|
|
17
|
-
case "lishi":
|
|
18
|
-
return {
|
|
19
|
-
region: "oss-ap-southeast-1",
|
|
20
|
-
accessKeyId: "LTAI5tAusPLDNJJwkvUbqi2T",
|
|
21
|
-
accessKeySecret: "xqPVaunOIbvTe3g9qsXal2IZO6RftK",
|
|
22
|
-
bucket: "askbotopen-ls",
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const ossConfig = {
|
|
7
|
+
const ossConfig={
|
|
28
8
|
region: "oss-cn-zhangjiakou",
|
|
29
9
|
//云账号AccessKey有所有API访问权限,建议遵循阿里云安全最佳实践,创建并使用STS方式来进行API访问
|
|
30
10
|
accessKeyId: "LTAI4G3QtdEdwkEbihBngAsK",
|
|
@@ -33,8 +13,6 @@ const ossConfig = {
|
|
|
33
13
|
bucket: "guoranopen-zjk",
|
|
34
14
|
};
|
|
35
15
|
|
|
36
|
-
|
|
37
|
-
|
|
38
16
|
let IDX = 256, HEX = [], SIZE = 256, BUFFER;
|
|
39
17
|
while (IDX--) HEX[IDX] = (IDX + 256).toString(16).substring(1);
|
|
40
18
|
let mainId = sessionStorage.getItem('_mainId') ? sessionStorage.getItem('_mainId') : "";
|
|
@@ -70,8 +48,8 @@ function pathGenerate(filename) {
|
|
|
70
48
|
}
|
|
71
49
|
|
|
72
50
|
|
|
73
|
-
async function upload(data) {
|
|
74
|
-
let ossClient = new OSS(
|
|
51
|
+
async function upload(ossConfig, data) {
|
|
52
|
+
let ossClient = new OSS(ossConfig);
|
|
75
53
|
// object-key可以自定义为文件名(例如file.txt)或目录(例如abc/test/file.txt)的形式,实现将文件上传至当前Bucket或Bucket下的指定目录。
|
|
76
54
|
let objectKey = pathGenerate(data.name);
|
|
77
55
|
let result = await ossClient.put(objectKey, data);
|
|
@@ -79,8 +57,8 @@ async function upload(data) {
|
|
|
79
57
|
return result;
|
|
80
58
|
}
|
|
81
59
|
|
|
82
|
-
async function multipartUpload(data, callback,extCallback) {
|
|
83
|
-
let ossClient = new OSS(
|
|
60
|
+
async function multipartUpload(ossConfig, data, callback,extCallback) {
|
|
61
|
+
let ossClient = new OSS(ossConfig);
|
|
84
62
|
// object-key可以自定义为文件名(例如file.txt)或目录(例如abc/test/file.txt)的形式,实现将文件上传至当前Bucket或Bucket下的指定目录。
|
|
85
63
|
let objectKey = pathGenerate(data.name);
|
|
86
64
|
let res = await ossClient.multipartUpload(objectKey, data, {
|
|
@@ -95,8 +73,7 @@ async function multipartUpload(data, callback,extCallback) {
|
|
|
95
73
|
return res;
|
|
96
74
|
}
|
|
97
75
|
|
|
98
|
-
function ossFileUrl(path, cname) {
|
|
99
|
-
let ossConfig = getPrivateOssConfig()
|
|
76
|
+
function ossFileUrl(ossConfig, path, cname) {
|
|
100
77
|
if (cname == null) {
|
|
101
78
|
return '//' + ossConfig.bucket + '.' + ossConfig.region + '.aliyuncs.com/' + path;
|
|
102
79
|
} else {
|
|
@@ -104,8 +81,8 @@ function ossFileUrl(path, cname) {
|
|
|
104
81
|
}
|
|
105
82
|
}
|
|
106
83
|
|
|
107
|
-
function uploadImageByBase64(blob) {
|
|
108
|
-
let ossClient = new OSS(
|
|
84
|
+
function uploadImageByBase64(ossConfig,blob) {
|
|
85
|
+
let ossClient = new OSS(ossConfig);
|
|
109
86
|
|
|
110
87
|
// object-key可以自定义为文件名(例如file.txt)或目录(例如abc/test/file.txt)的形 式,实现将文件上传至当前Bucket或Bucket下的指定目录。
|
|
111
88
|
let objectKey = pathGenerate(new Date().getTime());
|
|
@@ -114,4 +91,4 @@ function uploadImageByBase64(blob) {
|
|
|
114
91
|
return result;
|
|
115
92
|
}
|
|
116
93
|
|
|
117
|
-
export {upload, multipartUpload, ossFileUrl,uploadImageByBase64,ossConfig
|
|
94
|
+
export {upload, multipartUpload, ossFileUrl,uploadImageByBase64,ossConfig}
|
|
@@ -16,22 +16,18 @@
|
|
|
16
16
|
<template v-if="msg.content.renderType == 1">
|
|
17
17
|
<p v-html="msg.content.text"></p>
|
|
18
18
|
</template>
|
|
19
|
-
<template v-if="msg.content.renderType == 2">
|
|
20
|
-
<markDownText :chainValues="msg.content.text" :isHistory="isHistory"></markDownText>
|
|
21
|
-
</template>
|
|
22
19
|
<template v-else>{{ msg.content.text }}</template>
|
|
23
20
|
</div>
|
|
24
21
|
<div v-if="msg.content.images && msg.content.images.length != 0" class="answer-kn-image-box">
|
|
25
22
|
<img v-for="(imageItem, imageItemIndex) in msg.content.images"
|
|
26
|
-
style="max-width: 230px;border-radius:
|
|
23
|
+
style="max-width: 230px;border-radius: 10px;margin-bottom: 15px" :src="imageItem.url"
|
|
27
24
|
:key="imageItemIndex" alt @click="lookAttach(imageItem.url, imageItem, $event)" />
|
|
28
25
|
</div>
|
|
29
26
|
</div>
|
|
30
27
|
<template v-if="!isLiBang">
|
|
31
28
|
<div class="ad-list" :class="msg.content.type == 0 ? 'ad-list-recognition' : ''">
|
|
32
29
|
<template v-if="msg.content.type == 1">
|
|
33
|
-
<div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex"
|
|
34
|
-
:style="{ paddingBottom: itemIndex === msg.content.list.length - 1 ? 0 : '10px' }" class="ad-list-cell">
|
|
30
|
+
<div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell">
|
|
35
31
|
<div class="alc-title">
|
|
36
32
|
<div class="alc-box">
|
|
37
33
|
<div class="alc-source-left">
|
|
@@ -178,10 +174,9 @@
|
|
|
178
174
|
/* eslint-disable */
|
|
179
175
|
import previewPdf from "./previewPdf";
|
|
180
176
|
import { isMobile } from "../assets/js/common";
|
|
181
|
-
import markDownText from "./markDownText.vue";
|
|
182
177
|
export default {
|
|
183
178
|
name: "answerDocknowledge",
|
|
184
|
-
components: { previewPdf
|
|
179
|
+
components: { previewPdf },
|
|
185
180
|
data () {
|
|
186
181
|
return {
|
|
187
182
|
isPC: true,
|
|
@@ -268,14 +263,14 @@ export default {
|
|
|
268
263
|
allKnowledgeList: [],
|
|
269
264
|
loadMoreFlag: false,
|
|
270
265
|
title: '',
|
|
271
|
-
folderName:
|
|
272
|
-
folderUrl:
|
|
266
|
+
folderName:'',
|
|
267
|
+
folderUrl:'',
|
|
273
268
|
previewKnowledgeId: "",
|
|
274
269
|
previewKnowledge: {},
|
|
275
270
|
previewOssPath: ""
|
|
276
271
|
}
|
|
277
272
|
},
|
|
278
|
-
props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang"
|
|
273
|
+
props: ['msg', 'isAskLightning', 'isMessageRecord', "isApp", "isHasChat", "activeKnowledgeId", "isLiBang"],
|
|
279
274
|
beforeMounted () {
|
|
280
275
|
},
|
|
281
276
|
watch: {
|
|
@@ -337,78 +332,78 @@ export default {
|
|
|
337
332
|
//预览图片
|
|
338
333
|
lookAttach (url, item, event) {
|
|
339
334
|
// console.log(item.knowledgeId);
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
335
|
+
// this.$http.get("/knowledge-api/internal/knowledgeBaseStructure/" + "642ffbccde420e2772f7787b")
|
|
336
|
+
// debugger
|
|
337
|
+
event.preventDefault();
|
|
338
|
+
if (this.isAskLightning == 1 && !this.isApp){
|
|
339
|
+
window.parent.postMessage({
|
|
340
|
+
data: "bot_preview",
|
|
341
|
+
item: JSON.stringify(item),
|
|
342
|
+
url: url
|
|
343
|
+
},"*");
|
|
344
|
+
} else {
|
|
345
|
+
// if (isMobile()) {
|
|
346
|
+
// this.$refs.previewPdf.drawer = true;
|
|
347
|
+
// this.$refs.previewPdf.previewShowPopup = false;
|
|
348
|
+
// } else {
|
|
349
|
+
// this.$refs.previewPdf.drawer = false;
|
|
350
|
+
// }
|
|
351
|
+
this.title = item.from || item.name
|
|
352
|
+
this.folderName = item.folderName
|
|
358
353
|
this.folderUrl = item.folderUrl
|
|
359
354
|
this.previewKnowledge = item;
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
355
|
+
this.previewKnowledgeId = item.knowledgeId
|
|
356
|
+
this.$refs.previewPdf.previewShowPopup = false;
|
|
357
|
+
this.$refs.previewPdf.drawer = false;
|
|
358
|
+
this.previewOssPath = url;
|
|
359
|
+
let index = url.lastIndexOf('?')
|
|
360
|
+
let type = ''
|
|
361
|
+
let httpUrl = '/knowledge-api/knowledge/getTemporaryCertificate'
|
|
362
|
+
if (index !== -1) {
|
|
363
|
+
url = url.substring(0, index)
|
|
364
|
+
type = this.fileType(url)
|
|
365
|
+
} else {
|
|
366
|
+
type = this.fileType(url)
|
|
367
|
+
}
|
|
368
|
+
if (type === '' || type === 'OTHER') {
|
|
369
|
+
httpUrl = httpUrl += '?needEncrypt=true'
|
|
370
|
+
} else {
|
|
371
|
+
httpUrl = httpUrl += '?needEncrypt=false'
|
|
372
|
+
}
|
|
373
|
+
this.$http.post(httpUrl, {
|
|
374
|
+
"fileInOssPath":url
|
|
375
|
+
}).then(res =>{
|
|
376
|
+
if(res.data.code == '0') {
|
|
377
|
+
this.previewHref = res.data.data;
|
|
378
|
+
this.sourceFileType = url.substring(url.lastIndexOf('.'))
|
|
379
|
+
let isOhmPc = sessionStorage.getItem('isOhmPc')
|
|
380
|
+
if (isMobile() || isOhmPc == 'true'){
|
|
381
|
+
this.$refs.previewPdf.drawer = true;
|
|
382
|
+
this.$refs.previewPdf.previewShowPopup = true;
|
|
370
383
|
} else {
|
|
371
|
-
|
|
384
|
+
this.$refs.previewPdf.previewShowPopup = false;
|
|
385
|
+
this.$refs.previewPdf.drawer = true;
|
|
372
386
|
}
|
|
373
|
-
|
|
374
|
-
|
|
387
|
+
//聊一聊按钮的选中状态
|
|
388
|
+
if (this.activeKnowledgeId == item.knowledgeId){
|
|
389
|
+
this.$refs.previewPdf.previewKnowledgeId = this.activeKnowledgeId
|
|
375
390
|
} else {
|
|
376
|
-
|
|
391
|
+
this.$refs.previewPdf.previewKnowledgeId = ""
|
|
392
|
+
}
|
|
393
|
+
this.$refs.previewPdf.fileType = type
|
|
394
|
+
this.$refs.previewPdf.tagIds = item.tagIds
|
|
395
|
+
this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false ;
|
|
396
|
+
let index = url.indexOf("?");
|
|
397
|
+
let newFileInOssPath = url;
|
|
398
|
+
if (index !== -1){
|
|
399
|
+
newFileInOssPath = url.substring(0, url.indexOf("?"))
|
|
400
|
+
}
|
|
401
|
+
let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
|
|
402
|
+
if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt'|| fileName === '.html'){
|
|
403
|
+
this.$refs.previewPdf.fileName = fileName;
|
|
404
|
+
} else {
|
|
405
|
+
this.$refs.previewPdf.fileName = '';
|
|
377
406
|
}
|
|
378
|
-
this.$http.post(httpUrl, {
|
|
379
|
-
"fileInOssPath": url
|
|
380
|
-
}).then(res => {
|
|
381
|
-
if (res.data.code == '0') {
|
|
382
|
-
this.previewHref = res.data.data;
|
|
383
|
-
this.sourceFileType = url.substring(url.lastIndexOf('.'))
|
|
384
|
-
let isOhmPc = sessionStorage.getItem('isOhmPc')
|
|
385
|
-
if (isMobile() || isOhmPc == 'true') {
|
|
386
|
-
this.$refs.previewPdf.drawer = true;
|
|
387
|
-
this.$refs.previewPdf.previewShowPopup = true;
|
|
388
|
-
} else {
|
|
389
|
-
this.$refs.previewPdf.previewShowPopup = false;
|
|
390
|
-
this.$refs.previewPdf.drawer = true;
|
|
391
|
-
}
|
|
392
|
-
//聊一聊按钮的选中状态
|
|
393
|
-
if (this.activeKnowledgeId == item.knowledgeId) {
|
|
394
|
-
this.$refs.previewPdf.previewKnowledgeId = this.activeKnowledgeId
|
|
395
|
-
} else {
|
|
396
|
-
this.$refs.previewPdf.previewKnowledgeId = ""
|
|
397
|
-
}
|
|
398
|
-
this.$refs.previewPdf.fileType = type
|
|
399
|
-
this.$refs.previewPdf.tagIds = item.tagIds
|
|
400
|
-
this.$refs.previewPdf.isMessageRecord = this.isMessageRecord ? true : false;
|
|
401
|
-
let index = url.indexOf("?");
|
|
402
|
-
let newFileInOssPath = url;
|
|
403
|
-
if (index !== -1) {
|
|
404
|
-
newFileInOssPath = url.substring(0, url.indexOf("?"))
|
|
405
|
-
}
|
|
406
|
-
let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
|
|
407
|
-
if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt' || fileName === '.html') {
|
|
408
|
-
this.$refs.previewPdf.fileName = fileName;
|
|
409
|
-
} else {
|
|
410
|
-
this.$refs.previewPdf.fileName = '';
|
|
411
|
-
}
|
|
412
407
|
if (item.tagIds && item.tagIds.length != 0) {
|
|
413
408
|
this.$refs.previewPdf.loading = false
|
|
414
409
|
return
|
|
@@ -436,8 +431,6 @@ export default {
|
|
|
436
431
|
return 'VIDEO'
|
|
437
432
|
} else if (fileType === '.html') {
|
|
438
433
|
return 'HTML'
|
|
439
|
-
} else if (fileType === '.png' || fileType === '.jpg' || fileType === '.jpeg') {
|
|
440
|
-
return 'IMAGE'
|
|
441
434
|
} else {
|
|
442
435
|
return 'OTHER'
|
|
443
436
|
}
|
|
@@ -498,13 +491,13 @@ export default {
|
|
|
498
491
|
recommendQues (item, knowledgeId) {
|
|
499
492
|
this.$emit('recommendQues', item, knowledgeId)
|
|
500
493
|
},
|
|
501
|
-
clickFloder
|
|
494
|
+
clickFloder(item) {
|
|
502
495
|
this.$emit('clickFloder', item)
|
|
503
496
|
},
|
|
504
|
-
previewClickFloder
|
|
497
|
+
previewClickFloder() {
|
|
505
498
|
let item = null
|
|
506
499
|
this.msg.content.list.forEach(element => {
|
|
507
|
-
if
|
|
500
|
+
if(element.knowledgeId == this.previewKnowledgeId) {
|
|
508
501
|
item = element
|
|
509
502
|
}
|
|
510
503
|
});
|
|
@@ -648,25 +641,24 @@ export default {
|
|
|
648
641
|
|
|
649
642
|
.alc-box-introduction-previewImage {
|
|
650
643
|
width: 100%;
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
}
|
|
644
|
+
display: block;
|
|
645
|
+
overflow: hidden;
|
|
646
|
+
text-overflow: ellipsis;
|
|
647
|
+
display: -webkit-box;
|
|
648
|
+
-webkit-line-clamp:3;
|
|
649
|
+
-webkit-box-orient:vertical;
|
|
650
|
+
margin-top: 10px;
|
|
651
|
+
color: #616161;
|
|
652
|
+
// font-size: 12px;
|
|
653
|
+
line-height: 24px;
|
|
654
|
+
text-align: left;
|
|
655
|
+
img {
|
|
656
|
+
max-width: 300px;
|
|
657
|
+
width: 100%;
|
|
658
|
+
max-height: 150px;
|
|
659
|
+
margin: 10px;
|
|
660
|
+
cursor: pointer;
|
|
661
|
+
}
|
|
670
662
|
}
|
|
671
663
|
|
|
672
664
|
.alc-updateTime {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<!-- 消息记录容器 -->
|
|
2
2
|
<template>
|
|
3
3
|
<div id="conversation">
|
|
4
|
+
<qw-feedback :msg="qwFeedbackObj"></qw-feedback>
|
|
4
5
|
<div v-for="(item, index) in processAction" :key="index">
|
|
5
6
|
<association-intention :msg="item" :msgType="item.type" :isOpen="isOpen"></association-intention>
|
|
6
7
|
</div>
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
</div> -->
|
|
38
39
|
|
|
39
40
|
<!-- <text-message :text="text" @submitClick="submitClick"></text-message> -->
|
|
40
|
-
<answer-docknowledge :isAskLightning="2" :
|
|
41
|
+
<answer-docknowledge :isAskLightning="2" :msg="answerDocknowledge" :isLiBang="false"></answer-docknowledge>
|
|
41
42
|
<welcomeSuggest :msg="welcomeSuggest"></welcomeSuggest>
|
|
42
43
|
<!-- <voice-component @closeVoice="closeVoice">
|
|
43
44
|
<div slot="voiceTip">
|
|
@@ -121,6 +122,7 @@ import AnswerDocknowledge from "./AnswerDocknowledge.vue";
|
|
|
121
122
|
import WelcomeKnowledgeFile from "./welcomeKnowledgeFile";
|
|
122
123
|
import WelcomeLlmCard from "./welcomeLlmCard";
|
|
123
124
|
import welcomeSuggest from "./welcomeSuggest"
|
|
125
|
+
import QwFeedback from './QwFeedback';
|
|
124
126
|
export default {
|
|
125
127
|
name: 'ConversationContainer',
|
|
126
128
|
components: {
|
|
@@ -150,7 +152,8 @@ export default {
|
|
|
150
152
|
// ChatContent,
|
|
151
153
|
AnswerDocknowledge,
|
|
152
154
|
MyEditor,
|
|
153
|
-
welcomeSuggest
|
|
155
|
+
welcomeSuggest,
|
|
156
|
+
QwFeedback
|
|
154
157
|
},
|
|
155
158
|
props: {
|
|
156
159
|
messages: Array
|
|
@@ -240,7 +243,7 @@ export default {
|
|
|
240
243
|
"content": {
|
|
241
244
|
"images": [{ url: 'https://static.guoranbot.com/images/knowledge/e0f6898c6b0d47fa98e8f71ceab1bde8/安全标志--禁止标志.png' }],
|
|
242
245
|
"actionType": "answer_doc_knowledge",
|
|
243
|
-
"text": "
|
|
246
|
+
"text": "中国的省份名称有湖北省、广西壮族自治区等。",
|
|
244
247
|
"list": [
|
|
245
248
|
{
|
|
246
249
|
"owner": null,
|
|
@@ -319,9 +322,8 @@ export default {
|
|
|
319
322
|
"previewImage": "https://askbot-pdf-all.oss-cn-zhangjiakou.aliyuncs.com/31623ccfe9dd4957bbd59c5823878bbe/2023/12/27/03/39/08/658b9c477cf604285f7cb81d/pdf-image-1913302477976388839.png"
|
|
320
323
|
}
|
|
321
324
|
],
|
|
322
|
-
"renderType":
|
|
323
|
-
"type": 1
|
|
324
|
-
"isHistory": true
|
|
325
|
+
"renderType": 0,
|
|
326
|
+
"type": 1
|
|
325
327
|
},
|
|
326
328
|
"type": "answer_doc_knowledge"
|
|
327
329
|
},
|
|
@@ -10661,6 +10663,15 @@ export default {
|
|
|
10661
10663
|
}
|
|
10662
10664
|
},
|
|
10663
10665
|
answerRadios: { "content": { "options": [{ "scope": "KNOWLEDGE", "name": "本文提供了什么内容?", "value": "64915d6e098ec248701da267" }, { "scope": "KNOWLEDGE", "name": "什么是街舞穿搭指南?", "value": "64915d6e098ec248701da267" }, { "scope": "KNOWLEDGE", "name": "为什么街舞爱好者需要关注本文?", "value": "64915d6e098ec248701da267" }], "description": "了解更多", "isKnowledgeSummary": true }, "id": "knowledgeRecdNodeId", "type": "answer_radio", "sessionId": 1687251699065, "keyId": "139480f2-5af1-44fd-a7bd-a73dd7b566b7_________", "isKnowledgeSummary": true },
|
|
10666
|
+
qwFeedbackObj: {
|
|
10667
|
+
"content": {
|
|
10668
|
+
"guideText": "以下问题我已经学会了,感谢您提供的金点子,帮助我更好的成长:",
|
|
10669
|
+
"questionList": [
|
|
10670
|
+
"打印机卡纸怎么办", "打印机打印模糊", "SAP系统输入编码系统显示报错", "合同已经上传影像归档了,但是在CE中还是关联不到合同", "如何查询社保缴费基数", "如何查询公积金缴费基数"
|
|
10671
|
+
]
|
|
10672
|
+
},
|
|
10673
|
+
"type": "unidentified_feedback"
|
|
10674
|
+
},
|
|
10664
10675
|
answerRadiosPri: {
|
|
10665
10676
|
"refAttrId": null,
|
|
10666
10677
|
"createTime": null,
|
|
@@ -42,6 +42,14 @@ export default {
|
|
|
42
42
|
props: ["value", "placeholder", "havToolbar"],
|
|
43
43
|
data () {
|
|
44
44
|
return {
|
|
45
|
+
ossConfig: {
|
|
46
|
+
region: "oss-cn-zhangjiakou",
|
|
47
|
+
//云账号AccessKey有所有API访问权限,建议遵循阿里云安全最佳实践,创建并使用STS方式来进行API访问
|
|
48
|
+
accessKeyId: "LTAI4G3QtdEdwkEbihBngAsK",
|
|
49
|
+
accessKeySecret: "OwgdVfc5PeCkIgqIdug660xmiSPchn",
|
|
50
|
+
// stsToken: '<Your securityToken(STS)>',
|
|
51
|
+
bucket: "guoranopen-zjk",
|
|
52
|
+
},
|
|
45
53
|
ischecked: false,
|
|
46
54
|
text: ''
|
|
47
55
|
}
|
|
@@ -151,12 +159,13 @@ export default {
|
|
|
151
159
|
url: '',
|
|
152
160
|
}
|
|
153
161
|
let res = multipartUpload(
|
|
162
|
+
this.ossConfig,
|
|
154
163
|
file,
|
|
155
164
|
null,
|
|
156
165
|
imgInfo
|
|
157
166
|
);
|
|
158
167
|
res.then(resp => {
|
|
159
|
-
imgInfo.url = ossFileUrl(resp.name)
|
|
168
|
+
imgInfo.url = ossFileUrl(this.ossConfig, resp.name)
|
|
160
169
|
resolve({
|
|
161
170
|
name: resp.name,
|
|
162
171
|
default: imgInfo.url
|