fix: 修复添加参数对话框的标题文字不对应的问题
--bug=1047778 --user=刘瑞斌 【应用编排】- 用户输入,点击编辑参数后,关闭对话框,再点击添加参数打开的还是编辑参数对话框 https://www.tapd.cn/57709429/s/1601532
This commit is contained in:
parent
10a7edd54a
commit
7e45cd54d2
@ -5,6 +5,7 @@
|
|||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:close-on-press-escape="false"
|
:close-on-press-escape="false"
|
||||||
:destroy-on-close="true"
|
:destroy-on-close="true"
|
||||||
|
:before-close="close"
|
||||||
append-to-body
|
append-to-body
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
@ -110,6 +111,7 @@ const open = (row: any) => {
|
|||||||
|
|
||||||
const close = () => {
|
const close = () => {
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
|
isEdit.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
const submit = async (formEl: FormInstance | undefined) => {
|
const submit = async (formEl: FormInstance | undefined) => {
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:close-on-press-escape="false"
|
:close-on-press-escape="false"
|
||||||
:destroy-on-close="true"
|
:destroy-on-close="true"
|
||||||
|
:before-close="close"
|
||||||
append-to-body
|
append-to-body
|
||||||
>
|
>
|
||||||
<DynamicsFormConstructor
|
<DynamicsFormConstructor
|
||||||
@ -16,7 +17,7 @@
|
|||||||
></DynamicsFormConstructor>
|
></DynamicsFormConstructor>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button @click.prevent="dialogVisible = false"> 取消 </el-button>
|
<el-button @click.prevent="close"> 取消 </el-button>
|
||||||
<el-button type="primary" @click="submit()" :loading="loading">
|
<el-button type="primary" @click="submit()" :loading="loading">
|
||||||
{{ isEdit ? '保存' : '添加' }}
|
{{ isEdit ? '保存' : '添加' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user