askbot-dragon 88.0.43 → 88.1.1

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 (38) hide show
  1. package/npminstall-debug.log +208 -0
  2. package/package.json +14 -14
  3. package/public/index.html +2 -2
  4. package/src/assets/js/obsBrowser.js +3 -2
  5. package/src/components/ActionAlertIframe.vue +1 -0
  6. package/src/components/AiGuide.vue +1 -1
  7. package/src/components/AnswerDocknowledge.vue +167 -54
  8. package/src/components/ConversationContainer.vue +16 -9
  9. package/src/components/MyEditor.vue +1 -1
  10. package/src/components/QwFeedback.vue +2 -1
  11. package/src/components/actionSatisfaction.vue +2 -2
  12. package/src/components/answerRadio.vue +59 -4
  13. package/src/components/assetDetails.vue +1 -1
  14. package/src/components/assetMessage.vue +14 -13
  15. package/src/components/associationIntention.vue +2 -2
  16. package/src/components/fielListView.vue +1 -1
  17. package/src/components/formTemplate.vue +24 -3
  18. package/src/components/intelligentSummary.vue +15 -12
  19. package/src/components/kkview.vue +0 -10
  20. package/src/components/markDownText.vue +798 -55
  21. package/src/components/myPopup.vue +14 -11
  22. package/src/components/pagination.vue +129 -0
  23. package/src/components/pdfPosition.vue +67 -67
  24. package/src/components/popup.vue +8 -7
  25. package/src/components/preview/docView.vue +114 -0
  26. package/src/components/preview/excelView.vue +191 -0
  27. package/src/components/preview/newPositionPreview.vue +385 -0
  28. package/src/components/preview/pdfView.vue +824 -0
  29. package/src/components/previewDoc.vue +1 -0
  30. package/src/components/previewPdf.vue +343 -65
  31. package/src/components/receiverMessagePlatform.vue +24 -20
  32. package/src/components/senderMessagePlatform.vue +19 -11
  33. package/src/components/tree.vue +2 -2
  34. package/src/components/welcomeKnowledgeFile.vue +5 -2
  35. package/src/components/welcomeSuggest.vue +1 -1
  36. package/src/locales/cn.json +99 -0
  37. package/src/locales/en.json +99 -0
  38. package/src/main.js +19 -0
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <div id="tree">
3
3
  <div class="tree-header">
4
- <span class="cacel" @click="cancelBtn">取消</span>
5
- <span class="primary" @click="saveData">确认</span>
4
+ <span class="cacel" @click="cancelBtn">{{$t('dragonCommon.cancel')}}</span>
5
+ <span class="primary" @click="saveData">{{$t('dragonCommon.confirm')}}</span>
6
6
  </div>
7
7
  <div class="tree-input" v-if="setCascadeOption && setCascadeOption.length > 0">
8
8
  <el-input placeholder="请搜索" v-model="filterText">
@@ -31,7 +31,7 @@
31
31
  <!-- v-if="msgContent.totalCount > msgContent.knowledgeFileInfos.length" -->
32
32
 
33
33
  <div class="load_moreKnowledge" v-if="page < msgContent.totalPages" @click="loadMore">
34
- <span>查看更多</span>
34
+ <span>{{$t('dragonCommon.viewMore')}}</span>
35
35
  </div>
36
36
  </div>
37
37
  <previewPdf ref="previewPdf"
@@ -220,7 +220,10 @@ export default {
220
220
  close() {
221
221
  this.$emit('closePreviewDialog')
222
222
  },
223
- }
223
+ },
224
+ mounted() {
225
+ this.$i18n.locale = sessionStorage.getItem("systemLanguage") || 'cn';
226
+ },
224
227
  };
225
228
  </script>
226
229
 
@@ -4,7 +4,7 @@
4
4
  <div class="title_desc">{{ msg.content.problemRecommendationDesc }}</div>
5
5
  <div class="title_change_batch" v-if="msg.content.page && msg.content.problemRecommendationValue.length > msg.content.pageCount" @click="changeBatch">
6
6
  <i class="iconfont guoran-tongyichicun-huanyipi"></i>
7
- <span>换一批</span>
7
+ <span>{{$t('dragonCommon.refresh')}}</span>
8
8
  </div>
9
9
  </div>
10
10
  <div class="content">
@@ -0,0 +1,99 @@
1
+ {
2
+ "组件多语言使用说明": "在使用多语言配置文件时,需要在使用的项目中添加对应的配置,默认都配置在dragonCommon字段中,也可以看看有没有其他方式",
3
+ "dragonCommon": {
4
+ "download": "下载",
5
+ "smartSummary": "智能摘要",
6
+ "chat": "聊一聊",
7
+ "viewDetails": "查看详情",
8
+ "folderName": "文件夹名称",
9
+ "loading": "加载中...",
10
+ "Safaridownload": "下载地址已复制,请前往Safari浏览器访问下载",
11
+ "reduce": "缩小",
12
+ "zoom": "放大",
13
+ "selectScale": "请选择",
14
+ "previous": "上一段",
15
+ "next": "下一段",
16
+ "answersGeneratedByPre": "答案由",
17
+ "answersGeneratedByAfter": "段内容生成",
18
+ "scaleAuto": "自动缩放",
19
+ "scaleReality": "实际比例",
20
+ "firstParagraph": "当前已经是第一段了",
21
+ "lastParagraph": "当前已经是最后一段了",
22
+ "fileloadException": "文件加载异常",
23
+ "regenerate": "重新生成",
24
+ "generating": "生成中",
25
+ "close": "关闭",
26
+ "summaryGeneratedByAI": "AI为您总结生成了以下摘要",
27
+ "viewMore": "查看更多",
28
+ "from": "出自",
29
+ "viewOriginal": "查看原文",
30
+ "lastUpdateTime": "最后更新时间",
31
+ "owner": "所有者",
32
+ "enterprise": "所属企业",
33
+ "source": "文件来源",
34
+ "folder": "文件夹",
35
+ "personalknowledge": "个人知识",
36
+ "enterpriseknowledge": "企业知识",
37
+ "satisfaction": "满意",
38
+ "unsatisfied": "不满意",
39
+ "refresh": "换一批",
40
+ "AIrecommends": "AI为您推荐以下内容",
41
+ "youareconsulting": "您正在咨询",
42
+ "description": "描述",
43
+ "location": "位置",
44
+ "user": "使用者",
45
+ "department": "部门",
46
+ "manager": "管理者",
47
+ "uploadImgFile": "上传图片或附件",
48
+ "cancel": "取消",
49
+ "confirm": "确定",
50
+ "noMore": "没有更多了",
51
+ "establishConversationWith": "与",
52
+ "you": "您",
53
+ "bot": "机器人",
54
+ "transferTo": "您将会话转接给",
55
+ "transferFrom": "将会话转接给您",
56
+ "imService": "IM人工",
57
+ "botService": "机器人",
58
+ "willServeYou": "将为您服务",
59
+ "check": "查看",
60
+ "clickme": "点我",
61
+ "copyError": "无法复制到剪贴板!",
62
+ "copy": "复制",
63
+ "copySuccess": "已复制"
64
+ },
65
+ "common": {
66
+ "submit": "提交",
67
+ "inputPlaceholder": "请输入",
68
+ "selectDate": "选择日期",
69
+ "selectTime": "选择时间",
70
+ "selectDateTime": "选择日期时间",
71
+ "selectPlaceholder": "请选择",
72
+ "loadMore": "加载更多",
73
+ "submited": "已提交"
74
+ },
75
+ "formTemplate": {
76
+ "report": "报单人",
77
+ "feedbackDes": "反馈描述",
78
+ "orderDes": "工单描述",
79
+ "uploadType": "只能上传图片格式",
80
+ "uploadImageSize": "上传图片大小不能超过 8MB!",
81
+ "uploadVideoType": "只能上传视频格式",
82
+ "uploadVideoSize": "上传视频大小不能超过100MB!",
83
+ "uploadFileSize": "上传附件大小不能超过100MB!",
84
+ "onlyUpload": "仅支持上传",
85
+ "number": "个",
86
+ "textFlag": "必须要有文字",
87
+ "imageOrAttachment": "必须要有图片或附件",
88
+ "imageFlag": "必须要有图片",
89
+ "attachmentFlag": "必须要有附件",
90
+ "image": "图片",
91
+ "file": "附件",
92
+ "and": "和",
93
+ "required": "是必填的",
94
+ "uploading": "文件正在上传,请稍后",
95
+ "pleaseImprove": "请完善",
96
+ "feedbackDesRequired": "反馈描述是必填的",
97
+ "orderDesRequired": "问题描述是必填的"
98
+ }
99
+ }
@@ -0,0 +1,99 @@
1
+ {
2
+ "组件多语言使用说明": "在使用多语言配置文件时,需要在使用的项目中添加对应的配置,默认都配置在dragonCommon字段中,也可以看看有没有其他方式",
3
+ "dragonCommon": {
4
+ "download": "Download",
5
+ "smartSummary": "Smart Summary",
6
+ "chat": "Chat",
7
+ "viewDetails": "View Details",
8
+ "folderName": "Folder Name",
9
+ "loading": "Loading...",
10
+ "Safaridownload": "The download address has been copied, please go to Safari to access the download",
11
+ "reduce": "Reduce",
12
+ "zoom": "Zoom",
13
+ "selectScale": "Select Scale",
14
+ "previous": "Previous",
15
+ "next": "Next",
16
+ "answersGeneratedByPre": "Answers generated by ",
17
+ "answersGeneratedByAfter": " segments of content",
18
+ "scaleAuto": "Auto",
19
+ "scaleReality": "Reality",
20
+ "firstParagraph": "It's already the first paragraph",
21
+ "lastParagraph": "It's already the last paragraph",
22
+ "fileloadException": "File load exception",
23
+ "regenerate": "Regenerate",
24
+ "generating": "Generating",
25
+ "close": "Close",
26
+ "summaryGeneratedByAI": "AI has generated the following summary for you",
27
+ "viewMore": "View More",
28
+ "from": "From",
29
+ "viewOriginal": "View Original",
30
+ "lastUpdateTime": "Last Update Time",
31
+ "owner": "Owner",
32
+ "enterprise": "Enterprise",
33
+ "source": "Source",
34
+ "folder": "Folder",
35
+ "personalknowledge": "Personal Knowledge",
36
+ "enterpriseknowledge": "Enterprise Knowledge",
37
+ "satisfaction": "Satisfaction",
38
+ "unsatisfied": "Unsatisfied",
39
+ "refresh": "Refresh",
40
+ "AIrecommends": "AI recommends the following for you",
41
+ "youareconsulting": "You are consulting",
42
+ "description": "Description",
43
+ "location": "Location",
44
+ "user": "User",
45
+ "department": "Department",
46
+ "manager": "Manager",
47
+ "uploadImgFile": "Upload",
48
+ "cancel": "Cancel",
49
+ "confirm": "Confirm",
50
+ "noMore": "No more",
51
+ "establishConversationWith": "Establish conversation with",
52
+ "you": "You",
53
+ "bot": "Bot",
54
+ "transferTo": "You will transfer the conversation to",
55
+ "transferFrom": "will transfer the conversation to you",
56
+ "imService": "IM agent",
57
+ "botService": "Bot",
58
+ "willServeYou": "will serve you",
59
+ "check": "Check",
60
+ "clickme": "Click me",
61
+ "copyError": "Unable to copy to clipboard!",
62
+ "copy": "Copy",
63
+ "copySuccess": "Copied"
64
+ },
65
+ "common": {
66
+ "submit": "Submit",
67
+ "inputPlaceholder": "Please enter",
68
+ "selectDate": "Select Date",
69
+ "selectTime": "Select Time",
70
+ "selectDateTime": "Select Date Time",
71
+ "selectPlaceholder": "Please select",
72
+ "loadMore": "Load More",
73
+ "submited": "Submited"
74
+ },
75
+ "formTemplate": {
76
+ "report": "Reporter",
77
+ "feedbackDes": "Feedback Description",
78
+ "orderDes": "Work Order Description",
79
+ "uploadType": "Only upload image format",
80
+ "uploadImageSize": "Uploaded image size cannot exceed 8MB!",
81
+ "uploadVideoType": "Only upload video format",
82
+ "uploadVideoSize": "Uploaded video size cannot exceed 100MB!",
83
+ "uploadFileSize": "Uploaded attachment size cannot exceed 100MB!",
84
+ "onlyUpload": "Only support upload",
85
+ "number": "",
86
+ "textFlag": "must have text",
87
+ "imageOrAttachment": "must have image or attachment",
88
+ "imageFlag": "must have image",
89
+ "attachmentFlag": "must have attachment",
90
+ "image": "Image",
91
+ "file": "Attachment",
92
+ "and": "and",
93
+ "required": "is required",
94
+ "uploading": "File is uploading, please wait",
95
+ "pleaseImprove": "Please improve",
96
+ "feedbackDesRequired": "Feedback description is required",
97
+ "orderDesRequired": "Problem description is required"
98
+ }
99
+ }
package/src/main.js CHANGED
@@ -47,11 +47,30 @@ Viewer.setDefaults({
47
47
  Options: { "inline": true, "button": true, "navbar": true, "title": true, "toolbar": true, "tooltip": true, "movable": true, "zoomable": true, "rotatable": true, "scalable": true, "transition": true, "fullscreen": true, "keyboard": true, "url": "data-source" }
48
48
  })
49
49
 
50
+ import VueI18n from 'vue-i18n'; //多语言
50
51
 
52
+ // 导入多语言的 JSON 文件
53
+ import enLocale from './locales/en.json';
54
+ import cnLocale from './locales/cn.json';
55
+
56
+ Vue.use(VueI18n);
57
+
58
+ console.log("askbot-dragon: systemLanguage", sessionStorage.getItem("systemLanguage"));
59
+
60
+ // 创建 VueI18n 实例,并设置默认语言和多语言内容
61
+ const i18n = new VueI18n({
62
+ locale: sessionStorage.getItem("systemLanguage") || 'cn', // 默认语言
63
+ messages: {
64
+ en: enLocale, // 英文
65
+ cn: cnLocale, // 中文
66
+ // 其他语言...
67
+ }
68
+ });
51
69
 
52
70
  Vue.prototype.requestUrl = requestUrl;
53
71
  Vue.prototype.utils = utils;
54
72
 
55
73
  new Vue({
56
74
  render: h => h(App),
75
+ i18n
57
76
  }).$mount('#app')