@titaui/pc 1.10.14 → 1.10.16

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);else if (this.isRechargeStatus()) cb(_menus.PAGE_RECHARGE_STATUS);
29
29
  }
30
30
  }, {
31
31
  key: "isChart",
@@ -34,10 +34,22 @@ var _default = /*#__PURE__*/function () {
34
34
  return pathname.match(/demofree\/charts/);
35
35
  }
36
36
  }, {
37
- key: "isRecharge",
38
- value: function isRecharge() {
37
+ key: "isRechargeStatus",
38
+ value: function isRechargeStatus() {
39
39
  var pathname = this.history.location.pathname;
40
- return pathname.match(/demofree\/recharge/);
40
+ return pathname.match(/demofree\/recharge\/status/);
41
+ }
42
+ }, {
43
+ key: "isRechargeList",
44
+ value: function isRechargeList() {
45
+ var pathname = this.history.location.pathname;
46
+ return pathname.match(/demofree\/recharge\/list/);
47
+ }
48
+ }, {
49
+ key: "isRechargeStatistics",
50
+ value: function isRechargeStatistics() {
51
+ var pathname = this.history.location.pathname;
52
+ return pathname.match(/demofree\/recharge\/statistics/);
41
53
  }
42
54
  }, {
43
55
  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_STATUS = 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,12 @@ 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;
46
+ var PAGE_RECHARGE_STATUS = "rechargeStatus";
47
+ exports.PAGE_RECHARGE_STATUS = PAGE_RECHARGE_STATUS;
44
48
 
45
49
  var DemoMenuData = /*#__PURE__*/function () {
46
50
  function DemoMenuData(isManager) {
@@ -98,8 +102,25 @@ var DemoMenuData = /*#__PURE__*/function () {
98
102
  key: "recharge",
99
103
  href: "#/demofree/recharge",
100
104
  isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager,
101
- children: [],
102
- type: _index.MENU_ITEM_NOE
105
+ children: [{
106
+ icon: "",
107
+ label: "到期客户",
108
+ key: PAGE_RECHARGE_LIST,
109
+ href: "#/demofree/recharge/list",
110
+ isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
111
+ }, {
112
+ icon: "",
113
+ label: "数据统计",
114
+ key: PAGE_RECHARGE_STATISTICS,
115
+ href: "#/demofree/recharge/statistics",
116
+ isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
117
+ }, {
118
+ icon: "",
119
+ label: "续费状态",
120
+ key: PAGE_RECHARGE_STATUS,
121
+ href: "#/demofree/recharge/status",
122
+ isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
123
+ }]
103
124
  }];
104
125
  }
105
126
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.14",
3
+ "version": "1.10.16",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",