@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.isRecharge()) cb(_menus.PAGE_RECHARGE_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);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: "isRecharge",
38
- value: function isRecharge() {
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.PAGE_RECHARGE_DEMOFREE = exports.PAGE_IGNORED_DEMOFREE = 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_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 PAGE_RECHARGE_DEMOFREE = "recharge";
43
- exports.PAGE_RECHARGE_DEMOFREE = PAGE_RECHARGE_DEMOFREE;
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
- type: _index.MENU_ITEM_NOE
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.14",
3
+ "version": "1.10.15",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",