mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复团队成员勾选管理同时勾选查看(#1664)
This commit is contained in:
parent
b40c0999d3
commit
d4f9ac9f34
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue