fix: 修复对话日志中表单未被禁用 (#1764)

This commit is contained in:
shaohuzhang1 2024-12-04 18:00:52 +08:00 committed by GitHub
parent feb43711a2
commit 20920e6797
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

View File

@ -18,7 +18,7 @@
:chat_record_id="answer_text.chat_record_id"
:child_node="answer_text.child_node"
:runtime_node_id="answer_text.runtime_node_id"
:loading="loading"
:disabled="loading || type == 'log'"
v-else-if="answer_text.content"
:source="answer_text.content"
:send-message="chatMessage"

View File

@ -1,7 +1,7 @@
<template>
<div>
<DynamicsForm
:disabled="is_submit"
:disabled="is_submit || disabled"
label-position="top"
require-asterisk-position="right"
ref="dynamicsFormRef"
@ -12,7 +12,7 @@
></DynamicsForm>
<el-button
:type="is_submit ? 'info' : 'primary'"
:disabled="is_submit || loading"
:disabled="is_submit || disabled"
@click="submit"
>提交</el-button
>
@ -24,14 +24,14 @@ import DynamicsForm from '@/components/dynamics-form/index.vue'
const props = withDefaults(
defineProps<{
form_setting: string
loading?: boolean
disabled?: boolean
sendMessage?: (question: string, type: 'old' | 'new', other_params_data?: any) => void
child_node?: any
chat_record_id?: string
runtime_node_id?: string
}>(),
{
loading: false
disabled: false
}
)
const form_setting_data = computed(() => {

View File

@ -20,7 +20,7 @@
:chat_record_id="chat_record_id"
:runtime_node_id="runtime_node_id"
:child_node="child_node"
:loading="loading"
:disabled="disabled"
:send-message="sendMessage"
v-else-if="item.type === 'form_rander'"
:form_setting="item.content"
@ -70,11 +70,11 @@ const props = withDefaults(
child_node?: any
chat_record_id?: string
runtime_node_id?: string
loading?: boolean
disabled?: boolean
}>(),
{
source: '',
loading: false
disabled: false
}
)
const editorRef = ref()