@titaui/pc 1.10.31 → 1.10.33

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.
@@ -77,9 +77,10 @@ exports.EObjType = EObjType;
77
77
  EObjType[EObjType["Assess"] = 23] = "Assess";
78
78
  EObjType[EObjType["MileStone"] = 27] = "MileStone";
79
79
  EObjType[EObjType["KanBan"] = 66] = "KanBan";
80
+ EObjType[EObjType["Report"] = 8] = "Report";
80
81
  })(EObjType || (exports.EObjType = EObjType = {}));
81
82
 
82
- var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, (0, _getLocale.getLocale)("Menu_Title_Projects")), _defineProperty(_ObjTypeMapText, EObjType.Task, (0, _getLocale.getLocale)("Mod_Tasks")), _defineProperty(_ObjTypeMapText, EObjType.O, (0, _getLocale.getLocale)("Mod_Objective")), _defineProperty(_ObjTypeMapText, EObjType.Kr, (0, _getLocale.getLocale)("Mod_KeyResults")), _defineProperty(_ObjTypeMapText, EObjType.MileStone, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), _defineProperty(_ObjTypeMapText, EObjType.KanBan, (0, _getLocale.getLocale)("Pro_page_V_Tab_Kanban")), _ObjTypeMapText);
83
+ var ObjTypeMapText = (_ObjTypeMapText = {}, _defineProperty(_ObjTypeMapText, EObjType.Project, (0, _getLocale.getLocale)("Menu_Title_Projects")), _defineProperty(_ObjTypeMapText, EObjType.Task, (0, _getLocale.getLocale)("Mod_Tasks")), _defineProperty(_ObjTypeMapText, EObjType.O, (0, _getLocale.getLocale)("Mod_Objective")), _defineProperty(_ObjTypeMapText, EObjType.Kr, (0, _getLocale.getLocale)("Mod_KeyResults")), _defineProperty(_ObjTypeMapText, EObjType.MileStone, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), _defineProperty(_ObjTypeMapText, EObjType.KanBan, (0, _getLocale.getLocale)("Pro_page_V_Tab_Kanban")), _defineProperty(_ObjTypeMapText, EObjType.Report, "总结"), _ObjTypeMapText);
83
84
  exports.ObjTypeMapText = ObjTypeMapText;
84
85
 
85
86
  var ObjectType = function ObjectType() {
@@ -37,6 +37,8 @@ var _utils = require("../dynamic-progress/utils");
37
37
 
38
38
  var _reward = _interopRequireDefault(require("./img/reward.png"));
39
39
 
40
+ var _utils2 = require("./utils");
41
+
40
42
  require("./index.css");
41
43
 
42
44
  var _excluded = ["data"];
@@ -133,7 +135,7 @@ var DynamicReward = function DynamicReward(_ref) {
133
135
  className: "".concat(prefix, "__content")
134
136
  }, /*#__PURE__*/_react["default"].createElement("div", {
135
137
  className: "".concat(prefix, "__title")
136
- }, obj && obj.objName && /*#__PURE__*/_react["default"].createElement(_title["default"], _extends({
138
+ }, obj && obj.objName && (0, _utils2.isShowRewardObj)(obj.objType) && /*#__PURE__*/_react["default"].createElement(_title["default"], _extends({
137
139
  content: (0, _tools.htmlDecodeByRegExp)(obj.objName),
138
140
  onClickTitle: handleClickTitle
139
141
  }, (0, _utils.getDynamicTitleProps)(obj)))), /*#__PURE__*/_react["default"].createElement("div", {
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.isShowRewardObj = exports["default"] = void 0;
7
+
8
+ var _constant = require("../../constant");
9
+
10
+ var _NeedShowObj;
11
+
12
+ 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
+
14
+ var NeedShowObj = (_NeedShowObj = {}, _defineProperty(_NeedShowObj, _constant.EObjType.Assess, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.Kr, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.MileStone, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.O, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.Project, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.Report, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.Task, "1"), _NeedShowObj);
15
+
16
+ var isShowRewardObj = function isShowRewardObj(type) {
17
+ if (NeedShowObj[type]) {
18
+ return true;
19
+ }
20
+
21
+ return false;
22
+ };
23
+
24
+ exports.isShowRewardObj = isShowRewardObj;
25
+ var _default = {
26
+ isShowRewardObj: isShowRewardObj
27
+ };
28
+ exports["default"] = _default;
@@ -102,6 +102,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
102
102
  var prefix = "titaui-dynamic-item";
103
103
 
104
104
  var DynamicItem = function DynamicItem(_ref) {
105
+ var _getBSGlobal;
106
+
105
107
  var data = _ref.data,
106
108
  onDeleteFeed = _ref.onDeleteFeed,
107
109
  dynamicShareIsShowToping = _ref.dynamicShareIsShowToping;
@@ -146,6 +148,9 @@ var DynamicItem = function DynamicItem(_ref) {
146
148
  searchKeyWord = _useContext.searchKeyWord;
147
149
 
148
150
  var hasDynamicOpereateAuth = new _auth.DynamicManagerAuth().hasAuth();
151
+ var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)("WebHead")) !== null && _getBSGlobal !== void 0 && _getBSGlobal.AppHead.find(function (item) {
152
+ return item.AppId === "950";
153
+ }));
149
154
  var dynamicContentRef = (0, _react.useRef)();
150
155
  var communicationRef = (0, _react.useRef)();
151
156
 
@@ -163,8 +168,8 @@ var DynamicItem = function DynamicItem(_ref) {
163
168
  };
164
169
 
165
170
  var onChangeParse = function onChangeParse(type) {
166
- var _getBSGlobal = (0, _bsGlobal.getBSGlobal)("loginUserInfo"),
167
- Id = _getBSGlobal.Id;
171
+ var _getBSGlobal2 = (0, _bsGlobal.getBSGlobal)("loginUserInfo"),
172
+ Id = _getBSGlobal2.Id;
168
173
 
169
174
  var data = _toConsumableArray(praiseData).filter(function (item) {
170
175
  return Number("".concat(item.userId)) !== Number("".concat(Id));
@@ -388,7 +393,9 @@ var DynamicItem = function DynamicItem(_ref) {
388
393
  onClick: handleFold
389
394
  }, (0, _getLocale.getLocale)("Mod_Fold"), /*#__PURE__*/_react["default"].createElement("i", {
390
395
  className: (0, _classnames["default"])("tu-icon-arrow-down", "".concat(prefix, "__icon"), "".concat(prefix, "__icon-up"))
391
- }))), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
396
+ }))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
397
+ condition: hasRewardBtn
398
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
392
399
  overlay: (0, _getLocale.getLocale)("Feed_Approval"),
393
400
  align: {
394
401
  offset: [0, 0]
@@ -397,7 +404,7 @@ var DynamicItem = function DynamicItem(_ref) {
397
404
  }, /*#__PURE__*/_react["default"].createElement("span", {
398
405
  onClick: handlePayReward,
399
406
  className: (0, _classnames["default"])("".concat(prefix, "__footer-icon"), "".concat(prefix, "__footer-icon-redenvelopes"))
400
- })), /*#__PURE__*/_react["default"].createElement("span", {
407
+ }))), /*#__PURE__*/_react["default"].createElement("span", {
401
408
  onClick: handleCommentClick,
402
409
  className: (0, _classnames["default"])("tu-icon-pinglun-m", "".concat(prefix, "__footer-icon"))
403
410
  }, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
@@ -98,7 +98,7 @@ var DemoMenuData = /*#__PURE__*/function () {
98
98
  isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager,
99
99
  children: [{
100
100
  icon: "",
101
- label: "到期客户",
101
+ label: "客户",
102
102
  key: PAGE_RECHARGE_LIST,
103
103
  href: "#/demofree/recharge/list",
104
104
  isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
@@ -42,17 +42,22 @@
42
42
  .titaui-nav-top-menu__menu--hasNum {
43
43
  position: absolute;
44
44
  right: 4px;
45
- top: 6px;
46
- background: #f05e5e;
47
- box-shadow: 0px 2px 4px 0px rgba(240, 94, 94, 0.6), inset 0px 0px 2px 1px rgba(255, 255, 255, 0.4);
48
- border-radius: 8px;
45
+ top: 1px;
46
+ background: #fe5042;
47
+ border-radius: 18px;
49
48
  height: 16px;
50
49
  font-size: 12px;
51
50
  color: #ffffff;
52
- line-height: 16px;
53
- padding: 0 4px;
51
+ line-height: 18px;
52
+ padding: 1px 5px;
54
53
  text-align: center;
55
54
  min-width: 8px;
55
+ font-weight: 400;
56
+ }
57
+
58
+ .titaui-nav-top-menu__menu--hasNum-active {
59
+ right: 5px;
60
+ top: 3px;
56
61
  }
57
62
 
58
63
  .titaui-nav-top-menu__hide-menus {
@@ -101,7 +101,7 @@ var Menu = function Menu(_ref) {
101
101
  return handleTracker(menu);
102
102
  }
103
103
  }, menu.title, menu.href === "#dynamic" && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("div", {
104
- className: "".concat(prefix, "__menu--hasNum")
104
+ className: (0, _classnames["default"])("".concat(prefix, "__menu--hasNum"), _defineProperty({}, "".concat(prefix, "__menu--hasNum-active"), activeMenuId === menu.id && menu.href === "#dynamic"))
105
105
  }, feedNum > 100 ? "99+" : feedNum))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
106
106
  condition: menu.title === "Learning"
107
107
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -26,13 +26,12 @@
26
26
 
27
27
  .titaui-user-message__msg-total {
28
28
  position: absolute;
29
- background: #f05e5e;
30
- box-shadow: 0px 2px 4px 0px rgba(240, 94, 94, 0.6), inset 0px 0px 2px 1px rgba(255, 255, 255, 0.4);
31
- border-radius: 8px;
29
+ background: #fe5042;
30
+ border-radius: 18px;
32
31
  font-size: 12px;
33
32
  color: #ffffff;
34
- line-height: 16px;
35
- padding: 0 4px;
33
+ line-height: 18px;
34
+ padding: 1px 5px;
36
35
  top: -4px;
37
36
  left: 12px;
38
37
  text-align: center;
@@ -9,7 +9,7 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _init = require("../init");
12
+ var _init = require("../../init");
13
13
 
14
14
  var _excluded = ["chartId"];
15
15
 
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
 
8
- var _components = _interopRequireDefault(require("./components"));
8
+ var _chart = _interopRequireDefault(require("./components/chart"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
 
12
- var _default = _components["default"];
12
+ var _default = _chart["default"];
13
13
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.31",
3
+ "version": "1.10.33",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",