@titaui/pc 1.10.14 → 1.10.15
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.
|
@@ -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.
|
|
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);
|
|
29
29
|
}
|
|
30
30
|
}, {
|
|
31
31
|
key: "isChart",
|
|
@@ -34,10 +34,16 @@ var _default = /*#__PURE__*/function () {
|
|
|
34
34
|
return pathname.match(/demofree\/charts/);
|
|
35
35
|
}
|
|
36
36
|
}, {
|
|
37
|
-
key: "
|
|
38
|
-
value: function
|
|
37
|
+
key: "isRechargeList",
|
|
38
|
+
value: function isRechargeList() {
|
|
39
39
|
var pathname = this.history.location.pathname;
|
|
40
|
-
return pathname.match(/demofree\/recharge/);
|
|
40
|
+
return pathname.match(/demofree\/recharge\/list/);
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
key: "isRechargeStatistics",
|
|
44
|
+
value: function isRechargeStatistics() {
|
|
45
|
+
var pathname = this.history.location.pathname;
|
|
46
|
+
return pathname.match(/demofree\/recharge\/statistics/);
|
|
41
47
|
}
|
|
42
48
|
}, {
|
|
43
49
|
key: "isUnAssigned",
|
|
@@ -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.
|
|
6
|
+
exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = 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;
|
|
7
7
|
|
|
8
8
|
var _index = require("../../components/menu-tree/tree-node/index");
|
|
9
9
|
|
|
@@ -39,8 +39,10 @@ var PAGE_IGNORED_DEMOFREE = "ignore";
|
|
|
39
39
|
exports.PAGE_IGNORED_DEMOFREE = PAGE_IGNORED_DEMOFREE;
|
|
40
40
|
var PAGE_CHARTS_DEMOFREE = "charts";
|
|
41
41
|
exports.PAGE_CHARTS_DEMOFREE = PAGE_CHARTS_DEMOFREE;
|
|
42
|
-
var
|
|
43
|
-
exports.
|
|
42
|
+
var PAGE_RECHARGE_LIST = "rechargeList";
|
|
43
|
+
exports.PAGE_RECHARGE_LIST = PAGE_RECHARGE_LIST;
|
|
44
|
+
var PAGE_RECHARGE_STATISTICS = "rechargeStatistics";
|
|
45
|
+
exports.PAGE_RECHARGE_STATISTICS = PAGE_RECHARGE_STATISTICS;
|
|
44
46
|
|
|
45
47
|
var DemoMenuData = /*#__PURE__*/function () {
|
|
46
48
|
function DemoMenuData(isManager) {
|
|
@@ -98,8 +100,19 @@ var DemoMenuData = /*#__PURE__*/function () {
|
|
|
98
100
|
key: "recharge",
|
|
99
101
|
href: "#/demofree/recharge",
|
|
100
102
|
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager,
|
|
101
|
-
children: [
|
|
102
|
-
|
|
103
|
+
children: [{
|
|
104
|
+
icon: "",
|
|
105
|
+
label: "到期客户",
|
|
106
|
+
key: PAGE_RECHARGE_LIST,
|
|
107
|
+
href: "#/demofree/recharge/list",
|
|
108
|
+
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
|
|
109
|
+
}, {
|
|
110
|
+
icon: "",
|
|
111
|
+
label: "数据统计",
|
|
112
|
+
key: PAGE_RECHARGE_STATISTICS,
|
|
113
|
+
href: "#/demofree/recharge/statistics",
|
|
114
|
+
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
|
|
115
|
+
}]
|
|
103
116
|
}];
|
|
104
117
|
}
|
|
105
118
|
|