fix: 跟踪任务不清除上次提交值

This commit is contained in:
TsMask
2023-11-06 14:53:13 +08:00
parent d09a0c9743
commit a931d7006f

View File

@@ -114,7 +114,7 @@ let tableColumns: ColumnsType = [
align: 'center', align: 'center',
}, },
{ {
title: t('views.traceManage.task.trackType'), title: t('views.traceManage.task.creater'),
dataIndex: 'accountId', dataIndex: 'accountId',
align: 'center', align: 'center',
}, },
@@ -432,7 +432,7 @@ function fnModalVisibleByVive(id: string) {
*/ */
function fnModalVisibleByEdit(id?: string) { function fnModalVisibleByEdit(id?: string) {
if (!id) { if (!id) {
modalStateFrom.resetFields(); fnModalCancel()
modalState.title = t('views.traceManage.task.addTask'); modalState.title = t('views.traceManage.task.addTask');
modalState.visibleByEdit = true; modalState.visibleByEdit = true;
} else { } else {
@@ -492,8 +492,7 @@ function fnModalOk() {
content: t('common.msgSuccess', { msg: modalState.title }), content: t('common.msgSuccess', { msg: modalState.title }),
duration: 3, duration: 3,
}); });
modalState.visibleByEdit = false; fnModalCancel()
modalStateFrom.resetFields();
} else { } else {
message.error({ message.error({
content: `${res.msg}`, content: `${res.msg}`,