@titaui/pc 1.15.54 → 1.15.57

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.
@@ -30,6 +30,12 @@
30
30
  color: #89919F;
31
31
  }
32
32
 
33
+ .titaui-expiration-reminder__contact-out {
34
+ color: #2879ff;
35
+ margin-left: 16px;
36
+ cursor: pointer;
37
+ }
38
+
33
39
  .titaui-expiration-reminder__contact-number::selection {
34
40
  background-color: #2879ff;
35
41
  color: #ffffff;
@@ -62,6 +62,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
62
62
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
63
63
 
64
64
  var prefixCls = 'titaui-expiration-reminder';
65
+ var isOffiial = (0, _bsGlobal.getTenantInfo)().Source === 0;
65
66
 
66
67
  var ExpirationReminder = function ExpirationReminder() {
67
68
  var _trialVersion, _officialVersion;
@@ -250,12 +251,17 @@ var ExpirationReminder = function ExpirationReminder() {
250
251
  }, title, content, /*#__PURE__*/_react["default"].createElement("div", {
251
252
  className: "".concat(prefixCls, "__footer")
252
253
  }, /*#__PURE__*/_react["default"].createElement("p", null, button), /*#__PURE__*/_react["default"].createElement("p", {
253
- className: "".concat(prefixCls, "__contact"),
254
- onClick: onCopy
254
+ className: "".concat(prefixCls, "__contact")
255
255
  }, "\u8054\u7CFB\u7535\u8BDD:", /*#__PURE__*/_react["default"].createElement("span", {
256
256
  className: "".concat(prefixCls, "__contact-number"),
257
+ onClick: onCopy,
257
258
  ref: telRef
258
- }, _utils.ContactNumber))), closeEnable && /*#__PURE__*/_react["default"].createElement("div", {
259
+ }, _utils.ContactNumber), isOffiial && /*#__PURE__*/_react["default"].createElement("span", {
260
+ className: "".concat(prefixCls, "__contact-out"),
261
+ onClick: function onClick() {
262
+ return window.open('/Account/Logout', '_self ');
263
+ }
264
+ }, "\u9000\u51FA\u767B\u5F55"))), closeEnable && /*#__PURE__*/_react["default"].createElement("div", {
259
265
  className: "".concat(prefixCls, "__close"),
260
266
  onClick: deleteCache
261
267
  }), /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
@@ -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_PUBLIC_CUSTOMER = exports.PAGE_MY_CUSTOMER = exports.PAGE_LIMIT_CUSTOMER = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DUEDATE_ORDER = exports.PAGE_DONE_DEMOFREE = exports.PAGE_CHARTS_DEMOFREE = exports.PAGE_CHARTS = exports.PAGE_ASSIGNED_DEMOFREE = exports.PAGE_ALL_CUSTOMER = exports.ERoleType = void 0;
6
+ exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_STAFF_ROLES_MANAGEMENT = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_RECHARGE_STATUS = exports.PAGE_RECHARGE_STATISTICS = exports.PAGE_RECHARGE_LIST = exports.PAGE_PUBLIC_CUSTOMER = exports.PAGE_MY_CUSTOMER = exports.PAGE_LIMIT_CUSTOMER = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DUEDATE_ORDER = exports.PAGE_DONE_DEMOFREE = exports.PAGE_CHARTS_DEMOFREE = exports.PAGE_CHARTS = exports.PAGE_ASSIGNED_DEMOFREE = exports.PAGE_ALL_CUSTOMER = exports.ERoleType = void 0;
7
7
 
8
8
  var _index = require("../../components/menu-tree/tree-node/index");
9
9
 
@@ -62,6 +62,8 @@ var PAGE_RECHARGE_STATISTICS = "rechargeStatistics";
62
62
  exports.PAGE_RECHARGE_STATISTICS = PAGE_RECHARGE_STATISTICS;
63
63
  var PAGE_RECHARGE_STATUS = "rechargeStatus";
64
64
  exports.PAGE_RECHARGE_STATUS = PAGE_RECHARGE_STATUS;
65
+ var PAGE_STAFF_ROLES_MANAGEMENT = 'staffManagement';
66
+ exports.PAGE_STAFF_ROLES_MANAGEMENT = PAGE_STAFF_ROLES_MANAGEMENT;
65
67
 
66
68
  var DemoMenuData = /*#__PURE__*/function () {
67
69
  function DemoMenuData(roleList, showCompeteCustomer) {
@@ -152,7 +154,7 @@ var DemoMenuData = /*#__PURE__*/function () {
152
154
  })
153
155
  }]
154
156
  }, {
155
- icon: "KH-help",
157
+ icon: "PF-shezhi",
156
158
  label: "客户续费",
157
159
  key: "recharge",
158
160
  href: "#/demofree/recharge",
@@ -176,6 +178,19 @@ var DemoMenuData = /*#__PURE__*/function () {
176
178
  return [ERoleType.CRM, ERoleType.Manager].includes(role);
177
179
  })
178
180
  }]
181
+ }, {
182
+ icon: "setting",
183
+ label: "人员管理",
184
+ key: "management",
185
+ href: "#/demofree/management",
186
+ isShow: this.isManager,
187
+ children: [{
188
+ icon: "",
189
+ label: "员工列表",
190
+ key: PAGE_STAFF_ROLES_MANAGEMENT,
191
+ href: "#/demofree/management",
192
+ isShow: this.isManager
193
+ }]
179
194
  }];
180
195
  }
181
196
 
@@ -130,7 +130,9 @@ function OkrDetail(props) {
130
130
  }, [props.activeTabKey]);
131
131
  (0, _react.useEffect)(function () {
132
132
  if (okrId && okrInfo.feedId) {
133
- window.titaTracker && window.titaTracker("discoveryAction").record({
133
+ var _window$titaTracker;
134
+
135
+ window.titaTracker && ((_window$titaTracker = window.titaTracker("discoveryAction")) === null || _window$titaTracker === void 0 ? void 0 : _window$titaTracker.record({
134
136
  "actionName": "查看okr",
135
137
  "actionGroup": "okr推屏",
136
138
  "productName": 'okr',
@@ -138,7 +140,7 @@ function OkrDetail(props) {
138
140
  "feedId": okrInfo.feedId,
139
141
  "action_id": 1,
140
142
  "okr_id": okrId
141
- });
143
+ }));
142
144
  }
143
145
  }, [okrId, okrInfo]);
144
146
 
@@ -103,6 +103,9 @@ function openData() {
103
103
  Sentry.withScope(function (scope) {
104
104
  scope.setTag('error-level', 'P1');
105
105
  scope.setTag('error-type', 'openId不存在');
106
+ scope.setTag('fail-type', pType);
107
+ scope.setTag('p-id', pId);
108
+ scope.setTag('p-name', pName);
106
109
  scope.setExtra('fail_type', pType);
107
110
  scope.setExtra('p_id', pId);
108
111
  scope.setExtra('p_name', pName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.15.54",
3
+ "version": "1.15.57",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",