askbot-dragon 1.7.29-beta → 1.7.34-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/AiGuide.vue +1 -1
- package/src/components/AnswerDocknowledge.vue +257 -245
- package/src/components/ConversationContainer.vue +17 -6
- package/src/components/MyEditor.vue +11 -2
- package/src/components/QwFeedback.vue +302 -0
- package/src/components/actionSatisfaction.vue +2 -2
- package/src/components/answerRadio.vue +2 -2
- package/src/components/askVideo.vue +2 -2
- package/src/components/assetDetails.vue +1 -1
- package/src/components/assetMessage.vue +12 -10
- package/src/components/fielListView.vue +1 -1
- package/src/components/formTemplate.vue +14 -4
- package/src/components/intelligentSummary.vue +12 -14
- package/src/components/myPopup.vue +10 -10
- package/src/components/pdfPosition.vue +58 -66
- package/src/components/popup.vue +7 -7
- package/src/components/previewPdf.vue +21 -16
- package/src/components/receiverMessagePlatform.vue +19 -20
- package/src/components/senderMessagePlatform.vue +10 -15
- package/src/components/tree.vue +2 -2
- package/src/components/utils/AliyunIssUtil.js +12 -33
- package/src/components/utils/ckeditor.js +48 -59
- package/src/components/welcomeKnowledgeFile.vue +1 -1
- package/src/components/welcomeSuggest.vue +1 -1
- 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 -60
- package/src/locales/en.json +0 -60
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "askbot-dragon",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.34-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}
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
>
|
|
192
192
|
<span @click="changeIntellectGuide" class="ig-change-list-btn">
|
|
193
193
|
<svg t="1720148246364" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="136175" width="16" height="16"><path d="M225.6 540.8C240 686.4 363.2 800 512 800c76.8 0 150.4-30.4 203.2-84.8 12.8-12.8 32-12.8 44.8 0s12.8 32 0 44.8c-64 65.6-153.6 104-248 104-184 0-336-142.4-350.4-323.2l-43.2 41.6c-12.8 12.8-33.6 11.2-44.8 0s-11.2-33.6 0-44.8l99.2-96c12.8-12.8 33.6-11.2 44.8 0l92.8 96c12.8 12.8 11.2 33.6-1.6 44.8-12.8 12.8-33.6 11.2-44.8-1.6l-38.4-40zM800 497.6C792 345.6 665.6 224 512 224c-76.8 0-148.8 30.4-203.2 83.2-12.8 12.8-33.6 12.8-44.8 0-12.8-12.8-12.8-33.6 0-44.8 65.6-64 153.6-102.4 248-102.4 192 0 347.2 153.6 352 342.4l41.6-40c12.8-12.8 33.6-11.2 44.8 1.6 12.8 12.8 11.2 33.6-1.6 44.8l-94.4 89.6c-12.8 11.2-32 11.2-44.8 0l-97.6-96c-12.8-12.8-12.8-32 0-44.8 12.8-12.8 32-12.8 44.8 0l43.2 40z" p-id="136176" fill="#366aff"></path></svg>
|
|
194
|
-
|
|
194
|
+
换一批</span
|
|
195
195
|
>
|
|
196
196
|
</div>
|
|
197
197
|
</div>
|