fix: 修复对话日志中表单未被禁用 (#1764)
This commit is contained in:
parent
feb43711a2
commit
20920e6797
@ -18,7 +18,7 @@
|
|||||||
:chat_record_id="answer_text.chat_record_id"
|
:chat_record_id="answer_text.chat_record_id"
|
||||||
:child_node="answer_text.child_node"
|
:child_node="answer_text.child_node"
|
||||||
:runtime_node_id="answer_text.runtime_node_id"
|
:runtime_node_id="answer_text.runtime_node_id"
|
||||||
:loading="loading"
|
:disabled="loading || type == 'log'"
|
||||||
v-else-if="answer_text.content"
|
v-else-if="answer_text.content"
|
||||||
:source="answer_text.content"
|
:source="answer_text.content"
|
||||||
:send-message="chatMessage"
|
:send-message="chatMessage"
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<DynamicsForm
|
<DynamicsForm
|
||||||
:disabled="is_submit"
|
:disabled="is_submit || disabled"
|
||||||
label-position="top"
|
label-position="top"
|
||||||
require-asterisk-position="right"
|
require-asterisk-position="right"
|
||||||
ref="dynamicsFormRef"
|
ref="dynamicsFormRef"
|
||||||
@ -12,7 +12,7 @@
|
|||||||
></DynamicsForm>
|
></DynamicsForm>
|
||||||
<el-button
|
<el-button
|
||||||
:type="is_submit ? 'info' : 'primary'"
|
:type="is_submit ? 'info' : 'primary'"
|
||||||
:disabled="is_submit || loading"
|
:disabled="is_submit || disabled"
|
||||||
@click="submit"
|
@click="submit"
|
||||||
>提交</el-button
|
>提交</el-button
|
||||||
>
|
>
|
||||||
@ -24,14 +24,14 @@ import DynamicsForm from '@/components/dynamics-form/index.vue'
|
|||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
form_setting: string
|
form_setting: string
|
||||||
loading?: boolean
|
disabled?: boolean
|
||||||
sendMessage?: (question: string, type: 'old' | 'new', other_params_data?: any) => void
|
sendMessage?: (question: string, type: 'old' | 'new', other_params_data?: any) => void
|
||||||
child_node?: any
|
child_node?: any
|
||||||
chat_record_id?: string
|
chat_record_id?: string
|
||||||
runtime_node_id?: string
|
runtime_node_id?: string
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
loading: false
|
disabled: false
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
const form_setting_data = computed(() => {
|
const form_setting_data = computed(() => {
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
:chat_record_id="chat_record_id"
|
:chat_record_id="chat_record_id"
|
||||||
:runtime_node_id="runtime_node_id"
|
:runtime_node_id="runtime_node_id"
|
||||||
:child_node="child_node"
|
:child_node="child_node"
|
||||||
:loading="loading"
|
:disabled="disabled"
|
||||||
:send-message="sendMessage"
|
:send-message="sendMessage"
|
||||||
v-else-if="item.type === 'form_rander'"
|
v-else-if="item.type === 'form_rander'"
|
||||||
:form_setting="item.content"
|
:form_setting="item.content"
|
||||||
@ -70,11 +70,11 @@ const props = withDefaults(
|
|||||||
child_node?: any
|
child_node?: any
|
||||||
chat_record_id?: string
|
chat_record_id?: string
|
||||||
runtime_node_id?: string
|
runtime_node_id?: string
|
||||||
loading?: boolean
|
disabled?: boolean
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
source: '',
|
source: '',
|
||||||
loading: false
|
disabled: false
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
const editorRef = ref()
|
const editorRef = ref()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user