askbot-dragon 1.6.26 → 1.6.27
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
CHANGED
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
<answer-dissatisfaction :msg="answerDiss"></answer-dissatisfaction>
|
|
65
65
|
<feed-back :feedBack="feedBack"></feed-back>
|
|
66
66
|
<voice-compontent></voice-compontent> -->
|
|
67
|
-
<ai-guide :aiGuide="ActionAiGuideObj"></ai-guide>
|
|
67
|
+
<!-- <ai-guide :aiGuide="ActionAiGuideObj"></ai-guide> -->
|
|
68
68
|
<!-- <answer-voice :msg="answerVoiceObj"></answer-voice> -->
|
|
69
69
|
<!-- <answer-voice :msg="answerVoiceObj"></answer-voice> -->
|
|
70
70
|
<!-- <div v-for="(item,index) in processAction" :key="index">
|
|
@@ -10537,7 +10537,7 @@ export default {
|
|
|
10537
10537
|
}
|
|
10538
10538
|
}
|
|
10539
10539
|
],
|
|
10540
|
-
inLoading:
|
|
10540
|
+
inLoading: false,
|
|
10541
10541
|
dataNote: 0,
|
|
10542
10542
|
timer: null,
|
|
10543
10543
|
finished: false,
|
|
@@ -10822,9 +10822,9 @@ export default {
|
|
|
10822
10822
|
console.debug('this.dataNote', this.dataNote)
|
|
10823
10823
|
}, 1000)
|
|
10824
10824
|
|
|
10825
|
-
setTimeout(() => {
|
|
10826
|
-
|
|
10827
|
-
}, 2000)
|
|
10825
|
+
// setTimeout(() => {
|
|
10826
|
+
// this.inLoading = true
|
|
10827
|
+
// }, 2000)
|
|
10828
10828
|
setTimeout(() => {
|
|
10829
10829
|
this.finished = true
|
|
10830
10830
|
this.dataNote = 10
|
|
@@ -8,9 +8,13 @@
|
|
|
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)">
|
|
11
|
-
<el-tooltip :disabled="!isMobile" class="item" effect="dark" :content="$t('dragonCommon.clickme')" placement="top">
|
|
11
|
+
<!-- <el-tooltip :disabled="!isMobile" class="item" effect="dark" :content="$t('dragonCommon.clickme')" placement="top">
|
|
12
12
|
<span class="options-item-name"> {{ getFilteredName(option.name) }}</span>
|
|
13
|
-
</el-tooltip>
|
|
13
|
+
</el-tooltip> -->
|
|
14
|
+
<div class="tooltip-wrapper">
|
|
15
|
+
<span class="tooltip-text options-item-name"> {{ getFilteredName(option.name) }}</span>
|
|
16
|
+
<span v-if="!isMobile" class="tooltip-content">{{$t('dragonCommon.clickme')}}</span>
|
|
17
|
+
</div>
|
|
14
18
|
<i class="arsenal_icon arsenalangle-right-solid"></i>
|
|
15
19
|
</div>
|
|
16
20
|
</div>
|
|
@@ -104,7 +108,49 @@ export default {
|
|
|
104
108
|
|
|
105
109
|
}
|
|
106
110
|
</script>
|
|
107
|
-
|
|
111
|
+
<style lang="less">
|
|
112
|
+
/* 包裹元素,相对定位,用于定位提示框 */
|
|
113
|
+
.tooltip-wrapper {
|
|
114
|
+
position: relative;
|
|
115
|
+
display: inline-block;
|
|
116
|
+
}
|
|
117
|
+
/* 实际要显示的文本内容 */
|
|
118
|
+
/* 提示框样式 */
|
|
119
|
+
.tooltip-content {
|
|
120
|
+
visibility: hidden;
|
|
121
|
+
background-color: #333;
|
|
122
|
+
color: white;
|
|
123
|
+
text-align: center;
|
|
124
|
+
border-radius: 6px;
|
|
125
|
+
padding: 5px 10px;
|
|
126
|
+
position: absolute;
|
|
127
|
+
z-index: 1;
|
|
128
|
+
bottom: 100%;
|
|
129
|
+
left: 50%;
|
|
130
|
+
transform: translateX(-50%);
|
|
131
|
+
white-space: nowrap;
|
|
132
|
+
opacity: 0;
|
|
133
|
+
transition: opacity 0.3s;
|
|
134
|
+
}
|
|
135
|
+
/* 提示框下方的小三角样式(使用伪元素实现) */
|
|
136
|
+
.tooltip-content::after {
|
|
137
|
+
content: "";
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: 100%;
|
|
140
|
+
left: 50%;
|
|
141
|
+
margin-left: -5px;
|
|
142
|
+
border-width: 5px;
|
|
143
|
+
border-style: solid;
|
|
144
|
+
border-color: #333 transparent transparent transparent;
|
|
145
|
+
}
|
|
146
|
+
/* 鼠标悬浮在包裹元素上时,显示提示框 */
|
|
147
|
+
.tooltip-wrapper:hover{
|
|
148
|
+
.tooltip-content {
|
|
149
|
+
visibility: visible !important;
|
|
150
|
+
opacity: 0.8;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
</style>
|
|
108
154
|
<style scoped lang="less">
|
|
109
155
|
#answer-radio {
|
|
110
156
|
.switch-page {
|
|
@@ -875,7 +875,13 @@ export default {
|
|
|
875
875
|
default () {
|
|
876
876
|
return ""
|
|
877
877
|
}
|
|
878
|
-
}
|
|
878
|
+
},
|
|
879
|
+
isCustomerService: {
|
|
880
|
+
type: Boolean,
|
|
881
|
+
default () {
|
|
882
|
+
return false;
|
|
883
|
+
}
|
|
884
|
+
},
|
|
879
885
|
},
|
|
880
886
|
computed: {
|
|
881
887
|
acceptType: function () {
|
|
@@ -2006,6 +2012,10 @@ export default {
|
|
|
2006
2012
|
},
|
|
2007
2013
|
//提交按钮事件
|
|
2008
2014
|
submitClick () {
|
|
2015
|
+
if(this.isCustomerService) {
|
|
2016
|
+
this.$message.warning('当前为人工客服模式,暂时无法提交')
|
|
2017
|
+
return
|
|
2018
|
+
}
|
|
2009
2019
|
if (this.uploadImgQueue || this.attachmentList.some(arrach => { return !arrach.url })) {
|
|
2010
2020
|
this.$message.warning('文件正在上传,请稍后')
|
|
2011
2021
|
return
|
package/src/locales/cn.json
CHANGED
|
@@ -1,62 +1,96 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
+
},
|
|
62
|
+
"common": {
|
|
63
|
+
"submit": "提交",
|
|
64
|
+
"inputPlaceholder": "请输入",
|
|
65
|
+
"selectDate": "选择日期",
|
|
66
|
+
"selectTime": "选择时间",
|
|
67
|
+
"selectDateTime": "选择日期时间",
|
|
68
|
+
"selectPlaceholder": "请选择",
|
|
69
|
+
"loadMore": "加载更多",
|
|
70
|
+
"submited": "已提交"
|
|
71
|
+
},
|
|
72
|
+
"formTemplate": {
|
|
73
|
+
"report": "报单人",
|
|
74
|
+
"feedbackDes": "反馈描述",
|
|
75
|
+
"orderDes": "工单描述",
|
|
76
|
+
"uploadType": "只能上传图片格式",
|
|
77
|
+
"uploadImageSize": "上传图片大小不能超过 8MB!",
|
|
78
|
+
"uploadVideoType": "只能上传视频格式",
|
|
79
|
+
"uploadVideoSize": "上传视频大小不能超过100MB!",
|
|
80
|
+
"uploadFileSize": "上传附件大小不能超过100MB!",
|
|
81
|
+
"onlyUpload": "仅支持上传",
|
|
82
|
+
"number": "个",
|
|
83
|
+
"textFlag": "必须要有文字",
|
|
84
|
+
"imageOrAttachment": "必须要有图片或附件",
|
|
85
|
+
"imageFlag": "必须要有图片",
|
|
86
|
+
"attachmentFlag": "必须要有附件",
|
|
87
|
+
"image": "图片",
|
|
88
|
+
"file": "附件",
|
|
89
|
+
"and": "和",
|
|
90
|
+
"required": "是必填的",
|
|
91
|
+
"uploading": "文件正在上传,请稍后",
|
|
92
|
+
"pleaseImprove": "请完善",
|
|
93
|
+
"feedbackDesRequired": "反馈描述是必填的",
|
|
94
|
+
"orderDesRequired": "问题描述是必填的"
|
|
95
|
+
}
|
|
62
96
|
}
|
package/src/locales/en.json
CHANGED
|
@@ -1,62 +1,96 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
+
},
|
|
62
|
+
"common": {
|
|
63
|
+
"submit": "Submit",
|
|
64
|
+
"inputPlaceholder": "Please enter",
|
|
65
|
+
"selectDate": "Select Date",
|
|
66
|
+
"selectTime": "Select Time",
|
|
67
|
+
"selectDateTime": "Select Date Time",
|
|
68
|
+
"selectPlaceholder": "Please select",
|
|
69
|
+
"loadMore": "Load More",
|
|
70
|
+
"submited": "Submited"
|
|
71
|
+
},
|
|
72
|
+
"formTemplate": {
|
|
73
|
+
"report": "Reporter",
|
|
74
|
+
"feedbackDes": "Feedback Description",
|
|
75
|
+
"orderDes": "Work Order Description",
|
|
76
|
+
"uploadType": "Only upload image format",
|
|
77
|
+
"uploadImageSize": "Uploaded image size cannot exceed 8MB!",
|
|
78
|
+
"uploadVideoType": "Only upload video format",
|
|
79
|
+
"uploadVideoSize": "Uploaded video size cannot exceed 100MB!",
|
|
80
|
+
"uploadFileSize": "Uploaded attachment size cannot exceed 100MB!",
|
|
81
|
+
"onlyUpload": "Only support upload",
|
|
82
|
+
"number": "",
|
|
83
|
+
"textFlag": "must have text",
|
|
84
|
+
"imageOrAttachment": "must have image or attachment",
|
|
85
|
+
"imageFlag": "must have image",
|
|
86
|
+
"attachmentFlag": "must have attachment",
|
|
87
|
+
"image": "Image",
|
|
88
|
+
"file": "Attachment",
|
|
89
|
+
"and": "and",
|
|
90
|
+
"required": "is required",
|
|
91
|
+
"uploading": "File is uploading, please wait",
|
|
92
|
+
"pleaseImprove": "Please improve",
|
|
93
|
+
"feedbackDesRequired": "Feedback description is required",
|
|
94
|
+
"orderDesRequired": "Problem description is required"
|
|
95
|
+
}
|
|
62
96
|
}
|