wujingjing
2025-04-07 457cc6cf166d3b6c22be4f78c1db8802a7fbb4c7
src/views/project/ch/home/component/waterRight/top.vue
@@ -1,23 +1,10 @@
<template>
   <div class="flex items-center">
   <div class="flex items-center mb-8">
      <img src="/static/images/logo/logoWithNoName.png" alt="logo" class="layout-logo-medium-img" />
      <p class="set-waterTitle"><strong>WI 水务智能管家</strong>智慧水务助手</p>
      <p class="set-waterTitle"><strong>WI水务智能平台</strong>智慧水务数据挖掘者</p>
   </div>
   <div class="flex items-center pc-roleList">
      <!-- <div v-for="(item, index) in llmList" :key="item.logicId" class="flex items-center pl-6" @click="handleClick(item)">
         <div class="modelItem cursor-pointer flex items-center" :class="{ modelItemActive: item.logicId === activeLLMId }">
            <img :src="item.icon" alt="icon" class="set-icon box-border" />
            <span>{{ item.logicTitle }}</span>
         </div>
      </div>
      <div class="flex items-center cursor-pointer pl-5">
         <div class="modelItem cursor-pointer flex items-center">
            <img src="/static/images/wave/More.png" alt="icon" class="set-icon-more box-border" />
            <span>更多</span>
         </div>
      </div> -->
   </div>
   <PlayBar v-model="inputValue" @send-click="sendClick" :is-home="true" />
   <!-- <div class="flex items-center pc-roleList"></div> -->
   <PlayBar style="width: 760px" v-model="inputValue" @send-click="sendClick" :is-home="true" />
</template>
<script setup lang="ts">
@@ -26,19 +13,15 @@
import { GetLLMList, setHistoryGroupTitle } from '/@/api/ai/chat';
import PlayBar from '/@/components/chat/components/playBar/PlayBar.vue';
import router from '/@/router';
import { activeChatRoom, activeLLMId, activeSectionAId } from '/@/stores/chatRoom';
import { activeChatRoom, activeLLMId } from '/@/stores/chatRoom';
import { handleNormalAuth } from '/@/utils/request';
import logo from './logo.png'
const emits = defineEmits(['sendClick']);
const inputValue = ref('新建对话开始');
const inputValue = ref('');
const sendClick = async (cb) => {
   if (!inputValue.value.trim()) return;
   if (!activeSectionAId.value) {
      ElMessage.warning('请选择应用场景');
      return;
   }
   if (!handleNormalAuth()) {
      return;
   }