fix: 修复团队成员勾选管理同时勾选查看(#1664)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
wangdan-fit2cloud 2024-12-03 14:44:35 +08:00 committed by wangdan-fit2cloud
parent b40c0999d3
commit d4f9ac9f34
4 changed files with 10 additions and 2 deletions

View File

@ -36,7 +36,8 @@
<OperationButton
:type="type"
:application="application"
:chat-record="chatRecord"
:chatRecord="chatRecord"
@update:chatRecord="(event: any) => emit('update:chatRecord', event)"
:loading="loading"
:start-chat="startChat"
:stop-chat="stopChat"
@ -59,6 +60,8 @@ const props = defineProps<{
type: 'log' | 'ai-chat' | 'debug-ai-chat'
}>()
const emit = defineEmits(['update:chatRecord'])
const chatMessage = (question: string, type: 'old' | 'new', other_params_data?: any) => {
if (type === 'old') {
add_answer_text_list(props.chatRecord.answer_text_list)

View File

@ -3,6 +3,7 @@
<LogOperationButton
v-if="type === 'log'"
v-bind:data="chatRecord"
@update:data="(event: any) => emit('update:chatRecord', event)"
:applicationId="application.id"
:tts="application.tts_model_enable"
:tts_type="application.tts_type"
@ -54,5 +55,6 @@ defineProps<{
stopChat: (chat_record: any) => void
regenerationChart: (chat_record: any) => void
}>()
const emit = defineEmits(['update:chatRecord'])
</script>
<style lang="scss" scoped></style>

View File

@ -23,7 +23,7 @@
<AnswerContent
:application="applicationDetails"
:loading="loading"
:chat-record="item"
v-model:chat-record="chatList[index]"
:type="type"
:send-message="sendMessage"
:chat-management="ChatManagement"

View File

@ -144,6 +144,9 @@ function checkedOperateChange(Name: string | number, row: any, e: boolean) {
props.data.map((item: any) => {
if (item.id === row.id) {
item.operate[Name] = e
if (Name === TeamEnum.MANAGE && e) {
item.operate[TeamEnum.USE] = true
}
}
})
}