@titaui/pc 1.10.2 → 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.
@@ -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
- // icon: "KH-help",
78
- // label: "客户续费情况",
79
- // key: "custom",
80
- // href: "#/custom",
81
- // isShow: true,
82
- // type: MENU_ITEM_NOE,
83
- // children:[{
84
- // icon: "",
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, [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.2",
3
+ "version": "1.10.3",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",