fix: 跟踪任务不清除上次提交值
This commit is contained in:
@@ -114,7 +114,7 @@ let tableColumns: ColumnsType = [
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: t('views.traceManage.task.trackType'),
|
||||
title: t('views.traceManage.task.creater'),
|
||||
dataIndex: 'accountId',
|
||||
align: 'center',
|
||||
},
|
||||
@@ -432,7 +432,7 @@ function fnModalVisibleByVive(id: string) {
|
||||
*/
|
||||
function fnModalVisibleByEdit(id?: string) {
|
||||
if (!id) {
|
||||
modalStateFrom.resetFields();
|
||||
fnModalCancel()
|
||||
modalState.title = t('views.traceManage.task.addTask');
|
||||
modalState.visibleByEdit = true;
|
||||
} else {
|
||||
@@ -492,8 +492,7 @@ function fnModalOk() {
|
||||
content: t('common.msgSuccess', { msg: modalState.title }),
|
||||
duration: 3,
|
||||
});
|
||||
modalState.visibleByEdit = false;
|
||||
modalStateFrom.resetFields();
|
||||
fnModalCancel()
|
||||
} else {
|
||||
message.error({
|
||||
content: `${res.msg}`,
|
||||
|
||||
Reference in New Issue
Block a user