@zgfe/modules-dm 1.0.57-zhongyuan.10 → 1.0.57-zhongyuan.11
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.
|
@@ -329,7 +329,11 @@ var ClearRule = function ClearRule() {
|
|
|
329
329
|
}).then(function (res) {
|
|
330
330
|
if (!res) return;
|
|
331
331
|
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
332
|
-
if (res.data
|
|
332
|
+
if (res.data == 0) {
|
|
333
|
+
handleOpenRuleStatus(ruleRow);
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
if (res.data == 3) {
|
|
333
337
|
UseModal({
|
|
334
338
|
onOk: function onOk() {
|
|
335
339
|
return handleOpenRuleStatus(ruleRow);
|
|
@@ -338,6 +342,11 @@ var ClearRule = function ClearRule() {
|
|
|
338
342
|
title: '警告',
|
|
339
343
|
content: '该规则与已开启规则可能产生冲突,请确认是否继续开启'.concat(" ")
|
|
340
344
|
});
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
if (res.data == 2 || res.data == 3) {
|
|
348
|
+
message.error(res.msg);
|
|
349
|
+
return;
|
|
341
350
|
}
|
|
342
351
|
} else {
|
|
343
352
|
message.error('查询列表失败!');
|
|
@@ -199,11 +199,14 @@ var AddFormulate = function AddFormulate(_ref) {
|
|
|
199
199
|
// 回显
|
|
200
200
|
useEffect(function () {
|
|
201
201
|
if (detailData) {
|
|
202
|
-
var _detailData$
|
|
202
|
+
var _detailData$rinseObje2, _detailData$rinseShif;
|
|
203
203
|
ruleForm.setFieldsValue({
|
|
204
204
|
name: detailData.ruleName,
|
|
205
205
|
description: detailData === null || detailData === void 0 ? void 0 : detailData.ruleDescription,
|
|
206
|
-
target:
|
|
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,
|
|
207
210
|
ruleArr: detailData === null || detailData === void 0 ? void 0 : detailData.rinseShiftRuleDetails
|
|
208
211
|
});
|
|
209
212
|
var arr = [];
|
|
@@ -109,8 +109,7 @@ var FormulateRule = function FormulateRule() {
|
|
|
109
109
|
if (res.data.data == 1) {
|
|
110
110
|
UseModal({
|
|
111
111
|
onOk: function onOk() {
|
|
112
|
-
|
|
113
|
-
setOpenAddDraw(true);
|
|
112
|
+
getDetail(ruleObj.ruleId);
|
|
114
113
|
},
|
|
115
114
|
okText: '去修改',
|
|
116
115
|
title: '自定义校验规则已删除',
|
|
@@ -153,6 +152,8 @@ var FormulateRule = function FormulateRule() {
|
|
|
153
152
|
return;
|
|
154
153
|
}
|
|
155
154
|
endOpen(ruleObj);
|
|
155
|
+
} else {
|
|
156
|
+
message.error(res.msg);
|
|
156
157
|
}
|
|
157
158
|
});
|
|
158
159
|
};
|
|
@@ -168,6 +169,8 @@ var FormulateRule = function FormulateRule() {
|
|
|
168
169
|
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
169
170
|
message.success("".concat(ruleObj.status ? '关闭' : '开启', "\u6210\u529F\uFF01"));
|
|
170
171
|
getList(ruleSearchName);
|
|
172
|
+
} else {
|
|
173
|
+
message.error(res.msg);
|
|
171
174
|
}
|
|
172
175
|
});
|
|
173
176
|
};
|
|
@@ -192,6 +195,8 @@ var FormulateRule = function FormulateRule() {
|
|
|
192
195
|
return;
|
|
193
196
|
}
|
|
194
197
|
getDetail(ruleId);
|
|
198
|
+
} else {
|
|
199
|
+
message.error(res.msg);
|
|
195
200
|
}
|
|
196
201
|
});
|
|
197
202
|
};
|
|
@@ -327,6 +332,8 @@ var FormulateRule = function FormulateRule() {
|
|
|
327
332
|
message.success("".concat(value ? '开启' : '关闭', "\u6210\u529F\uFF01"));
|
|
328
333
|
setAllOpenRule(value);
|
|
329
334
|
getList(ruleSearchName);
|
|
335
|
+
} else {
|
|
336
|
+
message.error(res.msg);
|
|
330
337
|
}
|
|
331
338
|
}).finally(function () {
|
|
332
339
|
setStatusLoading(false);
|
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.11",
|
|
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": "89a73c012b336ac25db06ea6b16ebd5460bad587",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|