@titaui/pc 1.16.29-beta.1 → 1.16.30
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/menus/export-modules/survey-menu/menu-highlight.js +0 -8
- package/lib/components/menus/export-modules/survey-menu/menus.js +1 -17
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +1 -1
- package/lib/components/okr-excel-create/index.js +2 -2
- package/lib/components/table-excel-v2/index.css +0 -1
- package/lib/utils/open-data.js +18 -18
- package/package.json +1 -1
|
@@ -28,8 +28,6 @@ var _default = /*#__PURE__*/function () {
|
|
|
28
28
|
cb(_menus.PAGE_SURVEY_MANAGE);
|
|
29
29
|
} else if (this.isMyInvolved()) {
|
|
30
30
|
cb(_menus.PAGE_SURVEY_MY_INVOLVED);
|
|
31
|
-
} else if (this.isAssessSettings()) {
|
|
32
|
-
cb(_menus.PAGE_SURVEY_ASSESS_SETTINGS);
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
return null;
|
|
@@ -46,12 +44,6 @@ var _default = /*#__PURE__*/function () {
|
|
|
46
44
|
var pathname = this.history.location.pathname;
|
|
47
45
|
return pathname.match(/survey\/manage/);
|
|
48
46
|
}
|
|
49
|
-
}, {
|
|
50
|
-
key: "isAssessSettings",
|
|
51
|
-
value: function isAssessSettings() {
|
|
52
|
-
var pathname = this.history.location.pathname;
|
|
53
|
-
return pathname.match(/survey\/assess-settings/);
|
|
54
|
-
}
|
|
55
47
|
}]);
|
|
56
48
|
|
|
57
49
|
return _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.defaultRefObject = exports["default"] = exports.PAGE_SURVEY_MY_INVOLVED = exports.PAGE_SURVEY_MANAGE =
|
|
6
|
+
exports.defaultRefObject = exports["default"] = exports.PAGE_SURVEY_MY_INVOLVED = exports.PAGE_SURVEY_MANAGE = void 0;
|
|
7
7
|
|
|
8
8
|
var _index = require("../../components/menu-tree/tree-node/index");
|
|
9
9
|
|
|
@@ -24,8 +24,6 @@ var PAGE_SURVEY_MANAGE = 'surveymanage';
|
|
|
24
24
|
exports.PAGE_SURVEY_MANAGE = PAGE_SURVEY_MANAGE;
|
|
25
25
|
var PAGE_SURVEY_MY_INVOLVED = 'surveymyinvolved';
|
|
26
26
|
exports.PAGE_SURVEY_MY_INVOLVED = PAGE_SURVEY_MY_INVOLVED;
|
|
27
|
-
var PAGE_SURVEY_ASSESS_SETTINGS = 'assesssettings';
|
|
28
|
-
exports.PAGE_SURVEY_ASSESS_SETTINGS = PAGE_SURVEY_ASSESS_SETTINGS;
|
|
29
27
|
|
|
30
28
|
var surveyMenus = /*#__PURE__*/function () {
|
|
31
29
|
function surveyMenus(props) {
|
|
@@ -45,20 +43,6 @@ var surveyMenus = /*#__PURE__*/function () {
|
|
|
45
43
|
type: _index.MENU_ITEM_NOE,
|
|
46
44
|
href: '#/survey/my-involved',
|
|
47
45
|
isShow: true
|
|
48
|
-
}, {
|
|
49
|
-
icon: "",
|
|
50
|
-
label: '基础设置',
|
|
51
|
-
key: "other",
|
|
52
|
-
type: _index.GROUP_NAME_NODE,
|
|
53
|
-
href: "",
|
|
54
|
-
isShow: props.isShowSurveyManage
|
|
55
|
-
}, {
|
|
56
|
-
icon: 'setting',
|
|
57
|
-
label: '评估设置',
|
|
58
|
-
key: PAGE_SURVEY_ASSESS_SETTINGS,
|
|
59
|
-
type: _index.MENU_ITEM_NOE,
|
|
60
|
-
href: '#/survey/assess-settings',
|
|
61
|
-
isShow: props.isShowSurveyManage
|
|
62
46
|
}];
|
|
63
47
|
}
|
|
64
48
|
|
|
@@ -335,7 +335,7 @@ function _default(props) {
|
|
|
335
335
|
_drawerManager["default"].close();
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
window.open("
|
|
338
|
+
window.open("//".concat(window.location.host).concat(window.location.pathname, "#more/taskinfo?id=").concat(data.taskId));
|
|
339
339
|
};
|
|
340
340
|
|
|
341
341
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -342,8 +342,8 @@ var OKRExcelCreate = function OKRExcelCreate(_ref3) {
|
|
|
342
342
|
}, /*#__PURE__*/_react["default"].createElement(_tableExcelV["default"], {
|
|
343
343
|
className: (0, _classnames["default"])("".concat(preCls, "__table-excel-v2 ").concat(tableClassName), _defineProperty({}, "".concat(preCls, "--disabled-remove"), hiddenRemoveIcon)),
|
|
344
344
|
rowKey: "uuid",
|
|
345
|
-
fixedHeader: true,
|
|
346
|
-
|
|
345
|
+
fixedHeader: true // pinned={[1, 0]}
|
|
346
|
+
,
|
|
347
347
|
columns: columnsOption,
|
|
348
348
|
dataSource: excelTableData,
|
|
349
349
|
rowLastNode: /*#__PURE__*/_react["default"].createElement("div", {
|
package/lib/utils/open-data.js
CHANGED
|
@@ -9,8 +9,6 @@ exports.parseTag = exports.parseStringV2 = exports.parseString = exports.parseOp
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var Sentry = _interopRequireWildcard(require("@sentry/browser"));
|
|
13
|
-
|
|
14
12
|
var _bsGlobal = require("./bs-global");
|
|
15
13
|
|
|
16
14
|
var _openDataPainter = require("../components/open-data-painter");
|
|
@@ -101,22 +99,24 @@ function openData() {
|
|
|
101
99
|
var openId = pCorpId || getOpenId(pId, pType);
|
|
102
100
|
|
|
103
101
|
if (!openId) {
|
|
104
|
-
if (pId !== undefined && !ignorePIds.includes(pId)) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
102
|
+
if (pId !== undefined && !ignorePIds.includes(pId)) {// Sentry.withScope((scope) => {
|
|
103
|
+
// scope.setTag('error-level', 'P1')
|
|
104
|
+
// scope.setTag('error-type', 'openId不存在')
|
|
105
|
+
// scope.setTag('fail-type', pType)
|
|
106
|
+
// scope.setTag('p-id', pId)
|
|
107
|
+
// scope.setTag('p-name', pName)
|
|
108
|
+
// scope.setExtra('fail_type', pType)
|
|
109
|
+
// scope.setExtra('p_id', pId)
|
|
110
|
+
// scope.setExtra('p_name', pName)
|
|
111
|
+
// scope.setExtra('corp_id', pCorpId)
|
|
112
|
+
// scope.setExtra('open_id', getOpenId(pId, pType))
|
|
113
|
+
// p.callFunc && scope.setExtra('fail_callFunc', p.callFunc)
|
|
114
|
+
// p.extra && scope.setExtra('fail_extra', p.extra)
|
|
115
|
+
// Sentry.captureException(
|
|
116
|
+
// new Error('企业微信openData调用失败'),
|
|
117
|
+
// scope,
|
|
118
|
+
// )
|
|
119
|
+
// })
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
return pName || pId || null;
|