@kmkf-fe-packages/services-components 1.8.0-beta.4 → 1.8.0-beta.5
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.
|
@@ -1062,20 +1062,30 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1062
1062
|
YT: '圆通拦截',
|
|
1063
1063
|
feishu: '飞书'
|
|
1064
1064
|
};
|
|
1065
|
+
var getColorByStatus = function getColorByStatus(value) {
|
|
1066
|
+
var _options$find2;
|
|
1067
|
+
return ((_options$find2 = options.find(function (innerItem) {
|
|
1068
|
+
return value === innerItem.label;
|
|
1069
|
+
})) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || '#000';
|
|
1070
|
+
};
|
|
1065
1071
|
var detailContent = function detailContent(item) {
|
|
1072
|
+
var _item$msgReceivers;
|
|
1066
1073
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
1067
1074
|
style: {
|
|
1068
1075
|
textAlign: 'left'
|
|
1069
1076
|
}
|
|
1070
|
-
},
|
|
1077
|
+
}, ((_item$msgReceivers = item.msgReceivers) === null || _item$msgReceivers === void 0 ? void 0 : _item$msgReceivers.length) && item.msgReceivers.map(function (msgItem) {
|
|
1078
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1079
|
+
style: {
|
|
1080
|
+
color: getColorByStatus(msgItem.status)
|
|
1081
|
+
}
|
|
1082
|
+
}, msgItem.failReason ? "".concat(msgItem.name, "\uFF0C").concat(msgItem.status, "\uFF0C\u5931\u8D25\u539F\u56E0\uFF1A").concat(msgItem.failReason) : "".concat(msgItem.name, "\uFF0C").concat(msgItem.status, ";"));
|
|
1083
|
+
})));
|
|
1071
1084
|
};
|
|
1072
1085
|
return /*#__PURE__*/React.createElement(Space, {
|
|
1073
1086
|
direction: !horizontal ? 'vertical' : 'horizontal'
|
|
1074
1087
|
}, Array.isArray(list) ? (list || []).map(function (item, index) {
|
|
1075
|
-
var
|
|
1076
|
-
var color = ((_options$find2 = options.find(function (innerItem) {
|
|
1077
|
-
return item[valueKey] === innerItem.label;
|
|
1078
|
-
})) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || '#000';
|
|
1088
|
+
var color = getColorByStatus(item[valueKey]);
|
|
1079
1089
|
var currentOption = options.find(function (option) {
|
|
1080
1090
|
return item[valueKey] === option.value;
|
|
1081
1091
|
});
|
|
@@ -1092,7 +1102,7 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1092
1102
|
}
|
|
1093
1103
|
}, /*#__PURE__*/React.createElement("span", {
|
|
1094
1104
|
key: index
|
|
1095
|
-
}, msgTypeCh[key], "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || '')));
|
|
1105
|
+
}, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || '')));
|
|
1096
1106
|
}) : null);
|
|
1097
1107
|
};
|
|
1098
1108
|
//获取付款凭证
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.8.0-beta.
|
|
3
|
+
"version": "1.8.0-beta.5",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "1.8.0-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.8.0-beta.5",
|
|
25
25
|
"@kmkf-fe-packages/kmkf-utils": "1.8.0-beta.0",
|
|
26
26
|
"react-pdf-js": "^5.1.0"
|
|
27
27
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "5c56eac97a0751ea896a86f3f095b60f8403f078",
|
|
43
43
|
"gitHooks": {
|
|
44
44
|
"pre-commit": "lint-staged"
|
|
45
45
|
}
|