Browse Source

aichat升级

master
xueyinfei 3 days ago
parent
commit
f6c94b3ebb
  1. 4
      vue-fastapi-frontend/src/views/aichat/Interrupt.vue
  2. 2
      vue-fastapi-frontend/src/views/aichat/MdRenderer.vue
  3. 8
      vue-fastapi-frontend/src/views/aichat/aichat.vue

4
vue-fastapi-frontend/src/views/aichat/Interrupt.vue

@ -15,7 +15,7 @@
<el-checkbox-group v-if="item.d_type === 'enum' && item.ct_type === 'checkboxGroup'" v-model="formData[item.name]" :disabled="item.read_only || !isLastChat">
<el-checkbox v-for="checkItem in item.options" :label="checkItem" :value="checkItem" />
</el-checkbox-group>
<el-select :teleported="false" v-if="item.d_type === 'enum' && item.ct_type === 'select'" v-model="formData[item.name]" :disabled="item.read_only || !isLastChat" :filterable="item.allow_create" :allow-create="item.allow_create">
<el-select :teleported="false" v-if="item.d_type === 'enum' && item.ct_type === 'select'" v-model="formData[item.name]" :disabled="item.read_only || !isLastChat" :filterable="item.allow_create" :allow-create="item.allow_create">
<el-option
v-for="selectItem in item.options"
:key="selectItem"
@ -23,7 +23,7 @@
:value="selectItem"
/>
</el-select>
<el-select :teleported="false" v-if="item.d_type === 'enum' && item.ct_type === 'multiselect'" multiple v-model="formData[item.name]" :disabled="item.read_only || !isLastChat" :filterable="item.allow_create" :allow-create="item.allow_create">
<el-select :key="item.name" :teleported="false" v-if="item.d_type === 'enum' && item.ct_type === 'multiselect'" multiple v-model="formData[item.name]" :disabled="item.read_only || !isLastChat" :filterable="item.allow_create" :allow-create="item.allow_create">
<el-option
v-for="selectItem in item.options"
:key="selectItem"

2
vue-fastapi-frontend/src/views/aichat/MdRenderer.vue

@ -16,7 +16,7 @@
</el-button>
</div>
<div v-if="item.type === 'docs'" style="width: 100%;margin-top: 5px">
<div v-for="doc in item.docs">
<div v-for="doc in item.content">
<el-link type="primary" @click="downLoadFile(doc)" :underline="false">{{ doc.file_name }}</el-link>
</div>
</div>

8
vue-fastapi-frontend/src/views/aichat/aichat.vue

@ -30,7 +30,7 @@
</div>
<!-- 回答 -->
<div v-if="item.type === 'answer'" class="item-content mb-16 lighter" style="font-weight: 400">
<el-popconfirm popper-style="z-index:3000" title="确定要回到这一步吗?" @confirm="confirmReturn(item,index)">
<el-popconfirm v-if="index < chatList.length-1" popper-style="z-index:3000" title="确定要回到这一步吗?" @confirm="confirmReturn(item,index)">
<template #reference>
<div class="returnToHere" style="margin-top: 5px;margin-bottom: 5px">
<i class="ri-bookmark-2-fill returnToHereIcon"></i>
@ -41,6 +41,12 @@
</div>
</template>
</el-popconfirm>
<div v-else class="returnToHere" style="margin-top: 5px;margin-bottom: 5px">
<i class="ri-bookmark-2-fill returnToHereIcon"></i>
<el-divider class="returnToHereDivider">
<!-- <span class="divider-text">回到这里</span>-->
</el-divider>
</div>
<!-- <div class="avatar">-->
<!-- <img src="@/assets/logo/logo2.png" height="30px" />-->
<!-- </div>-->

Loading…
Cancel
Save