mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复对话日志中表单未被禁用 (#1764)
This commit is contained in:
parent
feb43711a2
commit
20920e6797
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue