kmkf-work-order-service-component 0.0.1-alpha.19 → 0.0.1-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -149,6 +149,7 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
|
|
149
149
|
|
150
150
|
if (success && typeof onSuccess === 'function') {
|
151
151
|
closeModal();
|
152
|
+
form.resetFields();
|
152
153
|
message.success('编辑成功');
|
153
154
|
onSuccess({
|
154
155
|
type: 'EDIT',
|
@@ -206,6 +207,7 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
|
|
206
207
|
|
207
208
|
if (_success && typeof onSuccess === 'function') {
|
208
209
|
closeModal();
|
210
|
+
form.resetFields();
|
209
211
|
message.success('添加成功');
|
210
212
|
onSuccess({
|
211
213
|
type: 'ADD',
|
@@ -460,6 +462,7 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
|
|
460
462
|
open: visible,
|
461
463
|
onClose: closeModal,
|
462
464
|
footer: renderFooter(),
|
465
|
+
destroyOnClose: true,
|
463
466
|
children: /*#__PURE__*/_jsx(Spin, {
|
464
467
|
spinning: loading,
|
465
468
|
children: /*#__PURE__*/_jsx(ConfigProvider, {
|
@@ -134,6 +134,7 @@ function ModifyModal(props, ref) {
|
|
134
134
|
|
135
135
|
if (success) {
|
136
136
|
message.success('保存成功');
|
137
|
+
form.resetFields();
|
137
138
|
afterSuccessUpdateWorkOrder && afterSuccessUpdateWorkOrder(1); // 重新查询表格
|
138
139
|
|
139
140
|
setVisible(false);
|
@@ -210,6 +211,7 @@ function ModifyModal(props, ref) {
|
|
210
211
|
return setVisible(false);
|
211
212
|
},
|
212
213
|
title: "\u5F55\u5165\u5DE5\u5355",
|
214
|
+
destroyOnClose: true,
|
213
215
|
footer: /*#__PURE__*/_jsxs(Space, {
|
214
216
|
style: {
|
215
217
|
float: 'right'
|