feat(ai-chat): 实现案例专家功能入口权限控制及消息展示优化- 修改AI聊天接口地址为本地开发环境地址

- 新增showCaseAiEntrance接口用于控制案例专家功能入口显示
- 优化消息组件中的案例引用展示逻辑,支持展开/收起功能
- 增加案例引用的上传时间、作者机构等信息展示
- 实现打字机效果的文本逐字显示功能
- 优化AI消息响应处理逻辑,支持think标签内容解析
This commit is contained in:
陈昱达
2025-09-28 11:28:36 +08:00
parent 483b57f667
commit 3cef730e61
6 changed files with 278 additions and 47 deletions

View File

@@ -310,7 +310,7 @@
<div class="xcontent2-minor">
<div id="fixd-box">
<div class="AI-case" style="position: relative">
<div class="AI-case" style="position: relative" v-if="showAiCase ">
<img src="../../../../public/images/case-logo.png" alt="">
<span @click="getAICase" style="position: absolute; top: 65px;left: 15px;z-index: 1;width: 40%;height: 30px;"></span>
</div>
@@ -501,6 +501,8 @@ import apiType from "@/api/modules/type.js";
import { cutFullName } from "@/utils/tools.js";
import apiPlace from "@/api/phase2/place.js"
import AICall from '@/views/portal/case/AICall.vue'
import { showCaseAiEntrance } from '@/api/boe/aiChat.js'
export default {
name: "case",
components: {
@@ -514,6 +516,7 @@ export default {
},
data() {
return {
showAiCase:false,
showAICall:false,
timeoutId: null,
isTimeData: false,
@@ -787,6 +790,7 @@ export default {
},
mounted() {
let $this = this;
this.getShowAiCase()
// if(this.speciData.length==0){
// this.specialized();
// }
@@ -871,6 +875,14 @@ export default {
},
methods: {
// 是否展示入口
getShowAiCase(){
showCaseAiEntrance().then(res=>{
this.showAiCase = res.data
})
},
allRequests() {
window.addEventListener(
"scroll",