askbot-dragon 1.6.48-beta → 1.6.50-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.
package/package.json
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
<!-- <text-message :text="text" @submitClick="submitClick"></text-message> -->
|
|
38
38
|
<answer-docknowledge :isAskLightning="2" :msg="answerDocknowledge"></answer-docknowledge>
|
|
39
|
+
<welcomeSuggest></welcomeSuggest>
|
|
39
40
|
<!-- <voice-component @closeVoice="closeVoice">
|
|
40
41
|
<div slot="voiceTip">
|
|
41
42
|
松开发送
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
</voice-component>-->
|
|
44
45
|
<!-- 点选 -->
|
|
45
46
|
<!-- <div v-html="htmlContainer"></div> -->
|
|
46
|
-
|
|
47
|
+
<answer-radio :msg="answerRadios"></answer-radio>
|
|
47
48
|
<!-- <ticket-message :content="updateTicetmessageObj"></ticket-message> -->
|
|
48
49
|
<!-- <ticket-message :content="contents"></ticket-message> -->
|
|
49
50
|
<!--
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
<welcome-llm-card v-else-if="item.type === 'welcome_llm_card'" :msgContent="item.content"></welcome-llm-card>
|
|
72
73
|
</div> -->
|
|
73
74
|
<!-- <answer-voice @stopOtherAudio="stopOtherAudio" ref="audioTagCell" :msg="answerVoiceObj1"></answer-voice> -->
|
|
74
|
-
|
|
75
|
+
|
|
75
76
|
<!-- <FileType :urls="urls" :color="black"></FileType>-->
|
|
76
77
|
<!-- <FileType :urls="urls" :color="black"></FileType>
|
|
77
78
|
<chat-content :messageList="messageList"></chat-content> -->
|
|
@@ -117,6 +118,7 @@ import AnswerVoice from "@/components/AnswerVoice";
|
|
|
117
118
|
import AnswerDocknowledge from "./AnswerDocknowledge.vue";
|
|
118
119
|
import WelcomeKnowledgeFile from "./welcomeKnowledgeFile";
|
|
119
120
|
import WelcomeLlmCard from "./welcomeLlmCard";
|
|
121
|
+
import welcomeSuggest from "./welcomeSuggest"
|
|
120
122
|
export default {
|
|
121
123
|
name: 'ConversationContainer',
|
|
122
124
|
components: {
|
|
@@ -145,7 +147,8 @@ export default {
|
|
|
145
147
|
// FileType,
|
|
146
148
|
// ChatContent,
|
|
147
149
|
AnswerDocknowledge,
|
|
148
|
-
MyEditor
|
|
150
|
+
MyEditor,
|
|
151
|
+
welcomeSuggest
|
|
149
152
|
},
|
|
150
153
|
props: {
|
|
151
154
|
messages: Array
|
|
@@ -85,6 +85,10 @@ export default {
|
|
|
85
85
|
activeKnowledgeId:{
|
|
86
86
|
type: String,
|
|
87
87
|
default: ''
|
|
88
|
+
},
|
|
89
|
+
bindCode:{
|
|
90
|
+
type: String,
|
|
91
|
+
default: ''
|
|
88
92
|
}
|
|
89
93
|
},
|
|
90
94
|
data () {
|
|
@@ -182,7 +186,8 @@ export default {
|
|
|
182
186
|
page: this.page,
|
|
183
187
|
lastDays: this.msgContent.lastDays,
|
|
184
188
|
pageSize: this.msgContent.pageSize,
|
|
185
|
-
limitCount: this.msgContent.limitCount
|
|
189
|
+
limitCount: this.msgContent.limitCount,
|
|
190
|
+
bindCode:this.bindCode
|
|
186
191
|
}
|
|
187
192
|
this.$http.post('/knowledge-api/knowledge/search/page', params).then(res => {
|
|
188
193
|
if (res.data && res.data.list && res.data.list.length != 0) {
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="welcome_suggest">
|
|
3
|
+
<div class="title">
|
|
4
|
+
<div class="title_desc">{{ msg.content.problemRecommendationDesc }}</div>
|
|
5
|
+
<div class="title_change_batch" v-if="msgSuggestList.length <= msg.content.pageCount" @click="changeBatch">
|
|
6
|
+
<i class="iconfont guoran-tongyichicun-huanyipi"></i>
|
|
7
|
+
<span>换一批</span>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="content">
|
|
11
|
+
<div
|
|
12
|
+
class="welcome_item"
|
|
13
|
+
v-for="(item,index) in suggestList"
|
|
14
|
+
:key="index"
|
|
15
|
+
@click="handleWelcome(item)"
|
|
16
|
+
>{{ item }}</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div class></div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
<script>
|
|
22
|
+
export default {
|
|
23
|
+
props: ["msg"],
|
|
24
|
+
data () {
|
|
25
|
+
return {
|
|
26
|
+
pageCount: 0,
|
|
27
|
+
suggestList: [],
|
|
28
|
+
msgSuggestList:[]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
mounted () {
|
|
32
|
+
this.changeBatch()
|
|
33
|
+
},
|
|
34
|
+
methods: {
|
|
35
|
+
changeBatch () {
|
|
36
|
+
let msgSuggestList = JSON.stringify(JSON.parse(this.msg.content.problemRecommendationValue))
|
|
37
|
+
this.suggestList = msgSuggestList.splice(this.pageCount * this.msg.content.pageCount, this.msg.content.pageCount)
|
|
38
|
+
if (this.pageCount == Math.ceil(this.msg.content.problemRecommendationValue.length / this.msg.content.pageCount)) {
|
|
39
|
+
this.pageCount = 0
|
|
40
|
+
} else {
|
|
41
|
+
this.pageCount++
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
handleWelcome (item) {
|
|
45
|
+
this.$emit('handleWelcome', item)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
</script>
|
|
50
|
+
<style lang="less" scoped>
|
|
51
|
+
.welcome_suggest {
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: auto;
|
|
54
|
+
.title {
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 28px;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
.title_desc {
|
|
61
|
+
flex: 1 0;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
}
|
|
66
|
+
.title_change_batch {
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
color: #366aff;
|
|
69
|
+
height: 28px;
|
|
70
|
+
width: 70px;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
font-size: 14px;
|
|
74
|
+
i {
|
|
75
|
+
margin-right: 5px;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.content {
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
flex-wrap: wrap;
|
|
83
|
+
margin-top: 8px;
|
|
84
|
+
.welcome_item {
|
|
85
|
+
padding: 3px 8px;
|
|
86
|
+
background: #EEF1FF;
|
|
87
|
+
color: #366aff;
|
|
88
|
+
margin-right: 5px;
|
|
89
|
+
margin-bottom: 5px;
|
|
90
|
+
border-radius: 28px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
</style>
|