Skip to content

Commit d4f9ac9

Browse files
fix: 修复团队成员勾选管理同时勾选查看(#1664)
1 parent b40c099 commit d4f9ac9

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

ui/src/components/ai-chat/component/answer-content/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
<OperationButton
3737
:type="type"
3838
:application="application"
39-
:chat-record="chatRecord"
39+
:chatRecord="chatRecord"
40+
@update:chatRecord="(event: any) => emit('update:chatRecord', event)"
4041
:loading="loading"
4142
:start-chat="startChat"
4243
:stop-chat="stopChat"
@@ -59,6 +60,8 @@ const props = defineProps<{
5960
type: 'log' | 'ai-chat' | 'debug-ai-chat'
6061
}>()
6162
63+
const emit = defineEmits(['update:chatRecord'])
64+
6265
const chatMessage = (question: string, type: 'old' | 'new', other_params_data?: any) => {
6366
if (type === 'old') {
6467
add_answer_text_list(props.chatRecord.answer_text_list)

ui/src/components/ai-chat/component/operation-button/index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<LogOperationButton
44
v-if="type === 'log'"
55
v-bind:data="chatRecord"
6+
@update:data="(event: any) => emit('update:chatRecord', event)"
67
:applicationId="application.id"
78
:tts="application.tts_model_enable"
89
:tts_type="application.tts_type"
@@ -54,5 +55,6 @@ defineProps<{
5455
stopChat: (chat_record: any) => void
5556
regenerationChart: (chat_record: any) => void
5657
}>()
58+
const emit = defineEmits(['update:chatRecord'])
5759
</script>
5860
<style lang="scss" scoped></style>

ui/src/components/ai-chat/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<AnswerContent
2424
:application="applicationDetails"
2525
:loading="loading"
26-
:chat-record="item"
26+
v-model:chat-record="chatList[index]"
2727
:type="type"
2828
:send-message="sendMessage"
2929
:chat-management="ChatManagement"

ui/src/views/team/component/PermissionSetting.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ function checkedOperateChange(Name: string | number, row: any, e: boolean) {
144144
props.data.map((item: any) => {
145145
if (item.id === row.id) {
146146
item.operate[Name] = e
147+
if (Name === TeamEnum.MANAGE && e) {
148+
item.operate[TeamEnum.USE] = true
149+
}
147150
}
148151
})
149152
}

0 commit comments

Comments
 (0)