askbot-dragon 1.6.41-beta → 1.6.43-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 +696 -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 +202 -165
  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 +454 -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 +315 -315
  81. package/src/components/welcomeLlmCard.vue +134 -134
  82. package/src/main.js +57 -57
  83. package/vue.config.js +54 -54
@@ -1,166 +1,203 @@
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
- 重新生成
11
- </div>
12
- <i class="iconfont guoran-tongyichicun-shouqi" @click="closeSummary"></i>
13
- </div>
14
- </div>
15
- <div class="summaryContent">
16
- <span>{{ summary }}</span>
17
- </div>
18
- <div class="intelligentBottom" v-if="recommendQuestions.length > 0">
19
- <div class="intelligentQues"
20
- v-for="(item,index) in recommendQuestions"
21
- :key="index"
22
- @click="recommendQues(item)"
23
- >
24
- {{ item }}
25
- </div>
26
- </div>
27
- </div>
28
- </template>
29
-
30
- <script>
31
- export default {
32
- name: "intelligentSummary",
33
- data(){
34
- return{
35
- summary:"",
36
- recommendQuestions:[],
37
- }
38
- },
39
- props:{
40
- knowledgeId:{
41
- type:String
42
- }
43
- },
44
- methods:{
45
- getKnowledgeSummary() {
46
- let url = "/knowledge-api/knowledge/detail/" + this.knowledgeId;
47
- this.$http.get(url).then(res => {
48
- console.log('res',res)
49
- if (res.data.data){
50
- this.summary = res.data.data.summary;
51
- this.recommendQuestions = res.data.data.recommendQuestions ? res.data.data.recommendQuestions : [];
52
- if (!this.summary){
53
- this.regeneration();
54
- }
55
- }
56
- })
57
- },
58
- regeneration(){
59
- let url = "/knowledge-api/knowledge/analyze/summary";
60
- let obj = {
61
- "mainId": sessionStorage.getItem('_mainId') || localStorage.getItem('_mainId'),
62
- "userId": sessionStorage.getItem('_uid') || localStorage.getItem('_uid'),
63
- "knowledgeId": this.knowledgeId,
64
- "async": false
65
- }
66
- this.$http.post(url,obj).then(res => {
67
- console.log('regeneration',res)
68
- if (res.data.data){
69
- this.summary = res.data.data.summary;
70
- this.recommendQuestions = res.data.data.recommendQuestions ? res.data.data.recommendQuestions : [];
71
- this.$emit('getSummarySuccess')
72
- }
73
- })
74
- },
75
- closeSummary(){
76
- this.$emit('closeSummary')
77
- },
78
- recommendQues(item){
79
- this.$emit('recommendQues',item,this.knowledgeId)
80
- }
81
- },
82
- mounted() {
83
- this.getKnowledgeSummary();
84
- }
85
- };
86
- </script>
87
-
88
- <style scoped lang="less">
89
- .intelligentSummary{
90
- background-color: #ffffff;
91
- border-radius: 20px;
92
- border: 1px solid #366AFF;
93
- margin-bottom: 20px;
94
- .summaryHeader{
95
- display: flex;
96
- align-items: center;
97
- justify-content: space-between;
98
- padding: 14px 16px;
99
- font-size: 14px;
100
- .left{
101
- //display: flex;
102
- //align-items: center;
103
- color: #366aff;
104
- i{
105
- padding-right: 6px;
106
- }
107
- }
108
- .right{
109
- display: flex;
110
- align-items: center;
111
- color: #366aff;
112
- .regenerationBtn{
113
- height: 26px;
114
- background: #E9EFFF;
115
- border-radius: 12px;
116
- color: #366AFF;
117
- display: flex;
118
- align-items: center;
119
- justify-content: center;
120
- cursor: pointer;
121
- padding: 0 10px;
122
- margin-right: 10px;
123
- font-size: 12px;
124
- }
125
- i{
126
- cursor: pointer;
127
- font-size: 14px;
128
- }
129
- }
130
- }
131
- .summaryContent{
132
- line-height: 26px;
133
- padding: 0 16px 16px 16px;
134
- font-size: 14px;
135
- }
136
- .intelligentBottom{
137
- background: #F9FAFD;
138
- height: 50px;
139
- display: flex;
140
- align-items: center;
141
- padding: 0 20px;
142
- border-bottom-left-radius: 20px;
143
- border-bottom-right-radius: 20px;
144
- overflow-x: scroll;
145
- overflow-y: hidden;
146
- .intelligentQues{
147
- height: 26px;
148
- display: flex;
149
- align-items: center;
150
- justify-content: center;
151
- padding: 0 8px;
152
- background: #E5EBFF;
153
- color: #366AFF;
154
- border-radius: 10px;
155
- margin-right: 10px;
156
- font-size: 12px;
157
- cursor: pointer;
158
- white-space: nowrap;
159
- }
160
- }
161
- ::-webkit-scrollbar{
162
- background-color: transparent;
163
- height: 6px;
164
- }
165
- }
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.$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 : [];
68
+ if (!this.summary){
69
+ this.regeneration();
70
+ } else {
71
+ this.$emit('getSummarySuccess')
72
+ this.startTypingEffect();
73
+ }
74
+ }
75
+ })
76
+ },
77
+ regeneration(){
78
+ let url = "/knowledge-api/knowledge/analyze/summary";
79
+ let obj = {
80
+ "mainId": sessionStorage.getItem('_mainId') || localStorage.getItem('_mainId'),
81
+ "userId": sessionStorage.getItem('_uid') || localStorage.getItem('_uid'),
82
+ "knowledgeId": this.knowledgeId,
83
+ "async": false
84
+ }
85
+ this.isLoading = true;
86
+ this.$http.post(url,obj).then(res => {
87
+ console.log('regeneration',res)
88
+ if (res.data.data){
89
+ this.summary = res.data.data.summary;
90
+ this.recommendQuestions = res.data.data.recommendQuestions ? res.data.data.recommendQuestions : [];
91
+ this.$emit('getSummarySuccess')
92
+ this.startTypingEffect();
93
+ }
94
+ this.isLoading = false;
95
+ })
96
+ },
97
+ closeSummary(){
98
+ this.$emit('closeSummary')
99
+ },
100
+ recommendQues(item){
101
+ this.$emit('recommendQues',item,this.knowledgeId)
102
+ },
103
+ startTypingEffect() {
104
+ let i = 0;
105
+ const interval = setInterval(() => {
106
+ if (i < this.summary.length) {
107
+ this.typedContent += this.summary.charAt(i);
108
+ i++;
109
+ } else {
110
+ clearInterval(interval);
111
+ }
112
+ }, this.typingSpeed);
113
+ },
114
+ },
115
+ mounted() {
116
+ this.getKnowledgeSummary();
117
+ }
118
+ };
119
+ </script>
120
+
121
+ <style scoped lang="less">
122
+ .intelligentSummary{
123
+ background-color: #ffffff;
124
+ border-radius: 20px;
125
+ border: 1px solid #366AFF;
126
+ margin-bottom: 20px;
127
+ .summaryHeader{
128
+ display: flex;
129
+ align-items: center;
130
+ justify-content: space-between;
131
+ padding: 14px 16px;
132
+ font-size: 14px;
133
+ .left{
134
+ //display: flex;
135
+ //align-items: center;
136
+ color: #366aff;
137
+ i{
138
+ padding-right: 6px;
139
+ }
140
+ }
141
+ .right{
142
+ display: flex;
143
+ align-items: center;
144
+ color: #366aff;
145
+ .regenerationBtn{
146
+ height: 26px;
147
+ background: #E9EFFF;
148
+ border-radius: 12px;
149
+ color: #366AFF;
150
+ display: flex;
151
+ align-items: center;
152
+ justify-content: center;
153
+ cursor: pointer;
154
+ padding: 0 10px;
155
+ margin-right: 10px;
156
+ font-size: 12px;
157
+ }
158
+ i{
159
+ cursor: pointer;
160
+ font-size: 14px;
161
+ }
162
+ }
163
+ }
164
+ .summaryContent{
165
+ line-height: 26px;
166
+ padding: 0 16px 16px 16px;
167
+ font-size: 14px;
168
+ text-align: left;
169
+ }
170
+ .intelligentBottom{
171
+ background: #F9FAFD;
172
+ padding: 0 10px;
173
+ height: 50px;
174
+ border-bottom-left-radius: 20px;
175
+ border-bottom-right-radius: 20px;
176
+ .intelligentList{
177
+ overflow-x: scroll;
178
+ overflow-y: hidden;
179
+ display: flex;
180
+ align-items: center;
181
+ height: 50px;
182
+ }
183
+ .intelligentQues{
184
+ height: 26px;
185
+ display: flex;
186
+ align-items: center;
187
+ justify-content: center;
188
+ padding: 0 8px;
189
+ background: #E5EBFF;
190
+ color: #366AFF;
191
+ border-radius: 10px;
192
+ margin-right: 10px;
193
+ font-size: 12px;
194
+ cursor: pointer;
195
+ white-space: nowrap;
196
+ }
197
+ }
198
+ ::-webkit-scrollbar{
199
+ background-color: transparent;
200
+ height: 6px;
201
+ }
202
+ }
166
203
  </style>