askbot-dragon 1.7.17-beta → 1.7.19-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 (35) hide show
  1. package/package.json +2 -2
  2. package/public/index.html +9 -8
  3. package/src/assets/js/AliyunlssUtil.js +53 -27
  4. package/src/assets/js/hammer.js +13 -2
  5. package/src/assets/less/converSationContainer/common.less +7 -0
  6. package/src/components/ActionAlertIframe.vue +24 -1
  7. package/src/components/AiGuide.vue +121 -154
  8. package/src/components/AnswerDocknowledge.vue +10 -8
  9. package/src/components/ConversationContainer.vue +952 -1794
  10. package/src/components/MyEditor.vue +6 -5
  11. package/src/components/actionSatisfaction.vue +3 -3
  12. package/src/components/answerRadio.vue +3 -3
  13. package/src/components/askVideo.vue +24 -1
  14. package/src/components/associationIntention.vue +11 -7
  15. package/src/components/file/AliyunOssComponents.vue +1 -1
  16. package/src/components/formTemplate.vue +1592 -1658
  17. package/src/components/intelligentSummary.vue +8 -4
  18. package/src/components/message/TextMessage.vue +15 -11
  19. package/src/components/message/swiper/ticketSwiper.vue +1 -1
  20. package/src/components/newPdfPosition.vue +878 -0
  21. package/src/components/pdfPosition.vue +209 -35
  22. package/src/components/popup.vue +2 -2
  23. package/src/components/previewDoc.vue +6 -2
  24. package/src/components/previewPdf.vue +159 -134
  25. package/src/components/senderMessagePlatform.vue +4 -4
  26. package/src/components/tree.vue +114 -101
  27. package/src/components/utils/AliyunIssUtil.js +2 -1
  28. package/src/components/utils/ckeditor.js +1 -1
  29. package/src/components/welcomeKnowledgeFile.vue +6 -2
  30. package/src/components/welcomeLlmCard.vue +5 -1
  31. package/src/components/welcomeSuggest.vue +1 -1
  32. package/src/locales/cn.json +72 -0
  33. package/src/locales/en.json +73 -0
  34. package/src/locales/jp.json +73 -0
  35. package/src/main.js +18 -0
@@ -36,7 +36,7 @@
36
36
 
37
37
  <script>
38
38
  import { v4 as uuidv4 } from "uuid";
39
- import { multipartUpload, ossFileUrl } from "./utils/AliyunIssUtil";
39
+ import { multipartUpload, ossFileUrl } from "../assets/js/AliyunlssUtil";
40
40
 
41
41
  export default {
42
42
  props: ["value", "placeholder", "havToolbar"],
@@ -80,6 +80,7 @@ export default {
80
80
  inputObj.setAttribute('id', '_ef');
81
81
  inputObj.setAttribute('type', 'file');
82
82
  inputObj.setAttribute('accept', '*')
83
+ inputObj.setAttribute('capture', 'camcorder')
83
84
  inputObj.setAttribute('multiple', true)
84
85
  inputObj.setAttribute("style", 'visibility:hidden');
85
86
  document.body.appendChild(inputObj);
@@ -290,10 +291,10 @@ export default {
290
291
  -webkit-animation: rotate 1.5s linear infinite;
291
292
  animation: rotate 1.5s linear infinite;
292
293
  }
293
- .wrap {
294
- height: 1px;
295
- width: 100%;
296
- }
294
+ // .wrap {
295
+ // height: 1px;
296
+ // width: 100%;
297
+ // }
297
298
  }
298
299
  .editor_content:focus {
299
300
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1) inset, 0, 0;
@@ -17,7 +17,7 @@
17
17
  )
18
18
  "
19
19
  >
20
- 满意
20
+ {{$t('actionSatisfaction.satisfaction')}}
21
21
  </div>
22
22
  <div
23
23
  class="statisfaction-item"
@@ -32,7 +32,7 @@
32
32
  )
33
33
  "
34
34
  >
35
- 不满意
35
+ {{$t('actionSatisfaction.notSatisfied')}}
36
36
  </div>
37
37
  </div>
38
38
 
@@ -42,7 +42,7 @@
42
42
  <script>
43
43
  export default {
44
44
  name: "actionSatisfaction",
45
- props:['msg'],
45
+ props:['msg',"language"],
46
46
  data(){
47
47
  return{
48
48
  isCheckSatis:false,
@@ -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">AI为您推荐了以下内容</div>
7
+ <div v-if="msg.content.isKnowledgeSummary" class="tips">{{$t('answerRadio.tip')}}</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">换一批</span>
16
+ <span @click="changeActivePage" class="switch-page-btn">{{$t('answerRadio.loadMore')}}</span>
17
17
  <!-- <span @click="showMore" class="switch-page-btn">查看更多</span> -->
18
18
  </div>
19
19
  </div>
@@ -32,7 +32,7 @@ export default {
32
32
  showOptions: [],
33
33
  }
34
34
  },
35
- props: ['msg'],
35
+ props: ['msg','language'],
36
36
  mounted() {
37
37
  console.log(this.msg, 'msg');
38
38
  // 关键词推荐 前端分页
@@ -15,13 +15,16 @@
15
15
  :controlslist="nodownload&&'nodownload'"
16
16
  :raw-controls="true"
17
17
  x5-video-player-type="h5-page"
18
- style="object-fit: contain;width: calc(100vw - 139px);height: 160px;background-color: black;border-radius: 25px;max-width: 230px;padding-left: 10px"
18
+ style="object-fit: contain;width: calc(100vw - 169px);height: 160px;background-color: black;border-radius: 25px;max-width: 200px;padding-left: 10px"
19
19
  preload
20
20
  :poster="videoSrc+'?spm=qipa250&x-oss-process=video/snapshot,t_1000,f_jpg,w_0,h_0,m_fast'"
21
21
  class="video-player vjs-custom-skin"
22
22
  :id="msg.id+'key'">
23
23
  <source :src="videoSrc"/>
24
24
  </video>
25
+ <div v-show="!nodownload" class="dragon-video-download">
26
+ <a :href="msg.content.url" download><span class="el-icon-download"></span></a>
27
+ </div>
25
28
  <div id="output"></div>
26
29
  </div>
27
30
  </template>
@@ -123,6 +126,8 @@
123
126
  video::-webkit-media-controls-mute-button { display: none !important;}
124
127
  #dragon-video{
125
128
  position: relative;
129
+ width: calc(100vw - 109px);
130
+ max-width: 260px;
126
131
  #outputVideo{
127
132
  position: absolute;
128
133
  top: 0px;
@@ -134,6 +139,24 @@ video::-webkit-media-controls-mute-button { display: none !important;}
134
139
  }
135
140
 
136
141
  }
142
+ .dragon-video-download{
143
+ position: absolute;
144
+ width: 40px;
145
+ height: 26px;
146
+ background-color: rgba(54, 106, 255, 0.5);
147
+ border-radius: 13px;
148
+ text-align: center;
149
+ bottom: 2px;
150
+ right: 6px;
151
+ a {
152
+ span {
153
+ height: 26px;
154
+ line-height: 26px;
155
+ display: block;
156
+ color: white;
157
+ }
158
+ }
159
+ }
137
160
  }
138
161
 
139
162
  </style>
@@ -68,10 +68,10 @@
68
68
  <span class="model-switch-handle-name">{{msg.footerStyleValue}}</span>
69
69
  </div>
70
70
  <van-popup v-model="previewShowPopup" position="bottom" v-if="previewShowPopup" :style="{ height: '90%', background:'#FFFFFF'}">
71
- <previewDoc ref="previewDoc" :url="previewHref" @close="close" v-if="previewShowPopup"></previewDoc>
71
+ <previewDoc ref="previewDoc" :url="previewHref" :language="language" @close="close" v-if="previewShowPopup"></previewDoc>
72
72
  </van-popup>
73
73
  <el-drawer
74
- title="我是标题"
74
+ :title="$t('common.drawerTitle')"
75
75
  :append-to-body="true"
76
76
  :model="false"
77
77
  :visible.sync="drawer"
@@ -79,7 +79,7 @@
79
79
  size="65%"
80
80
  v-if="drawer"
81
81
  >
82
- <previewDoc ref="previewDoc" :url="previewHref" @close="close" v-if="drawer"></previewDoc>
82
+ <previewDoc ref="previewDoc" :url="previewHref" :language="language" @close="close" v-if="drawer"></previewDoc>
83
83
  </el-drawer>
84
84
  </div>
85
85
  </template>
@@ -92,7 +92,7 @@
92
92
  export default {
93
93
  name: "associationIntention",
94
94
  components: {Recommend, askVideo, previewDoc},
95
- props: ["msg",'msgType','isOpen','sourceOhm','isOhmPc', 'nodownload', 'hiddenHeaderFooter'],
95
+ props: ["msg",'msgType','isOpen','sourceOhm','isOhmPc', 'nodownload', 'hiddenHeaderFooter','language'],
96
96
  filters: {
97
97
  imageStyle: function (html) {
98
98
  //富文本内图片自适应高度宽度
@@ -115,8 +115,6 @@
115
115
  drawer:false
116
116
  }
117
117
  },
118
- mounted() {
119
- },
120
118
  methods:{
121
119
  // 将匹配结果替换表情图片
122
120
  emotion(res) {
@@ -237,7 +235,7 @@
237
235
  this.$emit("onRadioClick", id, name, apikey,optionApiKey);
238
236
  },
239
237
  onImageClick(url){
240
- this.$emit('onImageClick',url)
238
+ this.$emit('onImageClick', encodeURI(url))
241
239
  },
242
240
  msgContent(content){
243
241
  console.debug('215',content)
@@ -368,6 +366,12 @@
368
366
  display: block;
369
367
  }
370
368
  }
369
+ /deep/ img {
370
+ height: auto;
371
+ width: calc(100vw - 137px);
372
+ border-radius: 25px;
373
+ max-width: 230px;
374
+ }
371
375
  }
372
376
  /deep/.el-drawer__body{
373
377
  height: 100%;
@@ -9,7 +9,7 @@
9
9
  <script>
10
10
  import {uid} from 'uid';
11
11
 
12
- const OSS = require('ali-oss');
12
+ // const OSS = require('ali-oss');
13
13
 
14
14
  Date.prototype.Format = function (fmt) {
15
15
  const o = {