@titaui/pc 1.11.6 → 1.11.9

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.
@@ -72,7 +72,7 @@ function _default(props) {
72
72
  name: "2"
73
73
  }, /*#__PURE__*/_react["default"].createElement("span", {
74
74
  className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-p2 ").concat(preCls, "__e-task-node-select-priority"))
75
- }), (0, _getLocale.getLocale)("OKR_MyO_E_Butt_Highest")), /*#__PURE__*/_react["default"].createElement(_dropSelector["default"].IconItem, {
75
+ }), (0, _getLocale.getLocale)("OKR_MyO_E_Butt_High")), /*#__PURE__*/_react["default"].createElement(_dropSelector["default"].IconItem, {
76
76
  name: "3"
77
77
  }, /*#__PURE__*/_react["default"].createElement("span", {
78
78
  className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-p3 ").concat(preCls, "__e-task-node-select-priority"))
@@ -72,7 +72,7 @@ function _default(props) {
72
72
  name: "2"
73
73
  }, /*#__PURE__*/_react["default"].createElement("span", {
74
74
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-priority-p2 ").concat(_precls["default"], "__e-task-node-select-priority"))
75
- }), (0, _getLocale.getLocale)("OKR_MyO_E_Butt_Highest")), /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
75
+ }), (0, _getLocale.getLocale)("OKR_MyO_E_Butt_High")), /*#__PURE__*/_react["default"].createElement(_dropSelector.Item, {
76
76
  name: "3"
77
77
  }, /*#__PURE__*/_react["default"].createElement("span", {
78
78
  className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-priority-p3 ").concat(_precls["default"], "__e-task-node-select-priority"))
@@ -29,6 +29,8 @@ var _tools = require("../../utils/tools");
29
29
 
30
30
  require("./index.css");
31
31
 
32
+ var _window$BSGlobal, _window$BSGlobal$tena, _window$BSGlobal2, _window$BSGlobal2$ten;
33
+
32
34
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
33
35
 
34
36
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -53,6 +55,7 @@ var preCls = 'tita-survey-model';
53
55
  var Rect = _button["default"].Rect;
54
56
  var loginUserInfo = window.BSGlobal.loginUserInfo;
55
57
  var Role = new _auth.MyRole();
58
+ var Version = ((_window$BSGlobal = window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$tena = _window$BSGlobal.tenantAuthentication) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.version) || ((_window$BSGlobal2 = window.BSGlobal) === null || _window$BSGlobal2 === void 0 ? void 0 : (_window$BSGlobal2$ten = _window$BSGlobal2.tenantAuthentication) === null || _window$BSGlobal2$ten === void 0 ? void 0 : _window$BSGlobal2$ten.Version) || 1;
56
59
 
57
60
  var SurveyModel = function SurveyModel(_ref) {
58
61
  var activityName = _ref.activityName,
@@ -100,6 +103,7 @@ var SurveyModel = function SurveyModel(_ref) {
100
103
  };
101
104
 
102
105
  (0, _react.useEffect)(function () {
106
+ if (Version === 1) return;
103
107
  if (!!window.location.hostname.match(/.work/)) return;
104
108
  var newDate = (0, _dayjs["default"])();
105
109
  var oldDate = localStorage.getItem("survey_model_date__".concat(loginUserInfo.Id));
@@ -125,7 +129,7 @@ var SurveyModel = function SurveyModel(_ref) {
125
129
  if (!(res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && (_res$data$list = _res$data.list) !== null && _res$data$list !== void 0 && _res$data$list.length)) {
126
130
  setTimeout(function () {
127
131
  setDialogVisible(true);
128
- }, 1000 * 60);
132
+ }, 15000);
129
133
  } else {
130
134
  setDialogVisible(false);
131
135
  }
@@ -156,12 +160,9 @@ var SurveyModel = function SurveyModel(_ref) {
156
160
  };
157
161
 
158
162
  var handleSubmit = function handleSubmit(contact) {
159
- var _window$BSGlobal, _window$BSGlobal$tena, _window$BSGlobal2, _window$BSGlobal2$ten;
160
-
161
163
  var tenantInfo = window.BSGlobal.tenantInfo;
162
164
  var npsStartTime = (0, _dayjs["default"])(startTime).unix();
163
165
  var npsEndTime = (0, _dayjs["default"])(endTime).unix();
164
- var Version = ((_window$BSGlobal = window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$tena = _window$BSGlobal.tenantAuthentication) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.version) || ((_window$BSGlobal2 = window.BSGlobal) === null || _window$BSGlobal2 === void 0 ? void 0 : (_window$BSGlobal2$ten = _window$BSGlobal2.tenantAuthentication) === null || _window$BSGlobal2$ten === void 0 ? void 0 : _window$BSGlobal2$ten.Version) || 1;
165
166
  var result = {
166
167
  fields: {
167
168
  nps_activity_name: activityName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.11.6",
3
+ "version": "1.11.9",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",