@titaui/pc 1.11.12 → 1.11.14
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.
- package/lib/components/dynamic/constant.js +9 -5
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +2 -2
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -0
- package/package.json +1 -1
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.getObjTypeMapText = exports.OkrRiskMapping = exports.ObjectType = exports.EStatusStatus2ClassType = exports.EShareType = exports.EObjType = exports.EFeedType = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../utils/getLocale");
|
|
9
9
|
|
|
10
|
-
var _ObjTypeMapText;
|
|
11
|
-
|
|
12
10
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
11
|
|
|
14
12
|
var OkrRiskMapping = {
|
|
@@ -80,8 +78,14 @@ exports.EObjType = EObjType;
|
|
|
80
78
|
EObjType[EObjType["Report"] = 8] = "Report";
|
|
81
79
|
})(EObjType || (exports.EObjType = EObjType = {}));
|
|
82
80
|
|
|
83
|
-
var
|
|
84
|
-
|
|
81
|
+
var getObjTypeMapText = function getObjTypeMapText(key) {
|
|
82
|
+
var _data;
|
|
83
|
+
|
|
84
|
+
var data = (_data = {}, _defineProperty(_data, EObjType.Project, (0, _getLocale.getLocale)("Menu_Title_Projects")), _defineProperty(_data, EObjType.Task, (0, _getLocale.getLocale)("Mod_Tasks")), _defineProperty(_data, EObjType.O, (0, _getLocale.getLocale)("Mod_Objective")), _defineProperty(_data, EObjType.Kr, (0, _getLocale.getLocale)("Mod_KeyResults")), _defineProperty(_data, EObjType.MileStone, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), _defineProperty(_data, EObjType.KanBan, (0, _getLocale.getLocale)("Pro_page_V_Tab_Kanban")), _defineProperty(_data, EObjType.Report, "总结"), _data);
|
|
85
|
+
return data[key];
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
exports.getObjTypeMapText = getObjTypeMapText;
|
|
85
89
|
|
|
86
90
|
var ObjectType = function ObjectType() {
|
|
87
91
|
return {
|
|
@@ -71,11 +71,11 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
71
71
|
className: "".concat(prefix, "__operate-desc")
|
|
72
72
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
73
73
|
className: "".concat(prefix, "__operate-desc-wrapper")
|
|
74
|
-
}, (0, _getLocale.getLocale)("Mod_InChargeof"), _constant.
|
|
74
|
+
}, (0, _getLocale.getLocale)("Mod_InChargeof"), (0, _constant.getObjTypeMapText)(data.obj.objType), /*#__PURE__*/_react["default"].createElement("span", {
|
|
75
75
|
className: "".concat(prefix, "__object-name"),
|
|
76
76
|
onClick: handleClickOTitle
|
|
77
77
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
78
|
-
text: data.obj.objName,
|
|
78
|
+
text: (0, _tools.htmlDecodeByRegExp)(data.obj.objName),
|
|
79
79
|
isPercent: true
|
|
80
80
|
})), (0, _getLocale.getLocale)("Mod_skeyresults")));
|
|
81
81
|
}, []);
|
|
@@ -96,7 +96,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
96
96
|
className: "".concat(prefix, "__object-name"),
|
|
97
97
|
onClick: handleClickTitle
|
|
98
98
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
99
|
-
text: obj.objName,
|
|
99
|
+
text: (0, _tools.htmlDecodeByRegExp)(obj.objName),
|
|
100
100
|
isPercent: true
|
|
101
101
|
})), (0, _getLocale.getLocale)("Mod_smilestone")));
|
|
102
102
|
}, []);
|
|
@@ -109,7 +109,7 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
109
109
|
onClick: handleClickOTitle
|
|
110
110
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
111
111
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
112
|
-
str: relationParentName,
|
|
112
|
+
str: (0, _tools.htmlDecodeByRegExp)(relationParentName),
|
|
113
113
|
keyWord: searchKeyWord
|
|
114
114
|
}),
|
|
115
115
|
isPercent: true
|
|
@@ -95,7 +95,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
95
95
|
className: "".concat(prefix, "__object-name"),
|
|
96
96
|
onClick: handleClickOTitle
|
|
97
97
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
98
|
-
text: data.obj.objName,
|
|
98
|
+
text: (0, _tools.htmlDecodeByRegExp)(data.obj.objName),
|
|
99
99
|
isPercent: true
|
|
100
100
|
})), "\u4E0B\u5173\u952E\u6210\u679C\u7684\u590D\u76D8");
|
|
101
101
|
}
|
|
@@ -114,11 +114,11 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
114
114
|
} else {
|
|
115
115
|
dom = /*#__PURE__*/_react["default"].createElement("span", {
|
|
116
116
|
className: "".concat(prefix, "__operate-desc-wrapper")
|
|
117
|
-
}, (0, _getLocale.getLocale)("Mod_InChargeof"), _constant2.
|
|
117
|
+
}, (0, _getLocale.getLocale)("Mod_InChargeof"), (0, _constant2.getObjTypeMapText)(obj.objType), /*#__PURE__*/_react["default"].createElement("span", {
|
|
118
118
|
className: "".concat(prefix, "__object-name"),
|
|
119
119
|
onClick: handleClickTitle
|
|
120
120
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
121
|
-
text: obj.objName,
|
|
121
|
+
text: (0, _mblog.htmlDecodeByRegExp)(obj.objName),
|
|
122
122
|
isPercent: true
|
|
123
123
|
})), (0, _getLocale.getLocale)("Mod_stask"));
|
|
124
124
|
}
|
|
@@ -303,6 +303,7 @@ function PayDialog(props) {
|
|
|
303
303
|
if (payCode === "wxPay") {
|
|
304
304
|
e.preventDefault();
|
|
305
305
|
var path = window.location.href.split("#")[0];
|
|
306
|
+
path = path.replace(/eLearningHome/, "Home");
|
|
306
307
|
var encode = encodeURIComponent("orderId=".concat(orderId, "&payCode=").concat(payCode, "&payName=").concat(payName));
|
|
307
308
|
window.open("".concat(path, "#/pay?").concat(encode), "_blank"); // postWxPayOrder({
|
|
308
309
|
// order_id: orderId,
|