@titaui/pc 1.10.0 → 1.10.3
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/demo-menus/menu-highlight.js +9 -3
- package/lib/components/menus/export-modules/demo-menus/menus.js +12 -35
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +5 -0
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +1 -1
- package/lib/pages/aha2021/index.js +1 -1
- package/package.json +1 -1
|
@@ -25,7 +25,13 @@ 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);
|
|
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);
|
|
29
|
+
}
|
|
30
|
+
}, {
|
|
31
|
+
key: "isChart",
|
|
32
|
+
value: function isChart() {
|
|
33
|
+
var pathname = this.history.location.pathname;
|
|
34
|
+
return pathname.match(/demofree\/charts/);
|
|
29
35
|
}
|
|
30
36
|
}, {
|
|
31
37
|
key: "isUnAssigned",
|
|
@@ -35,7 +41,7 @@ var _default = /*#__PURE__*/function () {
|
|
|
35
41
|
search = _this$history$locatio.search;
|
|
36
42
|
|
|
37
43
|
if (this.isManager === 1) {
|
|
38
|
-
return pathname.match(/demofree/) && (!search || search.match(/selected[\s]*?=[\s]*?unassigned/));
|
|
44
|
+
return pathname.match(/demofree\/list/) && (!search || search.match(/selected[\s]*?=[\s]*?unassigned/));
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
return pathname.match(/demofree/) && search.match(/selected[\s]*?=[\s]*?unassigned/);
|
|
@@ -46,7 +52,7 @@ var _default = /*#__PURE__*/function () {
|
|
|
46
52
|
var _this$history$locatio2 = this.history.location,
|
|
47
53
|
pathname = _this$history$locatio2.pathname,
|
|
48
54
|
search = _this$history$locatio2.search;
|
|
49
|
-
return pathname.match(/demofree/) && (!search || search.match(/selected[\s]*?=[\s]*?assigned/));
|
|
55
|
+
return pathname.match(/demofree\/list/) && (!search || search.match(/selected[\s]*?=[\s]*?assigned/));
|
|
50
56
|
}
|
|
51
57
|
}, {
|
|
52
58
|
key: "isReserved",
|
|
@@ -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_IGNORED_DEMOFREE = exports.PAGE_DONE_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
|
|
6
|
+
exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_IGNORED_DEMOFREE = 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
|
|
|
@@ -28,6 +28,8 @@ var PAGE_DONE_DEMOFREE = "done";
|
|
|
28
28
|
exports.PAGE_DONE_DEMOFREE = PAGE_DONE_DEMOFREE;
|
|
29
29
|
var PAGE_IGNORED_DEMOFREE = "ignore";
|
|
30
30
|
exports.PAGE_IGNORED_DEMOFREE = PAGE_IGNORED_DEMOFREE;
|
|
31
|
+
var PAGE_CHARTS_DEMOFREE = "charts";
|
|
32
|
+
exports.PAGE_CHARTS_DEMOFREE = PAGE_CHARTS_DEMOFREE;
|
|
31
33
|
|
|
32
34
|
var DemoMenuData = /*#__PURE__*/function () {
|
|
33
35
|
function DemoMenuData() {
|
|
@@ -73,40 +75,15 @@ var DemoMenuData = /*#__PURE__*/function () {
|
|
|
73
75
|
href: "#/demofree/list?selected=ignore",
|
|
74
76
|
isShow: this.isManager
|
|
75
77
|
}]
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
// label: "未处理",
|
|
86
|
-
// key: "ignore",
|
|
87
|
-
// href: "#/demofree/custom?selected=未处理",
|
|
88
|
-
// isShow: true,
|
|
89
|
-
// },{
|
|
90
|
-
// icon: "",
|
|
91
|
-
// label: "待定",
|
|
92
|
-
// key: "ignore",
|
|
93
|
-
// href: "#/demofree/custom?selected=待定",
|
|
94
|
-
// isShow: true,
|
|
95
|
-
// },{
|
|
96
|
-
// icon: "",
|
|
97
|
-
// label: "已续费",
|
|
98
|
-
// key: "ignore",
|
|
99
|
-
// href: "#/demofree/custom?selected=已续费",
|
|
100
|
-
// isShow: true,
|
|
101
|
-
// },{
|
|
102
|
-
// icon: "",
|
|
103
|
-
// label: "未续费",
|
|
104
|
-
// key: "ignore",
|
|
105
|
-
// href: "#/demofree/custom?selected=未续费",
|
|
106
|
-
// isShow: true,
|
|
107
|
-
// }]
|
|
108
|
-
// },
|
|
109
|
-
];
|
|
78
|
+
}, {
|
|
79
|
+
icon: "KH-help",
|
|
80
|
+
label: "预约演示报表",
|
|
81
|
+
key: "charts",
|
|
82
|
+
href: "#/demofree/charts",
|
|
83
|
+
isShow: this.isManager,
|
|
84
|
+
children: [],
|
|
85
|
+
type: _index.MENU_ITEM_NOE
|
|
86
|
+
}];
|
|
110
87
|
}
|
|
111
88
|
|
|
112
89
|
_createClass(DemoMenuData, [{
|
|
@@ -172,6 +172,11 @@ function Inform(props) {
|
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
if (objId && objType == 74) {
|
|
176
|
+
window.open("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#performance?formId=").concat(item.objId, "&reactRouterName=detail"));
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
|
|
175
180
|
var reg = /href='.*?(?=')/g;
|
|
176
181
|
var url = "";
|
|
177
182
|
item.content.replace(reg, function ($0) {
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
.tita-okrdt-tree__e-empty-node {
|
|
380
380
|
font-size: 12px;
|
|
381
381
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
382
|
-
color: #
|
|
382
|
+
color: #A4ACB9;
|
|
383
383
|
line-height: 18px;
|
|
384
384
|
padding-left: 12px;
|
|
385
385
|
}
|
|
@@ -110,7 +110,7 @@ function PageLayout(props) {
|
|
|
110
110
|
}
|
|
111
111
|
}, children), !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
112
|
className: (0, _classnames["default"])("".concat(preCls, "__help"))
|
|
113
|
-
}, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !isTrial && !isTencentHr && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
113
|
+
}, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !isTrial && !isTencentHr && !(0, _helpers.isDingDing)() && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
114
114
|
overlay: "\u8054\u7CFB\u5BA2\u670D",
|
|
115
115
|
placement: "left",
|
|
116
116
|
align: {
|