kmkf-work-order-service-component 0.0.1-alpha.19 → 0.0.1-alpha.21
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',
|
@@ -387,7 +389,8 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
|
|
387
389
|
}();
|
388
390
|
|
389
391
|
var closeModal = function closeModal() {
|
390
|
-
|
392
|
+
setVisible(false);
|
393
|
+
form.resetFields();
|
391
394
|
};
|
392
395
|
|
393
396
|
var openModal = function openModal(_ref4) {
|
@@ -460,6 +463,7 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
|
|
460
463
|
open: visible,
|
461
464
|
onClose: closeModal,
|
462
465
|
footer: renderFooter(),
|
466
|
+
destroyOnClose: true,
|
463
467
|
children: /*#__PURE__*/_jsx(Spin, {
|
464
468
|
spinning: loading,
|
465
469
|
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);
|
@@ -207,9 +208,11 @@ function ModifyModal(props, ref) {
|
|
207
208
|
visible: visible,
|
208
209
|
width: '90%',
|
209
210
|
onClose: function onClose() {
|
210
|
-
|
211
|
+
form.resetFields();
|
212
|
+
setVisible(false);
|
211
213
|
},
|
212
214
|
title: "\u5F55\u5165\u5DE5\u5355",
|
215
|
+
destroyOnClose: true,
|
213
216
|
footer: /*#__PURE__*/_jsxs(Space, {
|
214
217
|
style: {
|
215
218
|
float: 'right'
|