@zgfe/modules-dm 1.0.57-zhongyuan.14 → 1.0.57-zhongyuan.15
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.
|
@@ -133,7 +133,7 @@ var ClearRule = function ClearRule() {
|
|
|
133
133
|
}
|
|
134
134
|
getDetail(ruleRow.ruleId);
|
|
135
135
|
} else {
|
|
136
|
-
message.error(
|
|
136
|
+
message.error(res.msg);
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
};
|
|
@@ -309,7 +309,7 @@ var ClearRule = function ClearRule() {
|
|
|
309
309
|
message.success("\u5220\u9664\u89C4\u5219\u6210\u529F\uFF01");
|
|
310
310
|
handleSearch();
|
|
311
311
|
} else {
|
|
312
|
-
message.error(
|
|
312
|
+
message.error(res.msg);
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
315
|
};
|
|
@@ -349,7 +349,7 @@ var ClearRule = function ClearRule() {
|
|
|
349
349
|
return;
|
|
350
350
|
}
|
|
351
351
|
} else {
|
|
352
|
-
message.error(
|
|
352
|
+
message.error(res.msg);
|
|
353
353
|
}
|
|
354
354
|
});
|
|
355
355
|
};
|
|
@@ -369,7 +369,7 @@ var ClearRule = function ClearRule() {
|
|
|
369
369
|
message.success("".concat(ruleRow.status == 0 ? '规则开启成功!' : '规则关闭成功'));
|
|
370
370
|
handleSearch();
|
|
371
371
|
} else {
|
|
372
|
-
message.error(
|
|
372
|
+
message.error(res.msg);
|
|
373
373
|
}
|
|
374
374
|
});
|
|
375
375
|
};
|
|
@@ -169,6 +169,31 @@ var AddFormulate = function AddFormulate(_ref) {
|
|
|
169
169
|
if (!res) return;
|
|
170
170
|
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
171
171
|
setRuleList(res.data.data);
|
|
172
|
+
// 回显
|
|
173
|
+
if (detailData) {
|
|
174
|
+
var _detailData$rinseObje2, _detailData$rinseShif;
|
|
175
|
+
ruleForm.setFieldsValue({
|
|
176
|
+
name: detailData.ruleName,
|
|
177
|
+
description: detailData === null || detailData === void 0 ? void 0 : detailData.ruleDescription,
|
|
178
|
+
target: res.data.data.find(function (o) {
|
|
179
|
+
var _detailData$rinseObje;
|
|
180
|
+
return (detailData === null || detailData === void 0 ? void 0 : (_detailData$rinseObje = detailData.rinseObjects) === null || _detailData$rinseObje === void 0 ? void 0 : _detailData$rinseObje[0]) == o.ruleId;
|
|
181
|
+
}) ? detailData === null || detailData === void 0 ? void 0 : (_detailData$rinseObje2 = detailData.rinseObjects) === null || _detailData$rinseObje2 === void 0 ? void 0 : _detailData$rinseObje2[0] : undefined,
|
|
182
|
+
ruleArr: detailData === null || detailData === void 0 ? void 0 : detailData.rinseShiftRuleDetails
|
|
183
|
+
});
|
|
184
|
+
var arr = detailData === null || detailData === void 0 ? void 0 : (_detailData$rinseShif = detailData.rinseShiftRuleDetails) === null || _detailData$rinseShif === void 0 ? void 0 : _detailData$rinseShif.map(function (o) {
|
|
185
|
+
return {
|
|
186
|
+
currentType: o.ruleType,
|
|
187
|
+
currentTypeName: typeArr.filter(function (j) {
|
|
188
|
+
return j.value == o.ruleType;
|
|
189
|
+
})[0].label,
|
|
190
|
+
sourceValue: o.ruleType == 5 ? '' : o.sourceValue,
|
|
191
|
+
targetValue: o.targetValue,
|
|
192
|
+
key: o.id
|
|
193
|
+
};
|
|
194
|
+
});
|
|
195
|
+
setDataSoure(arr || []);
|
|
196
|
+
}
|
|
172
197
|
}
|
|
173
198
|
});
|
|
174
199
|
};
|
|
@@ -196,34 +221,6 @@ var AddFormulate = function AddFormulate(_ref) {
|
|
|
196
221
|
});
|
|
197
222
|
}
|
|
198
223
|
};
|
|
199
|
-
// 回显
|
|
200
|
-
useEffect(function () {
|
|
201
|
-
if (detailData) {
|
|
202
|
-
var _detailData$rinseObje2, _detailData$rinseShif;
|
|
203
|
-
ruleForm.setFieldsValue({
|
|
204
|
-
name: detailData.ruleName,
|
|
205
|
-
description: detailData === null || detailData === void 0 ? void 0 : detailData.ruleDescription,
|
|
206
|
-
target: ruleList.find(function (o) {
|
|
207
|
-
var _detailData$rinseObje;
|
|
208
|
-
return (detailData === null || detailData === void 0 ? void 0 : (_detailData$rinseObje = detailData.rinseObjects) === null || _detailData$rinseObje === void 0 ? void 0 : _detailData$rinseObje[0]) == o.ruleId;
|
|
209
|
-
}) ? detailData === null || detailData === void 0 ? void 0 : (_detailData$rinseObje2 = detailData.rinseObjects) === null || _detailData$rinseObje2 === void 0 ? void 0 : _detailData$rinseObje2[0] : undefined,
|
|
210
|
-
ruleArr: detailData === null || detailData === void 0 ? void 0 : detailData.rinseShiftRuleDetails
|
|
211
|
-
});
|
|
212
|
-
var arr = [];
|
|
213
|
-
arr = (detailData === null || detailData === void 0 ? void 0 : detailData.rinseShiftRuleDetails) && (detailData === null || detailData === void 0 ? void 0 : (_detailData$rinseShif = detailData.rinseShiftRuleDetails) === null || _detailData$rinseShif === void 0 ? void 0 : _detailData$rinseShif.map(function (o) {
|
|
214
|
-
return {
|
|
215
|
-
currentType: o.ruleType,
|
|
216
|
-
currentTypeName: typeArr.filter(function (j) {
|
|
217
|
-
return j.value == o.ruleType;
|
|
218
|
-
})[0].label,
|
|
219
|
-
sourceValue: o.ruleType == 5 ? '' : o.sourceValue,
|
|
220
|
-
targetValue: o.targetValue,
|
|
221
|
-
key: o.id
|
|
222
|
-
};
|
|
223
|
-
}));
|
|
224
|
-
setDataSoure(arr);
|
|
225
|
-
}
|
|
226
|
-
}, []);
|
|
227
224
|
return /*#__PURE__*/React.createElement("div", {
|
|
228
225
|
className: "addRule"
|
|
229
226
|
}, /*#__PURE__*/React.createElement(Drawer, {
|
|
@@ -77,11 +77,11 @@ var FormulateRule = function FormulateRule() {
|
|
|
77
77
|
onChange: function onChange() {
|
|
78
78
|
return handleOpenStatus(record);
|
|
79
79
|
}
|
|
80
|
-
}),
|
|
80
|
+
}), /*#__PURE__*/React.createElement("a", {
|
|
81
81
|
onClick: function onClick() {
|
|
82
82
|
handleEdit(record.ruleId);
|
|
83
83
|
}
|
|
84
|
-
}, "\u7F16\u8F91")
|
|
84
|
+
}, "\u7F16\u8F91"), authority[170928557423] && /*#__PURE__*/React.createElement("a", {
|
|
85
85
|
onClick: function onClick() {
|
|
86
86
|
return handleDetale(record.ruleId);
|
|
87
87
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.57-zhongyuan.
|
|
3
|
+
"version": "1.0.57-zhongyuan.15",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"umi-request": "^1.4.0",
|
|
58
58
|
"yorkie": "^2.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "be3a68dfd5263d9e770933501924bdc6d717fddf",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|