askbot-dragon 1.7.29-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/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
|
@@ -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,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
p-id="74841"
|
|
18
18
|
/>
|
|
19
19
|
</svg>
|
|
20
|
-
|
|
20
|
+
上传图片或附件
|
|
21
21
|
</button>
|
|
22
22
|
</div>
|
|
23
23
|
<div
|
|
@@ -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
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="qw-feedback">
|
|
3
|
+
<div class="qw-guide-text" v-if="msg.content.guideText">
|
|
4
|
+
<!-- 不要替换成图片地址或者字体 -->
|
|
5
|
+
<svg
|
|
6
|
+
t="1730450955692"
|
|
7
|
+
class="icon"
|
|
8
|
+
viewBox="0 0 1024 1024"
|
|
9
|
+
version="1.1"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
p-id="8682"
|
|
12
|
+
width="22"
|
|
13
|
+
height="22"
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M565.096296 289.185185s-0.948148 0 0 0c-110.933333-20.859259-208.592593 40.77037-237.985185 148.859259-14.222222 53.096296-24.651852 101.451852 44.562963 221.866667 14.222222 25.6 11.377778 70.162963 8.533333 95.762963-1.896296 14.222222 64.474074 36.02963 89.125926 42.666667l95.762963-509.155556z"
|
|
17
|
+
fill="#FDB813"
|
|
18
|
+
p-id="8683"
|
|
19
|
+
></path>
|
|
20
|
+
<path
|
|
21
|
+
d="M732.918519 513.896296c11.377778-111.881481-56.888889-203.851852-166.874075-224.711111h-0.948148L469.333333 798.340741c25.6 2.844444 94.814815 6.637037 98.607408-7.585185 6.637037-25.6 20.859259-67.318519 42.666666-86.281482C719.644444 618.192593 727.22963 568.888889 732.918519 513.896296z"
|
|
22
|
+
fill="#FD9B13"
|
|
23
|
+
p-id="8684"
|
|
24
|
+
></path>
|
|
25
|
+
<path
|
|
26
|
+
d="M467.437037 806.874074c-7.585185-0.948148-12.325926-7.585185-14.222222-14.222222l-38.874074-256c-0.948148-5.688889 0.948148-11.377778 4.74074-15.170371 3.792593-3.792593 9.481481-5.688889 15.170371-4.74074l167.822222 31.288889c5.688889 0.948148 10.42963 4.740741 12.325926 9.481481 1.896296 4.740741 1.896296 11.377778-0.948148 16.118519L486.4 798.340741c-3.792593 6.637037-11.377778 10.42963-18.962963 8.533333z m-14.222222-251.259259l27.496296 182.992592L572.681481 578.37037l-119.466666-22.755555z"
|
|
27
|
+
fill="#F12A3F"
|
|
28
|
+
p-id="8685"
|
|
29
|
+
></path>
|
|
30
|
+
<path
|
|
31
|
+
d="M375.466667 709.214815l-25.6 137.481481c0 2.844444 1.896296 5.688889 7.585185 10.42963l65.422222 54.992593c5.688889 4.740741 15.17037 8.533333 23.703704 10.429629l36.029629-193.422222-107.14074-19.911111z"
|
|
32
|
+
fill="#2D4375"
|
|
33
|
+
p-id="8686"
|
|
34
|
+
></path>
|
|
35
|
+
<path
|
|
36
|
+
d="M482.607407 729.125926l-36.029629 193.422222c9.481481 1.896296 18.014815 1.896296 25.6-0.948148l80.592592-27.496296c6.637037-1.896296 10.42963-4.740741 11.377778-6.637037L589.748148 749.037037l-107.140741-19.911111z"
|
|
37
|
+
fill="#1E2D4F"
|
|
38
|
+
p-id="8687"
|
|
39
|
+
></path>
|
|
40
|
+
<path
|
|
41
|
+
d="M612.503704 217.125926c-3.792593 18.014815-20.859259 29.392593-38.874074 26.548148-18.014815-3.792593-30.340741-20.859259-26.548149-38.874074l18.962963-100.503704c3.792593-18.014815 20.859259-29.392593 38.874075-26.548148 18.014815 3.792593 30.340741 20.859259 26.548148 38.874074l-18.962963 100.503704z"
|
|
42
|
+
fill="#FDB813"
|
|
43
|
+
p-id="8688"
|
|
44
|
+
></path>
|
|
45
|
+
<path
|
|
46
|
+
d="M382.103704 228.503704c10.42963 15.17037 6.637037 36.02963-8.533334 46.459259-15.17037 10.42963-36.02963 6.637037-46.459259-8.533333l-57.837037-84.385186c-10.42963-15.17037-6.637037-36.02963 8.533333-46.459259 15.17037-10.42963 36.02963-6.637037 46.45926 8.533334l57.837037 84.385185zM757.57037 298.666667c-15.17037 10.42963-18.962963 31.288889-8.533333 46.459259 10.42963 15.17037 31.288889 18.962963 46.459259 8.533333l84.385185-57.837037c15.17037-10.42963 18.962963-31.288889 8.533334-46.459259-10.42963-15.17037-31.288889-18.962963-46.459259-8.533333l-84.385186 57.837037z"
|
|
47
|
+
fill="#FDB813"
|
|
48
|
+
p-id="8689"
|
|
49
|
+
></path>
|
|
50
|
+
<path
|
|
51
|
+
d="M252.207407 361.244444c18.014815 3.792593 30.340741 20.859259 26.548149 38.874075-3.792593 18.014815-20.859259 29.392593-38.874075 26.548148l-100.503703-18.962963c-18.014815-3.792593-30.340741-20.859259-26.548148-38.874074 3.792593-18.014815 20.859259-29.392593 38.874074-26.548149l100.503703 18.962963zM931.081481 488.296296c18.014815 3.792593 30.340741 20.859259 26.548149 38.874074-3.792593 18.014815-20.859259 29.392593-38.874074 26.548149l-100.503704-18.962963c-18.014815-3.792593-30.340741-20.859259-26.548148-38.874075 3.792593-18.014815 20.859259-29.392593 38.874074-26.548148l100.503703 18.962963z"
|
|
52
|
+
fill="#FDB813"
|
|
53
|
+
p-id="8690"
|
|
54
|
+
></path>
|
|
55
|
+
<path
|
|
56
|
+
d="M593.540741 807.822222c1.896296-7.585185-3.792593-15.17037-11.377778-16.118518l-107.140741-19.911111-4.740741 27.496296 107.140741 19.911111c6.637037 0.948148 14.222222-3.792593 16.118519-11.377778z"
|
|
57
|
+
fill="#CEEFF6"
|
|
58
|
+
p-id="8691"
|
|
59
|
+
></path>
|
|
60
|
+
<path
|
|
61
|
+
d="M366.933333 750.933333c-7.585185-1.896296-15.17037 3.792593-16.118518 11.377778-1.896296 7.585185 3.792593 15.17037 11.377778 16.118519l107.14074 19.911111 4.740741-27.496297-107.140741-19.911111zM356.503704 808.77037c-7.585185-1.896296-15.17037 3.792593-16.118519 11.377778-1.896296 7.585185 3.792593 15.17037 11.377778 16.118519l107.140741 19.911111 4.74074-27.496297-107.14074-19.911111z"
|
|
62
|
+
fill="#FFFFFF"
|
|
63
|
+
p-id="8692"
|
|
64
|
+
></path>
|
|
65
|
+
<path
|
|
66
|
+
d="M570.785185 848.592593l-107.140741-19.911112-4.74074 27.496297 107.14074 19.911111c7.585185 1.896296 15.17037-3.792593 16.118519-11.377778 1.896296-7.585185-2.844444-15.17037-11.377778-16.118518z"
|
|
67
|
+
fill="#CEEFF6"
|
|
68
|
+
p-id="8693"
|
|
69
|
+
></path>
|
|
70
|
+
</svg>
|
|
71
|
+
<!-- 不要替换成图片地址或者字体 -->
|
|
72
|
+
<p class="radio-description" v-html="msg.content.guideText"></p>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<div class="options-list">
|
|
76
|
+
<div
|
|
77
|
+
v-for="(option, index) in showOptions"
|
|
78
|
+
class="options-item"
|
|
79
|
+
:class="
|
|
80
|
+
index !== msg.content.questionList.length - 1
|
|
81
|
+
? 'recommend-item'
|
|
82
|
+
: 'last-item'
|
|
83
|
+
"
|
|
84
|
+
:key="'qwfeedback_' + index"
|
|
85
|
+
@click="handleWelcome(option)"
|
|
86
|
+
>
|
|
87
|
+
<span> {{ getFilteredName(option) }}</span>
|
|
88
|
+
<i class="arsenal_icon arsenalangle-right-solid"></i>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
<div v-if="showPage" class="switch-page">
|
|
92
|
+
<!-- <span @click="changeActivePage" class="switch-page-btn"
|
|
93
|
+
>换一批</span
|
|
94
|
+
> -->
|
|
95
|
+
<span @click="showMore" class="switch-page-btn">查看更多</span>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</template>
|
|
99
|
+
|
|
100
|
+
<script>
|
|
101
|
+
export default {
|
|
102
|
+
name: "answerRadio",
|
|
103
|
+
data() {
|
|
104
|
+
return {
|
|
105
|
+
isMobile: false,
|
|
106
|
+
formatOptions: [],
|
|
107
|
+
activeIndex: 0,
|
|
108
|
+
pageSize: 5,
|
|
109
|
+
showPage: false,
|
|
110
|
+
showOptions: [],
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
props: ["msg"],
|
|
114
|
+
mounted() {
|
|
115
|
+
console.log(this.msg, "msg");
|
|
116
|
+
// 关键词推荐 前端分页
|
|
117
|
+
this.msg.content.questionList = this.msg.content.questionList.slice(0, 20);
|
|
118
|
+
if (this.msg.content.questionList.length > this.pageSize) {
|
|
119
|
+
this.formatOptions = this.chunkArray(
|
|
120
|
+
this.msg.content.questionList,
|
|
121
|
+
this.pageSize
|
|
122
|
+
);
|
|
123
|
+
this.activeIndex = 0;
|
|
124
|
+
this.showPage = true;
|
|
125
|
+
} else {
|
|
126
|
+
this.formatOptions = [this.msg.content.questionList];
|
|
127
|
+
this.activeIndex = 0;
|
|
128
|
+
}
|
|
129
|
+
this.showOptions = this.formatOptions[0];
|
|
130
|
+
this.judgeIsMobile();
|
|
131
|
+
},
|
|
132
|
+
methods: {
|
|
133
|
+
getFilteredName(name) {
|
|
134
|
+
if (typeof name === "string") {
|
|
135
|
+
return name.replace(/<\/?p>/g, "");
|
|
136
|
+
} else {
|
|
137
|
+
return name;
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
showMore() {
|
|
141
|
+
if (this.activeIndex == this.formatOptions.length - 2) {
|
|
142
|
+
this.activeIndex++;
|
|
143
|
+
this.showPage = false;
|
|
144
|
+
} else {
|
|
145
|
+
this.activeIndex++;
|
|
146
|
+
}
|
|
147
|
+
this.showOptions = [
|
|
148
|
+
...this.showOptions.concat(
|
|
149
|
+
this.formatOptions[this.activeIndex]
|
|
150
|
+
),
|
|
151
|
+
];
|
|
152
|
+
},
|
|
153
|
+
changeActivePage() {
|
|
154
|
+
if (this.activeIndex >= this.formatOptions.length - 1) {
|
|
155
|
+
this.activeIndex = 0;
|
|
156
|
+
} else {
|
|
157
|
+
this.activeIndex++;
|
|
158
|
+
}
|
|
159
|
+
this.showOptions = this.formatOptions[this.activeIndex];
|
|
160
|
+
},
|
|
161
|
+
chunkArray(array, size) {
|
|
162
|
+
let chunks = [];
|
|
163
|
+
for (let i = 0; i < array.length; i += size) {
|
|
164
|
+
let chunk = array.slice(i, i + size);
|
|
165
|
+
chunks.push(chunk);
|
|
166
|
+
}
|
|
167
|
+
return chunks;
|
|
168
|
+
},
|
|
169
|
+
judgeIsMobile() {
|
|
170
|
+
let flag = navigator.userAgent.match(
|
|
171
|
+
/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
|
|
172
|
+
);
|
|
173
|
+
if (flag) {
|
|
174
|
+
this.isMobile = true;
|
|
175
|
+
} else {
|
|
176
|
+
this.isMobile = false;
|
|
177
|
+
}
|
|
178
|
+
console.log(this.isMobile, "this.isMobile");
|
|
179
|
+
},
|
|
180
|
+
handleWelcome (item) {
|
|
181
|
+
console.log(item, 'item');
|
|
182
|
+
|
|
183
|
+
this.$emit('handleWelcome', item)
|
|
184
|
+
},
|
|
185
|
+
radioClick(msg, option, index) {
|
|
186
|
+
let value = option.answerId
|
|
187
|
+
? msg.id +
|
|
188
|
+
"_" +
|
|
189
|
+
index +
|
|
190
|
+
"_" +
|
|
191
|
+
option.value +
|
|
192
|
+
"_" +
|
|
193
|
+
option.name +
|
|
194
|
+
"_" +
|
|
195
|
+
option.answerId
|
|
196
|
+
: msg.id + "_" + index + "_" + option.value + "_" + option.name;
|
|
197
|
+
this.$emit(
|
|
198
|
+
"onRadioClick",
|
|
199
|
+
value,
|
|
200
|
+
option.name,
|
|
201
|
+
msg.apiKey,
|
|
202
|
+
msg.actionCategory,
|
|
203
|
+
msg.msgId ? msg.msgId : "",
|
|
204
|
+
option.apiKey
|
|
205
|
+
);
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
};
|
|
209
|
+
</script>
|
|
210
|
+
|
|
211
|
+
<style scoped lang="less">
|
|
212
|
+
.qw-feedback {
|
|
213
|
+
background-color: white;
|
|
214
|
+
padding-bottom: 16px;
|
|
215
|
+
.qw-guide-text {
|
|
216
|
+
display: flex;
|
|
217
|
+
justify-content: flex-start;
|
|
218
|
+
align-items: center;
|
|
219
|
+
background-color: #d9e3fa;
|
|
220
|
+
padding: 16px;
|
|
221
|
+
.radio-description {
|
|
222
|
+
margin-left: 6px;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
.switch-page {
|
|
226
|
+
margin-top: 10px;
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-direction: column;
|
|
229
|
+
align-items: center;
|
|
230
|
+
.switch-page-btn {
|
|
231
|
+
width: 80px;
|
|
232
|
+
height: 24px;
|
|
233
|
+
border-radius: 15px;
|
|
234
|
+
border: solid 1px #366aff;
|
|
235
|
+
color: #366aff;
|
|
236
|
+
line-height: 24px;
|
|
237
|
+
text-align: center;
|
|
238
|
+
cursor: pointer;
|
|
239
|
+
font-size: 12px;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
.radio-description {
|
|
243
|
+
word-wrap: break-word;
|
|
244
|
+
word-break: break-all;
|
|
245
|
+
overflow: hidden;
|
|
246
|
+
/*padding: 8px 10px 10px 0;*/
|
|
247
|
+
height: auto;
|
|
248
|
+
/* border-bottom: 1px solid #EEEEEE;*/
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.bottom-link {
|
|
252
|
+
height: 1px;
|
|
253
|
+
background-color: #eeeeee;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.options-list {
|
|
257
|
+
padding-top: 4px;
|
|
258
|
+
/* padding-top: 10px;*/
|
|
259
|
+
padding-left: 16px;
|
|
260
|
+
padding-right: 16px;
|
|
261
|
+
|
|
262
|
+
.options-item {
|
|
263
|
+
// height: 25px;
|
|
264
|
+
line-height: 25px;
|
|
265
|
+
background-color: #ffffff;
|
|
266
|
+
color: #366aff;
|
|
267
|
+
cursor: pointer;
|
|
268
|
+
display: flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
justify-content: space-between;
|
|
271
|
+
|
|
272
|
+
i {
|
|
273
|
+
padding-left: 10px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.options-item-text {
|
|
277
|
+
text-overflow: ellipsis;
|
|
278
|
+
display: -webkit-box; //使用了flex,需要加
|
|
279
|
+
overflow: hidden; //超出隐藏
|
|
280
|
+
word-break: break-all; //纯英文、数字、中文
|
|
281
|
+
text-overflow: ellipsis; //省略号
|
|
282
|
+
-webkit-box-orient: vertical; //垂直
|
|
283
|
+
-webkit-line-clamp: 1; //显示一行
|
|
284
|
+
white-space: pre-line; //
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.recommend-item {
|
|
289
|
+
padding: 8px 0;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.last-item {
|
|
293
|
+
padding-top: 8px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.end {
|
|
297
|
+
border-bottom-left-radius: 25px !important;
|
|
298
|
+
border-bottom-right-radius: 25px !important;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
</style>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
v-if="msg.content.description && !msg.content.isKnowledgeSummary"></p>
|
|
5
5
|
<div class="bottom-link" v-if="msg.content.description && !msg.content.isKnowledgeSummary"></div>
|
|
6
6
|
<div :class="['options-list', msg.content.isKnowledgeSummary ? 'isKnowledgeSummary' : '']">
|
|
7
|
-
<div v-if="msg.content.isKnowledgeSummary" class="tips">
|
|
7
|
+
<div v-if="msg.content.isKnowledgeSummary" class="tips">AI为您推荐了以下内容</div>
|
|
8
8
|
<div v-for="(option, index) in showOptions" class="options-item"
|
|
9
9
|
:class="index !== msg.content.options.length - 1 ? 'recommend-item' : 'last-item'" :key="msg.nodeId + '_' + index"
|
|
10
10
|
@click="radioClick(msg, option, index)">
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
</div>
|
|
15
15
|
<div v-if="showPage" class="switch-page">
|
|
16
|
-
<span @click="changeActivePage" class="switch-page-btn"
|
|
16
|
+
<span @click="changeActivePage" class="switch-page-btn">换一批</span>
|
|
17
17
|
<!-- <span @click="showMore" class="switch-page-btn">查看更多</span> -->
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</div>
|
|
27
27
|
</template>
|
|
28
28
|
<script>
|
|
29
|
-
import {uploadImageByBase64} from "../assets/js/AliyunlssUtil";
|
|
29
|
+
import {ossConfig,uploadImageByBase64} from "../assets/js/AliyunlssUtil";
|
|
30
30
|
|
|
31
31
|
export default {
|
|
32
32
|
name: "ask_video",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
console.debug('img.src',output)
|
|
87
87
|
let base64 = canvas.toDataURL("image/png")
|
|
88
88
|
let blob = that.dataURLtoFile(base64,'name')
|
|
89
|
-
let promise = uploadImageByBase64(blob);
|
|
89
|
+
let promise = uploadImageByBase64(ossConfig,blob);
|
|
90
90
|
promise.then((res)=>{
|
|
91
91
|
console.debug("upload base64 reslut",res);
|
|
92
92
|
if (res&&res.url){
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
<section class="text-label">
|
|
16
16
|
<p class="text-type">
|
|
17
17
|
<i class="iconfont guoran-biaoqian"></i>
|
|
18
|
-
<span>{{
|
|
18
|
+
<span>{{
|
|
19
|
+
dataDetails.typeName ? dataDetails.typeName : "--"
|
|
20
|
+
}}</span>
|
|
19
21
|
</p>
|
|
20
22
|
<p class="text-SN">
|
|
21
23
|
<i class="iconfont guoran-xinghao"></i>
|
|
@@ -27,20 +29,20 @@
|
|
|
27
29
|
<div class="details-content-hide">
|
|
28
30
|
<p>
|
|
29
31
|
<i class="iconfont guoran-miaoshu"></i>
|
|
30
|
-
<span
|
|
32
|
+
<span>描述</span>
|
|
31
33
|
<b>{{ dataDetails.description }}</b>
|
|
32
34
|
</p>
|
|
33
35
|
<p>
|
|
34
36
|
<i class="arsenal_icon arsenalweizhi"></i>
|
|
35
|
-
<span
|
|
36
|
-
<b>{{ dataDetails.officeAreaName }}</b>
|
|
37
|
+
<span>位置</span>
|
|
38
|
+
<b> {{ dataDetails.officeAreaName }} </b>
|
|
37
39
|
</p>
|
|
38
40
|
<p>
|
|
39
41
|
<i class="iconfont guoran-geren"></i>
|
|
40
|
-
<span
|
|
42
|
+
<span>使用者</span>
|
|
41
43
|
<b>
|
|
42
44
|
{{
|
|
43
|
-
dataDetails.userName && dataDetails.userName.length
|
|
45
|
+
dataDetails.userName && dataDetails.userName.length != 0
|
|
44
46
|
? dataDetails.userName[0]
|
|
45
47
|
: "--"
|
|
46
48
|
}}
|
|
@@ -48,10 +50,10 @@
|
|
|
48
50
|
</p>
|
|
49
51
|
<p>
|
|
50
52
|
<i class="iconfont guoran-bumen"></i>
|
|
51
|
-
<span
|
|
53
|
+
<span>部门</span>
|
|
52
54
|
<b>
|
|
53
55
|
{{
|
|
54
|
-
dataDetails.deptNames && dataDetails.deptNames.length
|
|
56
|
+
dataDetails.deptNames && dataDetails.deptNames.length != 0
|
|
55
57
|
? dataDetails.deptNames[0]
|
|
56
58
|
: "--"
|
|
57
59
|
}}
|
|
@@ -59,10 +61,10 @@
|
|
|
59
61
|
</p>
|
|
60
62
|
<p>
|
|
61
63
|
<i class="iconfont guoran-guanlizhe"></i>
|
|
62
|
-
<span
|
|
64
|
+
<span>管理者</span>
|
|
63
65
|
<b>
|
|
64
66
|
{{
|
|
65
|
-
dataDetails.managerNames && dataDetails.managerNames.length
|
|
67
|
+
dataDetails.managerNames && dataDetails.managerNames.length != 0
|
|
66
68
|
? dataDetails.managerNames[0]
|
|
67
69
|
: "--"
|
|
68
70
|
}}
|
|
@@ -803,6 +803,14 @@ export default {
|
|
|
803
803
|
videoUploadPercent: false,
|
|
804
804
|
fileType: ['PICTURE', 'VIDEO', 'AUDIO'],
|
|
805
805
|
loading: '',
|
|
806
|
+
ossConfig: {
|
|
807
|
+
region: "oss-cn-zhangjiakou",
|
|
808
|
+
//云账号AccessKey有所有API访问权限,建议遵循阿里云安全最佳实践,创建并使用STS方式来进行API访问
|
|
809
|
+
accessKeyId: "LTAI4G3QtdEdwkEbihBngAsK",
|
|
810
|
+
accessKeySecret: "OwgdVfc5PeCkIgqIdug660xmiSPchn",
|
|
811
|
+
// stsToken: '<Your securityToken(STS)>',
|
|
812
|
+
bucket: "guoranopen-zjk",
|
|
813
|
+
},
|
|
806
814
|
hideUploadEdit: false,
|
|
807
815
|
limitNum: 1,
|
|
808
816
|
refShowPicker: false,
|
|
@@ -1497,6 +1505,7 @@ export default {
|
|
|
1497
1505
|
url: ''
|
|
1498
1506
|
}
|
|
1499
1507
|
let res = multipartUpload(
|
|
1508
|
+
this.ossConfig,
|
|
1500
1509
|
file,
|
|
1501
1510
|
null,
|
|
1502
1511
|
imageInfo
|
|
@@ -1506,10 +1515,10 @@ export default {
|
|
|
1506
1515
|
// let filePath = res.name;
|
|
1507
1516
|
imageData.urls.push({
|
|
1508
1517
|
name: file.name,
|
|
1509
|
-
url: ossFileUrl(res.name),
|
|
1518
|
+
url: ossFileUrl(this.ossConfig, res.name),
|
|
1510
1519
|
status: 'success'
|
|
1511
1520
|
})
|
|
1512
|
-
imageInfo.url = ossFileUrl(res.name)
|
|
1521
|
+
imageInfo.url = ossFileUrl(this.ossConfig, res.name)
|
|
1513
1522
|
imageInfo.status = 'success'
|
|
1514
1523
|
imageInfo.name = file.name
|
|
1515
1524
|
for (let j = 0; j < this.extInfoFieldValue[this.filedId].length; j++) {
|
|
@@ -2409,6 +2418,7 @@ export default {
|
|
|
2409
2418
|
},
|
|
2410
2419
|
};*/
|
|
2411
2420
|
let res = multipartUpload(
|
|
2421
|
+
this.ossConfig,
|
|
2412
2422
|
file,
|
|
2413
2423
|
null,
|
|
2414
2424
|
imgInfo
|
|
@@ -2421,7 +2431,7 @@ export default {
|
|
|
2421
2431
|
ossFileUrl(this.ossConfig, res.name)
|
|
2422
2432
|
);
|
|
2423
2433
|
console.log('imageData',imageData)*/
|
|
2424
|
-
imgInfo.url = ossFileUrl(res.name)
|
|
2434
|
+
imgInfo.url = ossFileUrl(this.ossConfig, res.name)
|
|
2425
2435
|
imgInfo.status = 'success'
|
|
2426
2436
|
if (data.file) {
|
|
2427
2437
|
imgInfo.name = data.file.name
|
|
@@ -2481,7 +2491,7 @@ export default {
|
|
|
2481
2491
|
console.debug("upload video progress", progress, point);
|
|
2482
2492
|
if (progress === 1) {
|
|
2483
2493
|
// this.loadingIns.close();
|
|
2484
|
-
videoData.content.url = ossFileUrl(point.name);
|
|
2494
|
+
videoData.content.url = ossFileUrl(this.ossConfig, point.name);
|
|
2485
2495
|
// this.chooseVideo({data:url},file);
|
|
2486
2496
|
|
|
2487
2497
|
} else {
|
|
@@ -3,23 +3,21 @@
|
|
|
3
3
|
<div class="summaryHeader">
|
|
4
4
|
<div class="left">
|
|
5
5
|
<i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
|
|
6
|
-
<span
|
|
6
|
+
<span>智能摘要</span>
|
|
7
7
|
</div>
|
|
8
8
|
<div class="right">
|
|
9
9
|
<div class="regenerationBtn" @click="regeneration">
|
|
10
|
-
<template v-if="!isLoading">
|
|
11
|
-
{{ $t('dragonCommon.regenerate') }}
|
|
12
|
-
</template>
|
|
10
|
+
<template v-if="!isLoading">重新生成</template>
|
|
13
11
|
<template v-else>
|
|
14
12
|
<img
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
height="20px"
|
|
14
|
+
width="20px"
|
|
15
|
+
src="../assets/image/loading.gif"
|
|
16
|
+
alt
|
|
17
|
+
srcset
|
|
18
|
+
style="margin-right: 6px"
|
|
21
19
|
/>
|
|
22
|
-
<span
|
|
20
|
+
<span>生成中</span>
|
|
23
21
|
</template>
|
|
24
22
|
</div>
|
|
25
23
|
<i class="iconfont guoran-tongyichicun-shouqi" @click="closeSummary"></i>
|
|
@@ -30,9 +28,9 @@
|
|
|
30
28
|
</div>
|
|
31
29
|
<div class="intelligentBottom" v-if="recommendQuestions.length > 0">
|
|
32
30
|
<div class="intelligentQues"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
v-for="(item,index) in recommendQuestions"
|
|
32
|
+
:key="index"
|
|
33
|
+
@click="recommendQues(item)"
|
|
36
34
|
>
|
|
37
35
|
{{ item }}
|
|
38
36
|
</div>
|