@titaui/pc 1.10.30 → 1.10.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.
@@ -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"], {
@@ -25,7 +25,7 @@ var _default = /*#__PURE__*/function () {
25
25
  _createClass(_default, [{
26
26
  key: "highlight",
27
27
  value: function highlight(cb) {
28
- if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);else if (this.isChart()) cb(_menus.PAGE_CHARTS_DEMOFREE);else if (this.isRechargeList()) cb(_menus.PAGE_RECHARGE_LIST);else if (this.isRechargeStatistics()) cb(_menus.PAGE_RECHARGE_STATISTICS);else if (this.isRechargeStatus()) cb(_menus.PAGE_RECHARGE_STATUS);
28
+ if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);else if (this.isChart()) cb(_menus.PAGE_CHARTS_DEMOFREE);else if (this.isRechargeList()) cb(_menus.PAGE_RECHARGE_LIST);else if (this.isRechargeStatistics()) cb(_menus.PAGE_RECHARGE_STATISTICS);else if (this.isRechargeStatus()) cb(_menus.PAGE_RECHARGE_STATUS);else if (this.isDueDateOrder()) cb(_menus.PAGE_DUEDATE_ORDER);
29
29
  }
30
30
  }, {
31
31
  key: "isChart",
@@ -39,6 +39,12 @@ var _default = /*#__PURE__*/function () {
39
39
  var pathname = this.history.location.pathname;
40
40
  return pathname.match(/demofree\/recharge\/status/);
41
41
  }
42
+ }, {
43
+ key: "isDueDateOrder",
44
+ value: function isDueDateOrder() {
45
+ var pathname = this.history.location.pathname;
46
+ return pathname.match(/demofree\/recharge\/order/);
47
+ }
42
48
  }, {
43
49
  key: "isRechargeList",
44
50
  value: function isRechargeList() {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_RECHARGE_STATUS = exports.PAGE_RECHARGE_STATISTICS = exports.PAGE_RECHARGE_LIST = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DONE_DEMOFREE = exports.PAGE_CHARTS_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
6
+ exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_RECHARGE_STATUS = exports.PAGE_RECHARGE_STATISTICS = exports.PAGE_RECHARGE_LIST = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DUEDATE_ORDER = exports.PAGE_DONE_DEMOFREE = exports.PAGE_CHARTS_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
7
7
 
8
8
  var _index = require("../../components/menu-tree/tree-node/index");
9
9
 
@@ -41,6 +41,8 @@ var PAGE_CHARTS_DEMOFREE = "charts";
41
41
  exports.PAGE_CHARTS_DEMOFREE = PAGE_CHARTS_DEMOFREE;
42
42
  var PAGE_RECHARGE_LIST = "rechargeList";
43
43
  exports.PAGE_RECHARGE_LIST = PAGE_RECHARGE_LIST;
44
+ var PAGE_DUEDATE_ORDER = "dueDateOrder";
45
+ exports.PAGE_DUEDATE_ORDER = PAGE_DUEDATE_ORDER;
44
46
  var PAGE_RECHARGE_STATISTICS = "rechargeStatistics";
45
47
  exports.PAGE_RECHARGE_STATISTICS = PAGE_RECHARGE_STATISTICS;
46
48
  var PAGE_RECHARGE_STATUS = "rechargeStatus";
@@ -96,24 +98,31 @@ var DemoMenuData = /*#__PURE__*/function () {
96
98
  isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager,
97
99
  children: [{
98
100
  icon: "",
99
- label: "到期订单",
101
+ label: "客户",
100
102
  key: PAGE_RECHARGE_LIST,
101
103
  href: "#/demofree/recharge/list",
102
104
  isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
103
- }, // {
105
+ }, {
106
+ icon: "",
107
+ label: "到期订单",
108
+ key: PAGE_DUEDATE_ORDER,
109
+ href: "#/demofree/recharge/order",
110
+ isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
111
+ } // {
104
112
  // icon: "",
105
113
  // label: "续费状态",
106
114
  // key: PAGE_RECHARGE_STATUS,
107
115
  // href: "#/demofree/recharge/status",
108
116
  // isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager,
109
117
  // },
110
- {
111
- icon: "",
112
- label: "数据统计",
113
- key: PAGE_RECHARGE_STATISTICS,
114
- href: "#/demofree/recharge/statistics",
115
- isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
116
- }]
118
+ // {
119
+ // icon: "",
120
+ // label: "数据统计",
121
+ // key: PAGE_RECHARGE_STATISTICS,
122
+ // href: "#/demofree/recharge/statistics",
123
+ // isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager,
124
+ // },
125
+ ]
117
126
  }, {
118
127
  icon: "KH-help",
119
128
  label: "预约演示报表",
@@ -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;
@@ -59,11 +59,6 @@ function _default(props) {
59
59
  return setShowKr(checked);
60
60
  }
61
61
  })), /*#__PURE__*/_react["default"].createElement("span", {
62
- className: (0, _classnames["default"])("".concat(_precls["default"], "-share-okr__header-dark")),
63
- onClick: function onClick() {
64
- return setDarkTheme(!darkTheme);
65
- }
66
- }, "\u5207\u6362", darkTheme ? "浅色" : "深色", "\u6A21\u5F0F"), /*#__PURE__*/_react["default"].createElement("span", {
67
62
  className: (0, _classnames["default"])("".concat(_precls["default"], "-share-okr__header-direction"))
68
63
  }, /*#__PURE__*/_react["default"].createElement(_iconButtonList["default"], {
69
64
  items: iconButtons,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.30",
3
+ "version": "1.10.34",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",