askbot-dragon 1.6.44-beta → 1.6.46-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.
Files changed (83) hide show
  1. package/README.md +27 -27
  2. package/babel.config.js +6 -6
  3. package/dragon.iml +7 -7
  4. package/package.json +55 -55
  5. package/public/index.html +72 -72
  6. package/src/App.vue +31 -31
  7. package/src/api/index.js +1 -1
  8. package/src/api/mock.http +2 -2
  9. package/src/api/requestUrl.js +185 -185
  10. package/src/assets/js/AliyunlssUtil.js +92 -92
  11. package/src/assets/js/Base64Util.js +22 -22
  12. package/src/assets/js/common.js +75 -75
  13. package/src/assets/js/hammer.js +100 -100
  14. package/src/assets/js/script.js +36 -36
  15. package/src/assets/less/common.css +6773 -6773
  16. package/src/assets/less/converSationContainer/common.less +199 -199
  17. package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
  18. package/src/assets/less/iconfont.css +37 -37
  19. package/src/assets/less/ticketMessage.less +294 -294
  20. package/src/components/ActionAlertIframe.vue +177 -177
  21. package/src/components/AiGuide.vue +466 -466
  22. package/src/components/AnswerDocknowledge.vue +691 -696
  23. package/src/components/AnswerVoice.vue +285 -285
  24. package/src/components/AskIFrame.vue +15 -15
  25. package/src/components/ConversationContainer.vue +5097 -5097
  26. package/src/components/FileType.vue +86 -86
  27. package/src/components/Message.vue +27 -27
  28. package/src/components/MyEditor.vue +350 -350
  29. package/src/components/actionSatisfaction.vue +107 -107
  30. package/src/components/actionSendToBot.vue +62 -62
  31. package/src/components/answerDissatisfaction.vue +62 -62
  32. package/src/components/answerRadio.vue +186 -186
  33. package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
  34. package/src/components/ask-components/Msgloading.vue +37 -37
  35. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  36. package/src/components/askVideo.vue +162 -162
  37. package/src/components/assetDetails.vue +370 -370
  38. package/src/components/assetMessage.vue +228 -228
  39. package/src/components/associationIntention.vue +355 -355
  40. package/src/components/attachmentPreview.vue +90 -90
  41. package/src/components/botActionSatisfactor.vue +68 -68
  42. package/src/components/chatContent.vue +513 -513
  43. package/src/components/feedBack.vue +136 -136
  44. package/src/components/fielListView.vue +351 -351
  45. package/src/components/file/AliyunOssComponents.vue +108 -108
  46. package/src/components/formTemplate.vue +3572 -3572
  47. package/src/components/intelligentSummary.vue +209 -206
  48. package/src/components/kkview.vue +1138 -1138
  49. package/src/components/loadingProcess.vue +164 -164
  50. package/src/components/message/ActionAlertIframe.vue +112 -112
  51. package/src/components/message/ShopMessage.vue +164 -164
  52. package/src/components/message/TextMessage.vue +924 -924
  53. package/src/components/message/TicketMessage.vue +201 -201
  54. package/src/components/message/swiper/index.js +4 -4
  55. package/src/components/message/swiper/ticketSwiper.vue +503 -503
  56. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  57. package/src/components/msgLoading.vue +231 -231
  58. package/src/components/myPopup.vue +70 -70
  59. package/src/components/newPdfPosition.vue +877 -877
  60. package/src/components/pdfPosition.vue +1508 -1508
  61. package/src/components/popup.vue +227 -227
  62. package/src/components/previewDoc.vue +242 -242
  63. package/src/components/previewPdf.vue +483 -454
  64. package/src/components/receiverMessagePlatform.vue +65 -65
  65. package/src/components/recommend.vue +80 -80
  66. package/src/components/selector/hOption.vue +20 -20
  67. package/src/components/selector/hSelector.vue +199 -199
  68. package/src/components/selector/hWrapper.vue +216 -216
  69. package/src/components/senderMessagePlatform.vue +50 -50
  70. package/src/components/source/BotMessage.vue +24 -24
  71. package/src/components/source/CustomMessage.vue +24 -24
  72. package/src/components/test.vue +260 -260
  73. package/src/components/tree.vue +294 -294
  74. package/src/components/utils/AliyunIssUtil.js +81 -81
  75. package/src/components/utils/ckeditor.js +174 -174
  76. package/src/components/utils/format_date.js +25 -25
  77. package/src/components/utils/index.js +6 -6
  78. package/src/components/utils/math_utils.js +29 -29
  79. package/src/components/voiceComponent.vue +119 -119
  80. package/src/components/welcomeKnowledgeFile.vue +316 -315
  81. package/src/components/welcomeLlmCard.vue +139 -134
  82. package/src/main.js +57 -57
  83. package/vue.config.js +54 -54
@@ -1,207 +1,210 @@
1
- <template>
2
- <div class="intelligentSummary" id="intelligentSummary">
3
- <div class="summaryHeader">
4
- <div class="left">
5
- <i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
6
- <span>智能摘要</span>
7
- </div>
8
- <div class="right">
9
- <div class="regenerationBtn" @click="regeneration">
10
- <template v-if="!isLoading">重新生成</template>
11
- <template v-else>
12
- <img
13
- height="20px"
14
- width="20px"
15
- src="https://static.guoranbot.com/loading.gif"
16
- alt
17
- srcset
18
- style="margin-right: 6px"
19
- />
20
- <span>生成中</span>
21
- </template>
22
- </div>
23
- <i class="iconfont guoran-tongyichicun-shouqi" @click="closeSummary"></i>
24
- </div>
25
- </div>
26
- <div class="summaryContent">
27
- <span>{{ typedContent }}</span>
28
- </div>
29
- <div class="intelligentBottom" v-if="recommendQuestions.length > 0">
30
- <div class="intelligentList">
31
- <div class="intelligentQues"
32
- v-for="(item,index) in recommendQuestions"
33
- :key="index"
34
- @click="recommendQues(item)"
35
- >
36
- {{ item }}
37
- </div>
38
- </div>
39
- </div>
40
- </div>
41
- </template>
42
-
43
- <script>
44
- export default {
45
- name: "intelligentSummary",
46
- data(){
47
- return{
48
- summary:"",
49
- recommendQuestions:[],
50
- isLoading:false,
51
- typedContent:"",
52
- typingSpeed:20
53
- }
54
- },
55
- props:{
56
- knowledgeId:{
57
- type:String
58
- }
59
- },
60
- methods:{
61
- getKnowledgeSummary() {
62
- let url = "/knowledge-api/knowledge/detail/" + this.knowledgeId;
63
- this.typedContent = "";
64
- this.summary = "";
65
- this.$http.get(url).then(res => {
66
- console.log('res',res)
67
- if (res.data.data){
68
- this.summary = res.data.data.summary;
69
- this.recommendQuestions = res.data.data.recommendQuestions ? res.data.data.recommendQuestions : [];
70
- if (!this.summary){
71
- this.regeneration();
72
- } else {
73
- this.$emit('getSummarySuccess')
74
- this.startTypingEffect();
75
- }
76
- }
77
- })
78
- },
79
- regeneration(){
80
- let url = "/knowledge-api/knowledge/analyze/summary";
81
- let obj = {
82
- "mainId": sessionStorage.getItem('_mainId') || localStorage.getItem('_mainId'),
83
- "userId": sessionStorage.getItem('_uid') || localStorage.getItem('_uid'),
84
- "knowledgeId": this.knowledgeId,
85
- "async": false
86
- }
87
- this.isLoading = true;
88
- this.typedContent = "";
89
- this.summary = "";
90
- this.$http.post(url,obj).then(res => {
91
- console.log('regeneration',res)
92
- if (res.data.data){
93
- this.summary = res.data.data.summary;
94
- this.recommendQuestions = res.data.data.recommendQuestions ? res.data.data.recommendQuestions : [];
95
- this.$emit('getSummarySuccess')
96
- this.startTypingEffect();
97
- }
98
- this.isLoading = false;
99
- })
100
- },
101
- closeSummary(){
102
- this.$emit('closeSummary')
103
- },
104
- recommendQues(item){
105
- this.$emit('recommendQues',item,this.knowledgeId)
106
- },
107
- startTypingEffect() {
108
- let i = 0;
109
- const interval = setInterval(() => {
110
- if (i < this.summary.length) {
111
- this.typedContent += this.summary.charAt(i);
112
- i++;
113
- } else {
114
- clearInterval(interval);
115
- }
116
- }, this.typingSpeed);
117
- },
118
- },
119
- mounted() {
120
- this.getKnowledgeSummary();
121
- }
122
- };
123
- </script>
124
-
125
- <style scoped lang="less">
126
- .intelligentSummary{
127
- background-color: #ffffff;
128
- border-radius: 20px;
129
- border: 1px solid #366AFF;
130
- margin-bottom: 20px;
131
- .summaryHeader{
132
- display: flex;
133
- align-items: center;
134
- justify-content: space-between;
135
- padding: 14px 16px;
136
- font-size: 14px;
137
- .left{
138
- //display: flex;
139
- //align-items: center;
140
- color: #366aff;
141
- i{
142
- padding-right: 6px;
143
- }
144
- }
145
- .right{
146
- display: flex;
147
- align-items: center;
148
- color: #366aff;
149
- .regenerationBtn{
150
- height: 26px;
151
- background: #E9EFFF;
152
- border-radius: 12px;
153
- color: #366AFF;
154
- display: flex;
155
- align-items: center;
156
- justify-content: center;
157
- cursor: pointer;
158
- padding: 0 10px;
159
- margin-right: 10px;
160
- font-size: 12px;
161
- }
162
- i{
163
- cursor: pointer;
164
- font-size: 14px;
165
- }
166
- }
167
- }
168
- .summaryContent{
169
- line-height: 26px;
170
- padding: 0 16px 16px 16px;
171
- font-size: 14px;
172
- text-align: left;
173
- }
174
- .intelligentBottom{
175
- background: #F9FAFD;
176
- padding: 0 10px;
177
- height: 50px;
178
- border-bottom-left-radius: 20px;
179
- border-bottom-right-radius: 20px;
180
- .intelligentList{
181
- overflow-x: scroll;
182
- overflow-y: hidden;
183
- display: flex;
184
- align-items: center;
185
- height: 50px;
186
- }
187
- .intelligentQues{
188
- height: 26px;
189
- display: flex;
190
- align-items: center;
191
- justify-content: center;
192
- padding: 0 8px;
193
- background: #E5EBFF;
194
- color: #366AFF;
195
- border-radius: 10px;
196
- margin-right: 10px;
197
- font-size: 12px;
198
- cursor: pointer;
199
- white-space: nowrap;
200
- }
201
- }
202
- ::-webkit-scrollbar{
203
- background-color: transparent;
204
- height: 6px;
205
- }
206
- }
1
+ <template>
2
+ <div class="intelligentSummary" id="intelligentSummary">
3
+ <div class="summaryHeader">
4
+ <div class="left">
5
+ <i class="iconfont guoran-tongyichicun-write-29-jiqiren"></i>
6
+ <span>智能摘要</span>
7
+ </div>
8
+ <div class="right">
9
+ <div class="regenerationBtn" @click="regeneration">
10
+ <template v-if="!isLoading">重新生成</template>
11
+ <template v-else>
12
+ <img
13
+ height="20px"
14
+ width="20px"
15
+ src="https://static.guoranbot.com/loading.gif"
16
+ alt
17
+ srcset
18
+ style="margin-right: 6px"
19
+ />
20
+ <span>生成中</span>
21
+ </template>
22
+ </div>
23
+ <i class="iconfont guoran-tongyichicun-shouqi" @click="closeSummary"></i>
24
+ </div>
25
+ </div>
26
+ <div class="summaryContent">
27
+ <span>{{ typedContent }}</span>
28
+ </div>
29
+ <div class="intelligentBottom" v-if="recommendQuestions.length > 0">
30
+ <div class="intelligentQues"
31
+ v-for="(item,index) in recommendQuestions"
32
+ :key="index"
33
+ @click="recommendQues(item)"
34
+ >
35
+ {{ item }}
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </template>
40
+
41
+ <script>
42
+ export default {
43
+ name: "intelligentSummary",
44
+ data(){
45
+ return{
46
+ summary:"",
47
+ recommendQuestions:[],
48
+ isLoading:false,
49
+ typedContent:"",
50
+ typingSpeed:20
51
+ }
52
+ },
53
+ props:{
54
+ knowledgeId:{
55
+ type:String
56
+ }
57
+ },
58
+ methods:{
59
+ getKnowledgeSummary() {
60
+ let url = "/knowledge-api/knowledge/detail/" + this.knowledgeId;
61
+ this.typedContent = "";
62
+ this.summary = "";
63
+ this.$http.get(url).then(res => {
64
+ console.log('res',res)
65
+ if (res.data.data){
66
+ this.summary = res.data.data.summary;
67
+ this.recommendQuestions = res.data.data.recommendQuestions ? res.data.data.recommendQuestions.splice(0,5) : [];
68
+ if (!this.summary){
69
+ this.regeneration();
70
+ } else {
71
+ this.typedContent = this.summary;
72
+ }
73
+ }
74
+ this.$nextTick(() => {
75
+ this.$emit('getSummarySuccess')
76
+ })
77
+ })
78
+ },
79
+ regeneration(){
80
+ let url = "/knowledge-api/knowledge/analyze/summary";
81
+ let obj = {
82
+ "mainId": sessionStorage.getItem('_mainId') || localStorage.getItem('_mainId'),
83
+ "userId": sessionStorage.getItem('_uid') || localStorage.getItem('_uid'),
84
+ "knowledgeId": this.knowledgeId,
85
+ "async": false
86
+ }
87
+ this.isLoading = true;
88
+ this.typedContent = "";
89
+ this.summary = "";
90
+ this.$http.post(url,obj).then(res => {
91
+ console.log('regeneration',res)
92
+ if (res.data.data){
93
+ this.summary = res.data.data.summary;
94
+ this.recommendQuestions = res.data.data.recommendQuestions ? res.data.data.recommendQuestions.splice(0,5) : [];
95
+ this.startTypingEffect();
96
+ } else {
97
+ this.$nextTick(() => {
98
+ this.$emit('getSummarySuccess')
99
+ })
100
+ }
101
+ this.isLoading = false;
102
+ })
103
+ },
104
+ closeSummary(){
105
+ this.$emit('closeSummary')
106
+ },
107
+ recommendQues(item){
108
+ this.$emit('recommendQues',item,this.knowledgeId)
109
+ },
110
+ startTypingEffect() {
111
+ let i = 0;
112
+ const interval = setInterval(() => {
113
+ if (i < this.summary.length) {
114
+ this.typedContent += this.summary.charAt(i);
115
+ i++;
116
+ } else {
117
+ clearInterval(interval);
118
+ setTimeout(() => {
119
+ this.$emit('getSummarySuccess')
120
+ },240)
121
+ }
122
+ }, this.typingSpeed);
123
+ },
124
+ },
125
+ mounted() {
126
+ this.getKnowledgeSummary();
127
+ }
128
+ };
129
+ </script>
130
+
131
+ <style scoped lang="less">
132
+ .intelligentSummary{
133
+ background-color: #ffffff;
134
+ border-radius: 20px;
135
+ border: 1px solid #366AFF;
136
+ margin-bottom: 20px;
137
+ .summaryHeader{
138
+ display: flex;
139
+ align-items: center;
140
+ justify-content: space-between;
141
+ padding: 14px 16px;
142
+ font-size: 14px;
143
+ .left{
144
+ //display: flex;
145
+ //align-items: center;
146
+ color: #366aff;
147
+ i{
148
+ padding-right: 6px;
149
+ }
150
+ }
151
+ .right{
152
+ display: flex;
153
+ align-items: center;
154
+ color: #366aff;
155
+ .regenerationBtn{
156
+ height: 26px;
157
+ background: #E9EFFF;
158
+ border-radius: 12px;
159
+ color: #366AFF;
160
+ display: flex;
161
+ align-items: center;
162
+ justify-content: center;
163
+ cursor: pointer;
164
+ padding: 0 10px;
165
+ margin-right: 10px;
166
+ font-size: 12px;
167
+ }
168
+ i{
169
+ cursor: pointer;
170
+ font-size: 14px;
171
+ }
172
+ }
173
+ }
174
+ .summaryContent{
175
+ line-height: 26px;
176
+ padding: 0 16px 16px 16px;
177
+ font-size: 14px;
178
+ text-align: left;
179
+ }
180
+ .intelligentBottom{
181
+ background: #F9FAFD;
182
+ padding: 0 20px;
183
+ border-bottom-left-radius: 20px;
184
+ border-bottom-right-radius: 20px;
185
+ display: flex;
186
+ align-items: center;
187
+ flex-wrap: wrap;
188
+ .intelligentQues{
189
+ height: 26px;
190
+ display: flex;
191
+ align-items: center;
192
+ justify-content: center;
193
+ padding: 0 8px;
194
+ background: #E5EBFF;
195
+ color: #366AFF;
196
+ border-radius: 10px;
197
+ margin-right: 5px;
198
+ margin-top: 5px;
199
+ margin-bottom: 5px;
200
+ font-size: 12px;
201
+ cursor: pointer;
202
+ white-space: nowrap;
203
+ }
204
+ }
205
+ ::-webkit-scrollbar{
206
+ background-color: transparent;
207
+ height: 6px;
208
+ }
209
+ }
207
210
  </style>