Jelajahi Sumber

Merge branch 'master' of http://8.136.199.33:3000/eta_gn_front/eta_front

ldong 1 Minggu lalu
induk
melakukan
0153f5aa68
1 mengubah file dengan 0 tambahan dan 59 penghapusan
  1. 0 59
      src/views/operation_manage/AIQA/AIQA.vue

+ 0 - 59
src/views/operation_manage/AIQA/AIQA.vue

@@ -30,17 +30,6 @@
                     <p>{{activeWindowId<=0?$t('ToolBox.AIQuestion.new_window'):activeWindow.TopicName||''}}</p>
                     <span>{{activeWindowId<=0?$t('ToolBox.AIQuestion.AI_use_intro'):`${historyList.length||0} messages`}}</span>
                 </div>
-                <div class="select-box">
-                    <el-select v-model="model" :class="{'hint':showHint}" :disabled="isTyping||(windowContentLoading&&windowContentLoading.visible)" ref="modelSelect" 
-                        @click.native="selectClick"
-                        @change="changeModel">
-                        <el-option v-for="item in modelList" :key="item.label"
-                            :label="item.label"
-                            :value="item.key">
-                            <span style="float:left">{{item.label}}</span>
-                        </el-option>
-                    </el-select>
-                </div>
             </div>
             <!-- 仅这一部分滚动 -->
             <div class="window-content-wrap hidden-scrollbar">
@@ -101,19 +90,6 @@ export default {
             inputText:'',
             model:'Kimi',//当前选择的模型
             modelOldValue:'',
-            modelList:[
-                {
-                    label:'GPT',
-                    key:'GPT-4 Turbo',
-                    icon:require('@/assets/img/icons/gpt-4-turbo.png'),
-                },
-                {
-                    label:'Kimi',
-                    key:'Kimi',
-                    icon:require('@/assets/img/icons/gpt-4-turbo.png'),
-                },
-                
-            ],//模型列表
             showHint:false,//选择模型提示
             isTyping:false,//是否处于打字动画中
             windowContentLoading:null,
@@ -131,10 +107,6 @@ export default {
         }
     },
     computed:{
-        modelIcon(){
-            const modelItem = this.modelList.find(i=>i.label===this.model)
-            return modelItem?modelItem.icon:''
-        }
     },
     methods: {
         //改变活跃窗口
@@ -275,38 +247,7 @@ export default {
                 this.changeActiveWindow({AiChatTopicId})
             })
         },
-        //选择模型
-        changeModel(value){
-            //非新建窗口时,模型之间切换需弹窗提示
-            if(this.activeWindowId!==0&&value!==''){
-                //弹窗提示:切换模型
-                this.$confirm(this.$t('ToolBox.AIQuestion.operation_des'), this.$t('ToolBox.AIQuestion.operation_tips'), {
-                    type: "warning"
-                }).then(()=>{
-                    //将相关值置空
-                    this.activeWindowId=0
-                    this.activeWindow=null
-                    this.historyList=[]
-                    this.aiFileIds=[]
-                    this.isTyping = false
-                    this.$message.success('切换模型成功')
-                }).catch(()=>{
-                    this.model= this.modelOldValue
-                    this.modelOldValue=''
-                })
-
-            }
-            //新建窗口时,若选择了模型,则移除hint效果
-            if(this.activeWindowId===0&&value!==''){
-                this.showHint=false
-            }
-        },
         //点击模型选择框
-        selectClick(){
-            if(this.isTyping){
-                this.$message.warning('请等待回答完成')
-            }
-        },
         //发送消息
         handleSendMsg(e){
             e.preventDefault()