@zgfe/modules-settings 2.0.0-zhongyuan.32 → 2.0.0-zhongyuan.34
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.
|
@@ -202,7 +202,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
202
202
|
});
|
|
203
203
|
};
|
|
204
204
|
useEffect(function () {
|
|
205
|
-
if (props.data.demand && (props === null || props === void 0 ? void 0 : props.data.demand.demandName)) {
|
|
205
|
+
if (props.data && props.data.demand && (props === null || props === void 0 ? void 0 : props.data.demand.demandName)) {
|
|
206
206
|
setDemandName(props === null || props === void 0 ? void 0 : props.data.demand.demandName);
|
|
207
207
|
setDemandDescribe(props === null || props === void 0 ? void 0 : props.data.demand.demandDescribe);
|
|
208
208
|
setCompletionTime(moment(new Date(props === null || props === void 0 ? void 0 : props.data.demand.completionTime)));
|
|
@@ -324,6 +324,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
324
324
|
// type on单击事件 save保存 flow
|
|
325
325
|
var onCreate = function onCreate() {
|
|
326
326
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'save';
|
|
327
|
+
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
327
328
|
if (!demandName) {
|
|
328
329
|
message.warning('请填写需求名称');
|
|
329
330
|
return;
|
|
@@ -349,8 +350,8 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
349
350
|
}),
|
|
350
351
|
pointEventStatus: type != 'flow' ? pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
351
352
|
return item.status;
|
|
352
|
-
}) : []
|
|
353
|
-
})
|
|
353
|
+
}) : []
|
|
354
|
+
}, data)
|
|
354
355
|
}).then(function (res) {
|
|
355
356
|
if ((res === null || res === void 0 ? void 0 : res.code) === '100000') {
|
|
356
357
|
if (type == 'on') {
|
|
@@ -1075,14 +1076,20 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1075
1076
|
shape: "round",
|
|
1076
1077
|
className: "button",
|
|
1077
1078
|
onClick: function onClick() {
|
|
1078
|
-
setIsEdit(true);
|
|
1079
1079
|
props.setIsShowSelectList && props.setIsShowSelectList(function (val) {
|
|
1080
1080
|
setPointEventInfo(val.map(function (val) {
|
|
1081
1081
|
return _objectSpread(_objectSpread({}, val), {}, {
|
|
1082
1082
|
status: 0
|
|
1083
1083
|
});
|
|
1084
1084
|
}));
|
|
1085
|
-
onCreate('save'
|
|
1085
|
+
onCreate('save', {
|
|
1086
|
+
pointEventIds: val.map(function (res) {
|
|
1087
|
+
return res.id;
|
|
1088
|
+
}),
|
|
1089
|
+
pointEventStatus: val.map(function (res) {
|
|
1090
|
+
return 0;
|
|
1091
|
+
})
|
|
1092
|
+
});
|
|
1086
1093
|
}, pointEventInfo);
|
|
1087
1094
|
}
|
|
1088
1095
|
}, "\u57CB\u70B9\u8BBE\u8BA1")), /*#__PURE__*/React.createElement("div", {
|
|
@@ -1097,10 +1104,18 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1097
1104
|
}, getLableValue(demandStatus, 'buttonName'))), isRead ? null : demandStatus == 2 && (/*#__PURE__*/React.createElement(Button, {
|
|
1098
1105
|
className: "".concat(classPrefix, "-info-right-button forbiddenColor"),
|
|
1099
1106
|
onClick: function onClick() {
|
|
1100
|
-
|
|
1107
|
+
var list = pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.filter(function (item) {
|
|
1101
1108
|
return selectedRowKeys.indexOf(item.id) == -1;
|
|
1102
|
-
})
|
|
1103
|
-
|
|
1109
|
+
});
|
|
1110
|
+
setPointEventInfo(list);
|
|
1111
|
+
onCreate('save', {
|
|
1112
|
+
pointEventIds: list.map(function (res) {
|
|
1113
|
+
return res.id;
|
|
1114
|
+
}),
|
|
1115
|
+
pointEventStatus: list.map(function (res) {
|
|
1116
|
+
return res.status;
|
|
1117
|
+
})
|
|
1118
|
+
});
|
|
1104
1119
|
}
|
|
1105
1120
|
}, "\u79FB\u9664")), isRead ? null : (demandStatus == 3 || demandStatus == 4) && (/*#__PURE__*/React.createElement(Button, {
|
|
1106
1121
|
className: "".concat(classPrefix, "-info-right-button forbiddenColor"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "2.0.0-zhongyuan.
|
|
3
|
+
"version": "2.0.0-zhongyuan.34",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "69b4fe9e9a54f976bcafe6bcaa7be9076260f66a",
|
|
71
71
|
"gitHooks": {
|
|
72
72
|
"pre-commit": "lint-staged"
|
|
73
73
|
}
|