fix: 修复团队成员勾选管理同时勾选查看(#1664)
This commit is contained in:
parent
b40c0999d3
commit
d4f9ac9f34
@ -36,7 +36,8 @@
|
|||||||
<OperationButton
|
<OperationButton
|
||||||
:type="type"
|
:type="type"
|
||||||
:application="application"
|
:application="application"
|
||||||
:chat-record="chatRecord"
|
:chatRecord="chatRecord"
|
||||||
|
@update:chatRecord="(event: any) => emit('update:chatRecord', event)"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:start-chat="startChat"
|
:start-chat="startChat"
|
||||||
:stop-chat="stopChat"
|
:stop-chat="stopChat"
|
||||||
@ -59,6 +60,8 @@ const props = defineProps<{
|
|||||||
type: 'log' | 'ai-chat' | 'debug-ai-chat'
|
type: 'log' | 'ai-chat' | 'debug-ai-chat'
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
|
const emit = defineEmits(['update:chatRecord'])
|
||||||
|
|
||||||
const chatMessage = (question: string, type: 'old' | 'new', other_params_data?: any) => {
|
const chatMessage = (question: string, type: 'old' | 'new', other_params_data?: any) => {
|
||||||
if (type === 'old') {
|
if (type === 'old') {
|
||||||
add_answer_text_list(props.chatRecord.answer_text_list)
|
add_answer_text_list(props.chatRecord.answer_text_list)
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
<LogOperationButton
|
<LogOperationButton
|
||||||
v-if="type === 'log'"
|
v-if="type === 'log'"
|
||||||
v-bind:data="chatRecord"
|
v-bind:data="chatRecord"
|
||||||
|
@update:data="(event: any) => emit('update:chatRecord', event)"
|
||||||
:applicationId="application.id"
|
:applicationId="application.id"
|
||||||
:tts="application.tts_model_enable"
|
:tts="application.tts_model_enable"
|
||||||
:tts_type="application.tts_type"
|
:tts_type="application.tts_type"
|
||||||
@ -54,5 +55,6 @@ defineProps<{
|
|||||||
stopChat: (chat_record: any) => void
|
stopChat: (chat_record: any) => void
|
||||||
regenerationChart: (chat_record: any) => void
|
regenerationChart: (chat_record: any) => void
|
||||||
}>()
|
}>()
|
||||||
|
const emit = defineEmits(['update:chatRecord'])
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped></style>
|
<style lang="scss" scoped></style>
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<AnswerContent
|
<AnswerContent
|
||||||
:application="applicationDetails"
|
:application="applicationDetails"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:chat-record="item"
|
v-model:chat-record="chatList[index]"
|
||||||
:type="type"
|
:type="type"
|
||||||
:send-message="sendMessage"
|
:send-message="sendMessage"
|
||||||
:chat-management="ChatManagement"
|
:chat-management="ChatManagement"
|
||||||
|
|||||||
@ -144,6 +144,9 @@ function checkedOperateChange(Name: string | number, row: any, e: boolean) {
|
|||||||
props.data.map((item: any) => {
|
props.data.map((item: any) => {
|
||||||
if (item.id === row.id) {
|
if (item.id === row.id) {
|
||||||
item.operate[Name] = e
|
item.operate[Name] = e
|
||||||
|
if (Name === TeamEnum.MANAGE && e) {
|
||||||
|
item.operate[TeamEnum.USE] = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user