@titaui/pc 1.12.9 → 1.12.10
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.isRechargeList()) cb(_menus.PAGE_RECHARGE_LIST);else if (this.isRechargeStatistics()) cb(_menus.PAGE_RECHARGE_STATISTICS);else if (this.isRechargeStatus()) cb(_menus.PAGE_RECHARGE_STATUS);else if (this.isDueDateOrder()) cb(_menus.PAGE_DUEDATE_ORDER);
|
|
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);else if (this.isRechargeStatus()) cb(_menus.PAGE_RECHARGE_STATUS);else if (this.isDueDateOrder()) cb(_menus.PAGE_DUEDATE_ORDER);else if (this.isAllCustomer()) cb(_menus.PAGE_ALL_CUSTOMER);else if (this.isPublicCustomer()) cb(_menus.PAGE_PUBLIC_CUSTOMER);else if (this.isMyCustomer()) cb(_menus.PAGE_MY_CUSTOMER);
|
|
29
29
|
}
|
|
30
30
|
}, {
|
|
31
31
|
key: "isChart",
|
|
@@ -102,6 +102,24 @@ var _default = /*#__PURE__*/function () {
|
|
|
102
102
|
search = _this$history$locatio5.search;
|
|
103
103
|
return pathname.match(/demofree/) && search.match(/selected[\s]*?=[\s]*?ignore/);
|
|
104
104
|
}
|
|
105
|
+
}, {
|
|
106
|
+
key: "isPublicCustomer",
|
|
107
|
+
value: function isPublicCustomer() {
|
|
108
|
+
var pathname = this.history.location.pathname;
|
|
109
|
+
return pathname.match(/demofree\/customer\/public/);
|
|
110
|
+
}
|
|
111
|
+
}, {
|
|
112
|
+
key: "isMyCustomer",
|
|
113
|
+
value: function isMyCustomer() {
|
|
114
|
+
var pathname = this.history.location.pathname;
|
|
115
|
+
return pathname.match(/demofree\/customer\/my/);
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
key: "isAllCustomer",
|
|
119
|
+
value: function isAllCustomer() {
|
|
120
|
+
var pathname = this.history.location.pathname;
|
|
121
|
+
return pathname.match(/demofree\/customer\/all/);
|
|
122
|
+
}
|
|
105
123
|
}]);
|
|
106
124
|
|
|
107
125
|
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_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_RECHARGE_STATUS = exports.PAGE_RECHARGE_STATISTICS = exports.PAGE_RECHARGE_LIST = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DUEDATE_ORDER = exports.PAGE_DONE_DEMOFREE = exports.PAGE_CHARTS_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
|
|
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_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 = void 0;
|
|
7
7
|
|
|
8
8
|
var _index = require("../../components/menu-tree/tree-node/index");
|
|
9
9
|
|
|
@@ -40,6 +40,14 @@ var PAGE_IGNORED_DEMOFREE = "ignore";
|
|
|
40
40
|
exports.PAGE_IGNORED_DEMOFREE = PAGE_IGNORED_DEMOFREE;
|
|
41
41
|
var PAGE_CHARTS_DEMOFREE = "charts";
|
|
42
42
|
exports.PAGE_CHARTS_DEMOFREE = PAGE_CHARTS_DEMOFREE;
|
|
43
|
+
var PAGE_ALL_CUSTOMER = "allCustomer";
|
|
44
|
+
exports.PAGE_ALL_CUSTOMER = PAGE_ALL_CUSTOMER;
|
|
45
|
+
var PAGE_PUBLIC_CUSTOMER = "publicCustomer";
|
|
46
|
+
exports.PAGE_PUBLIC_CUSTOMER = PAGE_PUBLIC_CUSTOMER;
|
|
47
|
+
var PAGE_MY_CUSTOMER = "myCustomer";
|
|
48
|
+
exports.PAGE_MY_CUSTOMER = PAGE_MY_CUSTOMER;
|
|
49
|
+
var PAGE_CHARTS = "charts";
|
|
50
|
+
exports.PAGE_CHARTS = PAGE_CHARTS;
|
|
43
51
|
var PAGE_RECHARGE_LIST = "rechargeList";
|
|
44
52
|
exports.PAGE_RECHARGE_LIST = PAGE_RECHARGE_LIST;
|
|
45
53
|
var PAGE_DUEDATE_ORDER = "dueDateOrder";
|
|
@@ -91,6 +99,31 @@ var DemoMenuData = /*#__PURE__*/function () {
|
|
|
91
99
|
href: "#/demofree/list?selected=ignore",
|
|
92
100
|
isShow: this.isManager === EManagerType.Manager
|
|
93
101
|
}]
|
|
102
|
+
}, {
|
|
103
|
+
icon: "KH-help",
|
|
104
|
+
label: "公海资源",
|
|
105
|
+
key: "customer",
|
|
106
|
+
href: "#/demofree/customer/public",
|
|
107
|
+
isShow: true,
|
|
108
|
+
children: [{
|
|
109
|
+
icon: "",
|
|
110
|
+
label: "全部客户",
|
|
111
|
+
key: PAGE_ALL_CUSTOMER,
|
|
112
|
+
href: "#/demofree/customer/all",
|
|
113
|
+
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
|
|
114
|
+
}, {
|
|
115
|
+
icon: "",
|
|
116
|
+
label: "公海资源",
|
|
117
|
+
key: PAGE_PUBLIC_CUSTOMER,
|
|
118
|
+
href: "#/demofree/customer/public",
|
|
119
|
+
isShow: this.isManager !== EManagerType.ReCharge
|
|
120
|
+
}, {
|
|
121
|
+
icon: "",
|
|
122
|
+
label: "我的资源",
|
|
123
|
+
key: PAGE_MY_CUSTOMER,
|
|
124
|
+
href: "#/demofree/customer/my",
|
|
125
|
+
isShow: this.isManager !== EManagerType.ReCharge
|
|
126
|
+
}]
|
|
94
127
|
}, {
|
|
95
128
|
icon: "KH-help",
|
|
96
129
|
label: "客户续费",
|