tplus-portaltouch 3.17.14 → 3.18.2

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.
@@ -5,14 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = undefined;
7
7
 
8
- var _stringify = require('babel-runtime/core-js/json/stringify');
9
-
10
- var _stringify2 = _interopRequireDefault(_stringify);
11
-
12
- var _promise = require('babel-runtime/core-js/promise');
13
-
14
- var _promise2 = _interopRequireDefault(_promise);
15
-
16
8
  var _regenerator = require('babel-runtime/regenerator');
17
9
 
18
10
  var _regenerator2 = _interopRequireDefault(_regenerator);
@@ -21,6 +13,14 @@ var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
21
13
 
22
14
  var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
23
15
 
16
+ var _promise = require('babel-runtime/core-js/promise');
17
+
18
+ var _promise2 = _interopRequireDefault(_promise);
19
+
20
+ var _stringify = require('babel-runtime/core-js/json/stringify');
21
+
22
+ var _stringify2 = _interopRequireDefault(_stringify);
23
+
24
24
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
25
25
 
26
26
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -44,7 +44,7 @@ var _inherits3 = _interopRequireDefault(_inherits2);
44
44
  var _class, _class2, _temp, _initialiseProps; /*
45
45
  * @Description:
46
46
  * @Date: 2019-08-13 08:42:18
47
- * @LastEditTime: 2021-09-02 14:35:59
47
+ * @LastEditTime: 2020-10-22 14:19:17
48
48
  * @LastEditors: chenlongad
49
49
  * @modify:修改跳转到T+的查询方案方式
50
50
  */
@@ -144,42 +144,57 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
144
144
 
145
145
  (0, _createClass3.default)(_default, [{
146
146
  key: 'componentWillMount',
147
- value: function () {
148
- var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
149
- return _regenerator2.default.wrap(function _callee$(_context) {
150
- while (1) {
151
- switch (_context.prev = _context.next) {
152
- case 0:
153
- _context.next = 2;
154
- return this.catchOfflineData();
155
-
156
- case 2:
157
- _context.next = 4;
158
- return this.getOperation();
159
-
160
- case 4:
161
- case 'end':
162
- return _context.stop();
163
- }
164
- }
165
- }, _callee, this);
166
- }));
167
-
168
- function componentWillMount() {
169
- return _ref2.apply(this, arguments);
170
- }
171
-
172
- return componentWillMount;
173
- }()
147
+ value: function componentWillMount() {
148
+ var _this2 = this;
149
+
150
+ var _context = this.context,
151
+ _context$stores = _context.stores;
152
+ _context$stores = _context$stores === undefined ? {} : _context$stores;
153
+ var portalStore = _context$stores.portalStore,
154
+ _context$headHook = _context.headHook;
155
+ _context$headHook = _context$headHook === undefined ? {} : _context$headHook;
156
+ var addClass = _context$headHook.addClass;
157
+ var homeOperation = _ModifyPassApi.Request.homeOperation,
158
+ functionData = _ModifyPassApi.Request.functionData;
174
159
 
160
+ _tplusComponentsTouch.Loading.show({
161
+ text: '首页权限加载中...',
162
+ delay: 2500
163
+ });
164
+ homeOperation().then(function (operations) {
165
+ _mutantsMicrofx.localStore.set('operationsAuth', (0, _stringify2.default)(operations));
166
+ _this2.setState({ operations: operations });
167
+ _tplusComponentsTouch.Loading.hide();
168
+ }).catch(function (err) {
169
+ console.log('homeOperation.error======', err);
170
+ _tplusComponentsTouch.Loading.hide();
171
+ });
172
+ functionData().then(function (data) {
173
+ // 加载权限数据 DR-29735 by majian
174
+ (0, _tplusPoslogin.PosSetData)(data);
175
+ });
176
+ // portalStore && portalStore.getPortalMenu();
177
+ addClass && addClass(this.state.id, 'portalHead');
178
+ // 初始化参数设置。
179
+ _mutantsMicrofx.stores.setStore.initSetParams().then(function (ret) {
180
+ // 在客户端中,如果开启了副屏设置,尝试这打开副屏。
181
+ if (_this2.getScreenType() === true) {
182
+ if (_this2.isHorizontalSunMi) {
183
+ _this2.sunMiPresentationInit(ret);
184
+ return;
185
+ }
186
+ window.open('vicescreen?ts=' + new Date().getTime(), 'screen');
187
+ }
188
+ });
189
+ }
175
190
  // 初始化商米副屏
176
191
 
177
192
  }, {
178
193
  key: 'componentWillUnmount',
179
194
  value: function componentWillUnmount() {
180
- var _context$headHook = this.context.headHook;
181
- _context$headHook = _context$headHook === undefined ? {} : _context$headHook;
182
- var removeClass = _context$headHook.removeClass;
195
+ var _context$headHook2 = this.context.headHook;
196
+ _context$headHook2 = _context$headHook2 === undefined ? {} : _context$headHook2;
197
+ var removeClass = _context$headHook2.removeClass;
183
198
 
184
199
  removeClass && removeClass(this.state.id, 'portalHead');
185
200
  }
@@ -284,86 +299,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
284
299
  infoRender: _propTypes2.default.func,
285
300
  headHook: _propTypes2.default.object
286
301
  }, _initialiseProps = function _initialiseProps() {
287
- var _this2 = this;
288
-
289
- this.getOperation = function () {
290
- return new _promise2.default(function (resolve, reject) {
291
- var _context2 = _this2.context,
292
- _context2$stores = _context2.stores;
293
- _context2$stores = _context2$stores === undefined ? {} : _context2$stores;
294
- var portalStore = _context2$stores.portalStore,
295
- _context2$headHook = _context2.headHook;
296
- _context2$headHook = _context2$headHook === undefined ? {} : _context2$headHook;
297
- var addClass = _context2$headHook.addClass;
298
- var homeOperation = _ModifyPassApi.Request.homeOperation,
299
- functionData = _ModifyPassApi.Request.functionData;
300
-
301
- _tplusComponentsTouch.Loading.show({
302
- text: '首页权限加载中...',
303
- delay: 2500
304
- });
305
- homeOperation().then(function (operations) {
306
- _mutantsMicrofx.localStore.set('operationsAuth', (0, _stringify2.default)(operations));
307
- _this2.setState({ operations: operations });
308
- _tplusComponentsTouch.Loading.hide();
309
- resolve();
310
- }).catch(function (err) {
311
- console.log('homeOperation.error======', err);
312
- _tplusComponentsTouch.Loading.hide();
313
- resolve();
314
- });
315
- functionData().then(function (data) {
316
- // 加载权限数据 DR-29735 by majian
317
- (0, _tplusPoslogin.PosSetData)(data);
318
- });
319
- // portalStore && portalStore.getPortalMenu();
320
- addClass && addClass(_this2.state.id, 'portalHead');
321
- // 初始化参数设置。
322
- _mutantsMicrofx.stores.setStore.initSetParams().then(function (ret) {
323
- // 在客户端中,如果开启了副屏设置,尝试这打开副屏。
324
- if (_this2.getScreenType() === true) {
325
- if (_this2.isHorizontalSunMi) {
326
- _this2.sunMiPresentationInit(ret);
327
- return;
328
- }
329
- window.open('vicescreen?ts=' + new Date().getTime(), 'screen');
330
- }
331
- });
332
- });
333
- };
334
-
335
- this.catchOfflineData = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
336
- var offlineSys, isLoginAfter;
337
- return _regenerator2.default.wrap(function _callee2$(_context3) {
338
- while (1) {
339
- switch (_context3.prev = _context3.next) {
340
- case 0:
341
- offlineSys = _this2.context.stores.offlineSys;
342
- isLoginAfter = _mutantsMicrofx.localStore.get("isLoginAfter");
343
-
344
- if (!(isLoginAfter == 1)) {
345
- _context3.next = 8;
346
- break;
347
- }
348
-
349
- _tplusComponentsTouch.Loading.show({
350
- text: '离线数据下载中...',
351
- delay: 2500
352
- });
353
- _context3.next = 6;
354
- return offlineSys.downloadCatcherData();
355
-
356
- case 6:
357
- _tplusComponentsTouch.Loading.hide();
358
- _mutantsMicrofx.localStore.set("isLoginAfter", 0);
359
-
360
- case 8:
361
- case 'end':
362
- return _context3.stop();
363
- }
364
- }
365
- }, _callee2, _this2);
366
- }));
302
+ var _this3 = this;
367
303
 
368
304
  this.sunMiPresentationInit = function (result) {
369
305
  //SunMi初始化参数设置。
@@ -376,17 +312,17 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
376
312
  if (!SunMi_fuping_url) {
377
313
  var url = location.origin + location.pathname + '?ts=' + new Date().getTime() + '&vt=3&fuping=3';
378
314
  window.sunMi_PresentationManager && window.sunMi_PresentationManager.secondScreenLoadUrl(url).then(function () {
379
- _this2.FuPingIsLoaded = true;
315
+ _this3.FuPingIsLoaded = true;
380
316
  // 加载副屏页面成功 缓存地址
381
317
  sessionStorage.setItem("SunMi_fuping_url", url);
382
318
  setTimeout(function () {
383
319
  // 进行主副屏数据交互 初始化
384
- var _ref4 = _mutantsMicrofx.localStore.get('user') || {},
385
- _ref4$store = _ref4.store;
320
+ var _ref2 = _mutantsMicrofx.localStore.get('user') || {},
321
+ _ref2$store = _ref2.store;
386
322
 
387
- _ref4$store = _ref4$store === undefined ? {} : _ref4$store;
388
- var _ref4$store$storeName = _ref4$store.storeName,
389
- storeName = _ref4$store$storeName === undefined ? '' : _ref4$store$storeName;
323
+ _ref2$store = _ref2$store === undefined ? {} : _ref2$store;
324
+ var _ref2$store$storeName = _ref2$store.storeName,
325
+ storeName = _ref2$store$storeName === undefined ? '' : _ref2$store$storeName;
390
326
 
391
327
  console.log(result);
392
328
 
@@ -406,12 +342,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
406
342
  });
407
343
  } else {
408
344
  // 表示已经加载过页面只需要重置状态即可
409
- var _ref5 = _mutantsMicrofx.localStore.get('user') || {},
410
- _ref5$store = _ref5.store;
345
+ var _ref3 = _mutantsMicrofx.localStore.get('user') || {},
346
+ _ref3$store = _ref3.store;
411
347
 
412
- _ref5$store = _ref5$store === undefined ? {} : _ref5$store;
413
- var _ref5$store$storeName = _ref5$store.storeName,
414
- storeName = _ref5$store$storeName === undefined ? '' : _ref5$store$storeName;
348
+ _ref3$store = _ref3$store === undefined ? {} : _ref3$store;
349
+ var _ref3$store$storeName = _ref3$store.storeName,
350
+ storeName = _ref3$store$storeName === undefined ? '' : _ref3$store$storeName;
415
351
 
416
352
  window.sunMi_PresentationManager && window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 0, storeName: storeName });
417
353
  }
@@ -419,7 +355,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
419
355
 
420
356
  this.getScreenType = function () {
421
357
  var flag = false;
422
- if (_this2.hasElectron === true || _this2.isHorizontalSunMi) {
358
+ if (_this3.hasElectron === true || _this3.isHorizontalSunMi) {
423
359
  var data = _mutantsMicrofx.localStore.get('setting_setData') || [];
424
360
  data = data.filter(function (item) {
425
361
  return item.Name === 'EnableDoubleScreen';
@@ -447,17 +383,17 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
447
383
  Name = values.Name,
448
384
  search = values.search;
449
385
  var tmenuCode = values.tmenuCode;
450
- var operations = _this2.state.operations;
386
+ var operations = _this3.state.operations;
451
387
 
452
388
  var controllable = operations.find(function (vv) {
453
389
  return vv.Name === Name;
454
390
  });
455
391
 
456
- var _ref6 = controllable || {},
457
- Visibility = _ref6.Visibility,
458
- HoldFunctionAuth = _ref6.HoldFunctionAuth,
459
- Title = _ref6.Title,
460
- MenuCode = _ref6.MenuCode;
392
+ var _ref4 = controllable || {},
393
+ Visibility = _ref4.Visibility,
394
+ HoldFunctionAuth = _ref4.HoldFunctionAuth,
395
+ Title = _ref4.Title,
396
+ MenuCode = _ref4.MenuCode;
461
397
 
462
398
  var errorTip = void 0;
463
399
  if (!Title) {
@@ -471,18 +407,12 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
471
407
  okType: 'primary'
472
408
  });
473
409
  }
474
-
475
- if (_mutantsMicrofx.stores.offlineSys.shouldOpenHomeOperation(Name)) {
476
- _tplusComponentsTouch.Message.warn("离线模式下此操作不可用");
477
- return;
478
- }
479
-
480
410
  if (!Visibility) {
481
411
  errorTip = '\u60A8\u7684 ' + Title + ' \u6A21\u5757\u6CA1\u6709\u542F\u7528';
482
412
  } else if (!HoldFunctionAuth) {
483
413
  errorTip = '\u60A8\u6CA1\u6709\u64CD\u4F5C ' + Title + ' \u7684\u6743\u9650';
484
414
  }
485
- var portalStore = _this2.context.stores.portalStore;
415
+ var portalStore = _this3.context.stores.portalStore;
486
416
 
487
417
  if (errorTip) {
488
418
  return _tplusComponentsTouch.Message.warn(errorTip);
@@ -502,7 +432,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
502
432
 
503
433
  (0, _tplusPoslogin.PosSetData)({ ShiftCode: Code, IdShiftVoucher: IdShiftVoucher, Shift: Shift, IdDailyVoucher: IdDailyVoucher, DailyCode: DailyCode });
504
434
  console.log('onDutyMessage======', onDutyMessage);
505
- _this2.saveLog(title);
435
+ _this3.saveLog(title);
506
436
  _mutantsMicrofx.history.push('/RE/RE01');
507
437
  }
508
438
  }).catch(function (data) {
@@ -529,11 +459,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
529
459
  break;
530
460
  default:
531
461
  if (tmenuCode || MenuCode) {
532
- _this2.saveLog(title);
462
+ _this3.saveLog(title);
533
463
  if (MenuCode) {
534
- _this2.toTplusPage(type, MenuCode, search);
464
+ _this3.toTplusPage(type, MenuCode, search);
535
465
  } else {
536
- _this2.toTplusPage(type, tmenuCode, search);
466
+ _this3.toTplusPage(type, tmenuCode, search);
537
467
  }
538
468
  } else {
539
469
  _mutantsMicrofx.history.push('/' + type);
@@ -568,11 +498,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
568
498
  };
569
499
 
570
500
  this.toTplusPage = function () {
571
- var _ref7 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(type, tmenuCode, search) {
501
+ var _ref5 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(type, tmenuCode, search) {
572
502
  var userStore, sid, tplusUrl, tplusinnersite, msg, dsearchPlanID, portalStore, baseUrl, ossjumpUrl, user, loginInfo, pwd, userName, accNum, menu, posCode, storeID, fromUrl;
573
- return _regenerator2.default.wrap(function _callee3$(_context4) {
503
+ return _regenerator2.default.wrap(function _callee$(_context2) {
574
504
  while (1) {
575
- switch (_context4.prev = _context4.next) {
505
+ switch (_context2.prev = _context2.next) {
576
506
  case 0:
577
507
  userStore = _tplusApi.User.restore();
578
508
  sid = userStore.sid;
@@ -580,13 +510,13 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
580
510
  tplusinnersite = (0, _tplusPoslogin.PosInitData)("tplusinnersite");
581
511
 
582
512
  tplusUrl = tplusUrl ? tplusUrl : tplusinnersite;
583
- if (!tplusUrl && !sid && _this2.hasElectron === true) {
513
+ if (!tplusUrl && !sid && _this3.hasElectron === true) {
584
514
  //软件包,并且electron读取electron配置的地址
585
515
  tplusUrl = location.origin + "/tplus";
586
516
  }
587
517
 
588
518
  if (tplusUrl) {
589
- _context4.next = 10;
519
+ _context2.next = 10;
590
520
  break;
591
521
  }
592
522
 
@@ -598,22 +528,22 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
598
528
  okText: '确定',
599
529
  okType: 'primary'
600
530
  });
601
- return _context4.abrupt('return');
531
+ return _context2.abrupt('return');
602
532
 
603
533
  case 10:
604
534
  dsearchPlanID = void 0;
605
535
 
606
536
  if (!(search && search.id)) {
607
- _context4.next = 16;
537
+ _context2.next = 16;
608
538
  break;
609
539
  }
610
540
 
611
- portalStore = _this2.context.stores.portalStore;
612
- _context4.next = 15;
541
+ portalStore = _this3.context.stores.portalStore;
542
+ _context2.next = 15;
613
543
  return portalStore.getSearchPlanId(search);
614
544
 
615
545
  case 15:
616
- dsearchPlanID = _context4.sent;
546
+ dsearchPlanID = _context2.sent;
617
547
 
618
548
  case 16:
619
549
  if (tplusUrl.substring(tplusUrl.length - 1) !== '/') tplusUrl += '/';
@@ -627,28 +557,28 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
627
557
  if (sid) {
628
558
  ossjumpUrl = tplusUrl + 'view/ossjump.html?t=' + new Date().getTime() + '&sid=' + sid;
629
559
  }
630
- user = _this2.context.stores.user;
560
+ user = _this3.context.stores.user;
631
561
  loginInfo = user.options.get('loginInfo');
632
562
  pwd = user.options.get("password");
633
- userName = _this2.tplusEncode(loginInfo.UserCode);
634
- accNum = _this2.tplusEncode(loginInfo.AccountNum);
635
- menu = _this2.tplusEncode(tmenuCode);
636
- posCode = _this2.tplusEncode(loginInfo.posCode);
637
- storeID = _this2.tplusEncode(loginInfo.storeID + "");
563
+ userName = _this3.tplusEncode(loginInfo.UserCode);
564
+ accNum = _this3.tplusEncode(loginInfo.AccountNum);
565
+ menu = _this3.tplusEncode(tmenuCode);
566
+ posCode = _this3.tplusEncode(loginInfo.posCode);
567
+ storeID = _this3.tplusEncode(loginInfo.storeID + "");
638
568
 
639
- pwd = _this2.tplusEncode(pwd);
640
- fromUrl = _this2.tplusEncode(location.origin);
569
+ pwd = _this3.tplusEncode(pwd);
570
+ fromUrl = _this3.tplusEncode(location.origin);
641
571
 
642
572
  ossjumpUrl += '&fromApp=nretail&user=' + userName + '&pwd=' + pwd + '&accNum=' + accNum + '&menu=' + menu + '&posCode=' + posCode + '&storeID=' + storeID + '&fromUrl=' + fromUrl;
643
573
  if (dsearchPlanID) {
644
- ossjumpUrl += '&searchPlanID=' + _this2.tplusEncode(dsearchPlanID);
574
+ ossjumpUrl += '&searchPlanID=' + _this3.tplusEncode(dsearchPlanID);
645
575
  }
646
- if (_this2.isHorizontalSunMi) {
576
+ if (_this3.isHorizontalSunMi) {
647
577
  window.android_CommonFun.openWebUrlByOutBrowser(ossjumpUrl);
648
- } else if (_this2.hasElectron === true) {
578
+ } else if (_this3.hasElectron === true) {
649
579
  _mutantsMicrofx.nativeMs.useDefaultBrowser(ossjumpUrl);
650
- } else if (_this2.isMobileEnvironment) {
651
- _this2.setState({ showModal: true, frameUrl: ossjumpUrl });
580
+ } else if (_this3.isMobileEnvironment) {
581
+ _this3.setState({ showModal: true, frameUrl: ossjumpUrl });
652
582
  } else {
653
583
  if (!tplusWindow || tplusWindow.closed) {
654
584
  tplusWindow = window.open(ossjumpUrl, "tplus", "location=no");
@@ -660,19 +590,19 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
660
590
 
661
591
  case 33:
662
592
  case 'end':
663
- return _context4.stop();
593
+ return _context2.stop();
664
594
  }
665
595
  }
666
- }, _callee3, _this2);
596
+ }, _callee, _this3);
667
597
  }));
668
598
 
669
599
  return function (_x2, _x3, _x4) {
670
- return _ref7.apply(this, arguments);
600
+ return _ref5.apply(this, arguments);
671
601
  };
672
602
  }();
673
603
 
674
604
  this.closeFrameModal = function () {
675
- _this2.setState({ showModal: false });
605
+ _this3.setState({ showModal: false });
676
606
  };
677
607
 
678
608
  this.tplusEncode = function (code) {
@@ -680,7 +610,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
680
610
  for (var i = 1; i < code.length; i++) {
681
611
  c += String.fromCharCode(code.charCodeAt(i) + code.charCodeAt(i - 1));
682
612
  }
683
- var ret = _this2.TplusBase64Encode(c);
613
+ var ret = _this3.TplusBase64Encode(c);
684
614
  return ret;
685
615
  };
686
616
 
@@ -695,7 +625,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
695
625
  enc3 = void 0,
696
626
  enc4 = void 0;
697
627
  var i = 0;
698
- input = _this2._utf8_encode(input);
628
+ input = _this3._utf8_encode(input);
699
629
  while (i < input.length) {
700
630
  chr1 = input.charCodeAt(i++);
701
631
  chr2 = input.charCodeAt(i++);
@@ -735,21 +665,21 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
735
665
 
736
666
  this.operationControl = function () {
737
667
  var menu = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
738
- var operations = _this2.state.operations;
668
+ var operations = _this3.state.operations;
739
669
 
740
670
  console.log(operations, 11111);
741
671
  menu.forEach(function (v) {
742
672
  if (v.sub) {
743
- return _this2.operationControl(v.sub);
673
+ return _this3.operationControl(v.sub);
744
674
  }
745
675
  var controllable = operations.find(function (vv) {
746
676
  return vv.Name === v.Name;
747
677
  });
748
678
 
749
- var _ref8 = controllable || {},
750
- Visibility = _ref8.Visibility,
751
- HoldFunctionAuth = _ref8.HoldFunctionAuth,
752
- Title = _ref8.Title;
679
+ var _ref6 = controllable || {},
680
+ Visibility = _ref6.Visibility,
681
+ HoldFunctionAuth = _ref6.HoldFunctionAuth,
682
+ Title = _ref6.Title;
753
683
 
754
684
  var errorTip = void 0;
755
685
  if (!Visibility) {
@@ -763,7 +693,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
763
693
  };
764
694
 
765
695
  this.createLeftNode = function () {
766
- var menu = _this2.leftMenu;
696
+ var menu = _this3.leftMenu;
767
697
  var menuNode = menu.map(function (v) {
768
698
  return v.container ? _react2.default.createElement(
769
699
  'div',
@@ -774,7 +704,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
774
704
  {
775
705
  className: 'member-item ' + vv.className + ' ' + (vv.disabled ? 'menu-item-disabled' : ''),
776
706
  key: vv.className,
777
- onClick: _this2.handelClick.bind(_this2, vv)
707
+ onClick: _this3.handelClick.bind(_this3, vv)
778
708
  },
779
709
  !!vv.title && _react2.default.createElement(
780
710
  'h1',
@@ -794,7 +724,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
794
724
  {
795
725
  className: 'member-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
796
726
  key: v.className,
797
- onClick: _this2.handelClick.bind(_this2, v)
727
+ onClick: _this3.handelClick.bind(_this3, v)
798
728
  },
799
729
  v.title && _react2.default.createElement(
800
730
  'h1',
@@ -813,8 +743,8 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
813
743
  };
814
744
 
815
745
  this.createCenterNode = function () {
816
- var leftMenu = _this2.centerLeftMenu;
817
- var rightMenu = _this2.centerRightMenu;
746
+ var leftMenu = _this3.centerLeftMenu;
747
+ var rightMenu = _this3.centerRightMenu;
818
748
  var menuLeftNode = leftMenu.map(function (v) {
819
749
  return _react2.default.createElement(
820
750
  'div',
@@ -822,7 +752,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
822
752
  className: 'worktop-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
823
753
  style: v.style,
824
754
  key: v.className,
825
- onClick: _this2.handelClick.bind(_this2, v)
755
+ onClick: _this3.handelClick.bind(_this3, v)
826
756
  },
827
757
  v.title && _react2.default.createElement(
828
758
  'h1',
@@ -848,7 +778,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
848
778
  {
849
779
  className: 'worktop-item ' + vv.className + ' ' + (vv.disabled ? 'menu-item-disabled' : ''),
850
780
  key: vv.className,
851
- onClick: _this2.handelClick.bind(_this2, vv)
781
+ onClick: _this3.handelClick.bind(_this3, vv)
852
782
  },
853
783
  vv.title && _react2.default.createElement(
854
784
  'h1',
@@ -868,7 +798,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
868
798
  {
869
799
  className: 'worktop-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
870
800
  key: v.className,
871
- onClick: _this2.handelClick.bind(_this2, v)
801
+ onClick: _this3.handelClick.bind(_this3, v)
872
802
  },
873
803
  v.title && _react2.default.createElement(
874
804
  'h1',
@@ -900,7 +830,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
900
830
  };
901
831
 
902
832
  this.createRightNode = function () {
903
- var menu = _this2.rightMenu;
833
+ var menu = _this3.rightMenu;
904
834
  var node = menu.map(function (v, i) {
905
835
  return _react2.default.createElement(
906
836
  'div',
@@ -908,7 +838,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
908
838
  className: 'stock-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
909
839
  style: v.style,
910
840
  key: v.className,
911
- onClick: _this2.handelClick.bind(_this2, v)
841
+ onClick: _this3.handelClick.bind(_this3, v)
912
842
  },
913
843
  !!v.title && _react2.default.createElement(
914
844
  'h1',