Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
company_app
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
毛细亚
company_app
Commits
522a0f44
提交
522a0f44
authored
8月 26, 2025
作者:
毛细亚
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新代码
上级
ae981e76
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
72 行增加
和
7 行删除
+72
-7
warning.svg
src/assets/icon/svg/warning.svg
+2
-0
aiArgenChat.vue
src/views/components/aiChat/aiArgenChat.vue
+20
-7
noSummary.vue
src/views/components/aiChat/noSummary.vue
+50
-0
没有找到文件。
src/assets/icon/svg/warning.svg
0 → 100644
浏览文件 @
522a0f44
<svg
t=
"1756195887325"
class=
"icon"
viewBox=
"0 0 1034 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"7768"
width=
"200"
height=
"200"
><path
d=
"M1011.982 842.518 606.673 140.565c-49.575-85.822-130.595-85.822-180.157 0L21.205 842.518c-49.562 85.91-9.015 155.99 90.04 155.99l810.693 0C1020.997 998.507 1061.502 928.423 1011.982 842.518zM460.924 339.737c14.565-15.747 33.082-23.622 55.665-23.622 22.595 0 41.095 7.792 55.675 23.307 14.485 15.55 21.725 34.997 21.725 58.382 0 20.12-30.235 168.07-40.32 275.704l-72.825 0c-8.845-107.635-41.652-255.584-41.652-275.704C439.194 374.774 446.446 355.407 460.924 339.737zM571.244 851.538c-15.32 14.92-33.55 22.355-54.65 22.355-21.095 0-39.33-7.435-54.647-22.355-15.275-14.885-22.867-32.915-22.867-54.09 0-21.065 7.592-39.29 22.867-54.565 15.317-15.28 33.552-22.92 54.647-22.92 21.1 0 39.33 7.64 54.65 22.92 15.265 15.275 22.875 33.5 22.875 54.565C594.119 818.623 586.509 836.653 571.244 851.538z"
p-id=
"7769"
></path></svg>
\ No newline at end of file
src/views/components/aiChat/aiArgenChat.vue
浏览文件 @
522a0f44
<
template
>
<div
class=
"AiLibrary"
>
<div
class=
"aiLibraryContent"
v-if=
"knowledge_search_list.length > 2"
>
<div
class=
"aiLibraryHeader"
>
<div
class=
"aiLibraryHeader_content columnFlex"
>
<div
class=
"rowFlex rowCenter spaceBetween"
>
...
...
@@ -51,12 +52,13 @@
:style=
"i.send_type == 1 ? 'margin-right:10px;' : 'margin-left:10px;'"
>
<p
class=
"time"
:style=
"i.send_type == 1 ? 'text-align: right;' : ' '"
>
{{
i
.
create_time
}}
<el-popover
v-if=
"i._id && i.quote_list.length > 0"
placement=
"top"
width=
"300
"
trigger=
"click"
>
<el-popover
v-if=
"i._id && i.quote_list.length > 0"
placement=
"top
"
width=
"300"
trigger=
"click"
>
<div
class=
"comeIngText"
style=
"max-height:500px;overflow:auto"
>
<div
v-for=
"(item, index) in i.quote_list"
:key=
"index"
style=
"margin-bottom:15px;"
>
<span
style=
"color:#000;font-weight:bold"
>
来源
{{
index
+
1
}}
:
</span>
<span
style=
"color:#000;font-weight:bold"
>
来源
{{
index
+
1
}}
:
</span>
<p>
问题:
{{
item
.
question
}}
</p>
<p>
答案:
{{
item
.
answer
}}
</p>
</div>
...
...
@@ -95,12 +97,12 @@
<span
v-if=
"!i.loading"
style=
"color:#87909c;font-size:12px;margin-right:5px;"
>
{{
i
.
response_time
}}
ms
</span>
<svg-icon
v-if=
"i.like_status == 0"
class=
"copy likeIcon"
icon-class=
"like
"
@
click
.
stop=
"likeAnswer(i, 1, index)"
/>
<svg-icon
v-if=
"i.like_status == 0"
class=
"copy likeIcon
"
icon-class=
"like"
@
click
.
stop=
"likeAnswer(i, 1, index)"
/>
<svg-icon
v-else-if=
"i.like_status == 1"
class=
"copy likeIcon"
icon-class=
"likeActive"
/>
<svg-icon
v-if=
"i.like_status == 0"
class=
"copy likeIcon"
icon-class=
"hate
"
@
click
.
stop=
"likeAnswer(i, 2, index)"
/>
<svg-icon
v-if=
"i.like_status == 0"
class=
"copy likeIcon
"
icon-class=
"hate"
@
click
.
stop=
"likeAnswer(i, 2, index)"
/>
<svg-icon
v-else-if=
"i.like_status == 2"
class=
"copy likeIcon"
icon-class=
"hateActive"
/>
<i
class=
"el-icon-refresh-right copy likeIcon"
...
...
@@ -131,14 +133,20 @@
</div>
</el-dialog>
</div>
<NoSummaryContent
v-else
/>
</div>
</
template
>
<
script
>
import
{
mapState
}
from
'vuex'
import
Clipboard
from
'clipboard'
import
debounce
from
'@/directive/debounce/index'
import
NoSummaryContent
from
'./noSummary.vue'
import
{
corp_beta_question_config
,
corp_beta_question_session_clearTag
,
corp_beta_question_log_chat
,
corp_beta_question_log_index
,
answerComment
,
welcomemsg
,
retry
}
from
'@/api/aiChat'
export
default
{
name
:
'AiLibrary'
,
components
:
{
NoSummaryContent
},
directives
:
{
debounce
,
},
...
...
@@ -466,6 +474,11 @@ export default {
padding
:
10px
;
margin-top
:
-20px
;
.aiLibraryContent
{
width
:
100%
;
height
:
100%
;
}
.AiChatList
{
width
:
100%
;
height
:
calc
(
100%
-
80px
);
...
...
src/views/components/aiChat/noSummary.vue
0 → 100644
浏览文件 @
522a0f44
<
template
>
<div
class=
"noSummaryContent"
>
<div
class=
"noContent"
>
<div
class=
"noContent-icon"
>
<svg-icon
icon-class=
"warning"
/>
</div>
<div
class=
"noContent-text"
>
<span>
当前客服号知识库配置异常 请联系管理员处理
</span>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'NoSummaryContent'
}
</
script
>
<
style
lang=
"scss"
scoped
>
.noSummaryContent
{
width
:
100%
;
height
:
100%
;
.noContent
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
.noContent-icon
{
color
:
#FF7D00
;
font-size
:
40px
;
}
.noContent-text
{
font-family
:
PingFang
SC
,
PingFang
SC
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#4E5969
;
text-align
:
center
;
font-style
:
normal
;
text-transform
:
none
;
}
}
}
</
style
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论