tplus-portaltouch 3.22.3 → 3.22.7

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,21 +5,21 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = undefined;
7
7
 
8
- var _regenerator = require('babel-runtime/regenerator');
9
-
10
- var _regenerator2 = _interopRequireDefault(_regenerator);
11
-
12
- var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
8
+ var _stringify = require('babel-runtime/core-js/json/stringify');
13
9
 
14
- var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
10
+ var _stringify2 = _interopRequireDefault(_stringify);
15
11
 
16
12
  var _promise = require('babel-runtime/core-js/promise');
17
13
 
18
14
  var _promise2 = _interopRequireDefault(_promise);
19
15
 
20
- var _stringify = require('babel-runtime/core-js/json/stringify');
16
+ var _regenerator = require('babel-runtime/regenerator');
21
17
 
22
- var _stringify2 = _interopRequireDefault(_stringify);
18
+ var _regenerator2 = _interopRequireDefault(_regenerator);
19
+
20
+ var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
21
+
22
+ var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
23
23
 
24
24
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
25
25
 
@@ -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-03-18 11:02:04
47
+ * @LastEditTime: 2021-09-02 14:35:59
48
48
  * @LastEditors: chenlongad
49
49
  * @modify:修改跳转到T+的查询方案方式
50
50
  */
@@ -144,57 +144,42 @@ 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 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;
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;
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
+ }
185
164
  }
186
- window.open('vicescreen?ts=' + new Date().getTime(), 'screen');
187
- }
188
- });
189
- }
165
+ }, _callee, this);
166
+ }));
167
+
168
+ function componentWillMount() {
169
+ return _ref2.apply(this, arguments);
170
+ }
171
+
172
+ return componentWillMount;
173
+ }()
174
+
190
175
  // 初始化商米副屏
191
176
 
192
177
  }, {
193
178
  key: 'componentWillUnmount',
194
179
  value: function componentWillUnmount() {
195
- var _context$headHook2 = this.context.headHook;
196
- _context$headHook2 = _context$headHook2 === undefined ? {} : _context$headHook2;
197
- var removeClass = _context$headHook2.removeClass;
180
+ var _context$headHook = this.context.headHook;
181
+ _context$headHook = _context$headHook === undefined ? {} : _context$headHook;
182
+ var removeClass = _context$headHook.removeClass;
198
183
 
199
184
  removeClass && removeClass(this.state.id, 'portalHead');
200
185
  }
@@ -299,32 +284,142 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
299
284
  infoRender: _propTypes2.default.func,
300
285
  headHook: _propTypes2.default.object
301
286
  }, _initialiseProps = function _initialiseProps() {
302
- var _this3 = this;
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
+ }));
303
367
 
304
368
  this.sunMiPresentationInit = function (result) {
305
369
  //SunMi初始化参数设置。
306
370
  //副屏幕交互。硬件改动20200428 需要在商米页面加载成功后才能发送 初始化命令
307
- // 进行主副屏数据交互 初始化
308
- var _ref2 = _mutantsMicrofx.localStore.get('user') || {},
309
- _ref2$store = _ref2.store;
310
-
311
- _ref2$store = _ref2$store === undefined ? {} : _ref2$store;
312
- var _ref2$store$storeName = _ref2$store.storeName,
313
- storeName = _ref2$store$storeName === undefined ? '' : _ref2$store$storeName;
314
-
315
- console.log(result);
316
- var filterResult = result && result.filter ? result.filter(function (settingItem) {
317
- return settingItem.ParamType.Id === "56181";
318
- }) : [];
319
- window.sunMi_PresentationManager && window.sunMi_PresentationManager.sharedPreferencesSet("setting_setData", filterResult).then(function () {
320
- console.log("缓存数据成功");
371
+ // 获取是否缓存副屏地址 只在app打开的生命周期缓存 读取 关闭重新缓存
372
+
373
+
374
+ var SunMi_fuping_url = sessionStorage.getItem("SunMi_fuping_url");
375
+ // 如果存在缓存地址 使用缓存地址 否则使用新hash地址
376
+ if (!SunMi_fuping_url) {
377
+ var url = location.origin + location.pathname + '?ts=' + new Date().getTime() + '&vt=3&fuping=3';
378
+ window.sunMi_PresentationManager && window.sunMi_PresentationManager.secondScreenLoadUrl(url).then(function () {
379
+ _this2.FuPingIsLoaded = true;
380
+ // 加载副屏页面成功 缓存地址
381
+ sessionStorage.setItem("SunMi_fuping_url", url);
382
+ setTimeout(function () {
383
+ // 进行主副屏数据交互 初始化
384
+ var _ref4 = _mutantsMicrofx.localStore.get('user') || {},
385
+ _ref4$store = _ref4.store;
386
+
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;
390
+
391
+ console.log(result);
392
+
393
+ var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
394
+ RE_POSParamType = _enumController$getEn.RE_POSParamType;
395
+
396
+ var DUAL_SCREEN_SETTING = RE_POSParamType.DUAL_SCREEN_SETTING;
397
+
398
+ var filterResult = result && result.filter ? result.filter(function (settingItem) {
399
+ return settingItem.ParamType && (settingItem.ParamType.Id === DUAL_SCREEN_SETTING || settingItem.ParamType === DUAL_SCREEN_SETTING);
400
+ }) : [];
401
+ window.sunMi_PresentationManager && window.sunMi_PresentationManager.sharedPreferencesSet("setting_setData", filterResult).then(function () {
402
+ console.log("缓存数据成功");
403
+ window.sunMi_PresentationManager && window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 0, storeName: storeName });
404
+ });
405
+ }, 2000);
406
+ });
407
+ } else {
408
+ // 表示已经加载过页面只需要重置状态即可
409
+ var _ref5 = _mutantsMicrofx.localStore.get('user') || {},
410
+ _ref5$store = _ref5.store;
411
+
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;
415
+
321
416
  window.sunMi_PresentationManager && window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 0, storeName: storeName });
322
- });
417
+ }
323
418
  };
324
419
 
325
420
  this.getScreenType = function () {
326
421
  var flag = false;
327
- if (_this3.hasElectron === true || _this3.isHorizontalSunMi) {
422
+ if (_this2.hasElectron === true || _this2.isHorizontalSunMi) {
328
423
  var data = _mutantsMicrofx.localStore.get('setting_setData') || [];
329
424
  data = data.filter(function (item) {
330
425
  return item.Name === 'EnableDoubleScreen';
@@ -352,17 +447,17 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
352
447
  Name = values.Name,
353
448
  search = values.search;
354
449
  var tmenuCode = values.tmenuCode;
355
- var operations = _this3.state.operations;
450
+ var operations = _this2.state.operations;
356
451
 
357
452
  var controllable = operations.find(function (vv) {
358
453
  return vv.Name === Name;
359
454
  });
360
455
 
361
- var _ref3 = controllable || {},
362
- Visibility = _ref3.Visibility,
363
- HoldFunctionAuth = _ref3.HoldFunctionAuth,
364
- Title = _ref3.Title,
365
- MenuCode = _ref3.MenuCode;
456
+ var _ref6 = controllable || {},
457
+ Visibility = _ref6.Visibility,
458
+ HoldFunctionAuth = _ref6.HoldFunctionAuth,
459
+ Title = _ref6.Title,
460
+ MenuCode = _ref6.MenuCode;
366
461
 
367
462
  var errorTip = void 0;
368
463
  if (!Title) {
@@ -376,12 +471,18 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
376
471
  okType: 'primary'
377
472
  });
378
473
  }
474
+
475
+ if (_mutantsMicrofx.stores.offlineSys.shouldOpenHomeOperation(Name)) {
476
+ _tplusComponentsTouch.Message.warn("离线模式下此操作不可用");
477
+ return;
478
+ }
479
+
379
480
  if (!Visibility) {
380
481
  errorTip = '\u60A8\u7684 ' + Title + ' \u6A21\u5757\u6CA1\u6709\u542F\u7528';
381
482
  } else if (!HoldFunctionAuth) {
382
483
  errorTip = '\u60A8\u6CA1\u6709\u64CD\u4F5C ' + Title + ' \u7684\u6743\u9650';
383
484
  }
384
- var portalStore = _this3.context.stores.portalStore;
485
+ var portalStore = _this2.context.stores.portalStore;
385
486
 
386
487
  if (errorTip) {
387
488
  return _tplusComponentsTouch.Message.warn(errorTip);
@@ -401,7 +502,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
401
502
 
402
503
  (0, _tplusPoslogin.PosSetData)({ ShiftCode: Code, IdShiftVoucher: IdShiftVoucher, Shift: Shift, IdDailyVoucher: IdDailyVoucher, DailyCode: DailyCode });
403
504
  console.log('onDutyMessage======', onDutyMessage);
404
- _this3.saveLog(title);
505
+ _this2.saveLog(title);
405
506
  _mutantsMicrofx.history.push('/RE/RE01');
406
507
  }
407
508
  }).catch(function (data) {
@@ -428,11 +529,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
428
529
  break;
429
530
  default:
430
531
  if (tmenuCode || MenuCode) {
431
- _this3.saveLog(title);
532
+ _this2.saveLog(title);
432
533
  if (MenuCode) {
433
- _this3.toTplusPage(type, MenuCode, search);
534
+ _this2.toTplusPage(type, MenuCode, search);
434
535
  } else {
435
- _this3.toTplusPage(type, tmenuCode, search);
536
+ _this2.toTplusPage(type, tmenuCode, search);
436
537
  }
437
538
  } else {
438
539
  _mutantsMicrofx.history.push('/' + type);
@@ -467,11 +568,11 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
467
568
  };
468
569
 
469
570
  this.toTplusPage = function () {
470
- var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(type, tmenuCode, search) {
571
+ var _ref7 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(type, tmenuCode, search) {
471
572
  var userStore, sid, tplusUrl, tplusinnersite, msg, dsearchPlanID, portalStore, baseUrl, ossjumpUrl, user, loginInfo, pwd, userName, accNum, menu, posCode, storeID, fromUrl;
472
- return _regenerator2.default.wrap(function _callee$(_context2) {
573
+ return _regenerator2.default.wrap(function _callee3$(_context4) {
473
574
  while (1) {
474
- switch (_context2.prev = _context2.next) {
575
+ switch (_context4.prev = _context4.next) {
475
576
  case 0:
476
577
  userStore = _tplusApi.User.restore();
477
578
  sid = userStore.sid;
@@ -479,13 +580,13 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
479
580
  tplusinnersite = (0, _tplusPoslogin.PosInitData)("tplusinnersite");
480
581
 
481
582
  tplusUrl = tplusUrl ? tplusUrl : tplusinnersite;
482
- if (!tplusUrl && !sid && _this3.hasElectron === true) {
583
+ if (!tplusUrl && !sid && _this2.hasElectron === true) {
483
584
  //软件包,并且electron读取electron配置的地址
484
585
  tplusUrl = location.origin + "/tplus";
485
586
  }
486
587
 
487
588
  if (tplusUrl) {
488
- _context2.next = 10;
589
+ _context4.next = 10;
489
590
  break;
490
591
  }
491
592
 
@@ -497,22 +598,22 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
497
598
  okText: '确定',
498
599
  okType: 'primary'
499
600
  });
500
- return _context2.abrupt('return');
601
+ return _context4.abrupt('return');
501
602
 
502
603
  case 10:
503
604
  dsearchPlanID = void 0;
504
605
 
505
606
  if (!(search && search.id)) {
506
- _context2.next = 16;
607
+ _context4.next = 16;
507
608
  break;
508
609
  }
509
610
 
510
- portalStore = _this3.context.stores.portalStore;
511
- _context2.next = 15;
611
+ portalStore = _this2.context.stores.portalStore;
612
+ _context4.next = 15;
512
613
  return portalStore.getSearchPlanId(search);
513
614
 
514
615
  case 15:
515
- dsearchPlanID = _context2.sent;
616
+ dsearchPlanID = _context4.sent;
516
617
 
517
618
  case 16:
518
619
  if (tplusUrl.substring(tplusUrl.length - 1) !== '/') tplusUrl += '/';
@@ -526,28 +627,28 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
526
627
  if (sid) {
527
628
  ossjumpUrl = tplusUrl + 'view/ossjump.html?t=' + new Date().getTime() + '&sid=' + sid;
528
629
  }
529
- user = _this3.context.stores.user;
630
+ user = _this2.context.stores.user;
530
631
  loginInfo = user.options.get('loginInfo');
531
632
  pwd = user.options.get("password");
532
- userName = _this3.tplusEncode(loginInfo.UserCode);
533
- accNum = _this3.tplusEncode(loginInfo.AccountNum);
534
- menu = _this3.tplusEncode(tmenuCode);
535
- posCode = _this3.tplusEncode(loginInfo.posCode);
536
- storeID = _this3.tplusEncode(loginInfo.storeID + "");
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 + "");
537
638
 
538
- pwd = _this3.tplusEncode(pwd);
539
- fromUrl = _this3.tplusEncode(location.origin);
639
+ pwd = _this2.tplusEncode(pwd);
640
+ fromUrl = _this2.tplusEncode(location.origin);
540
641
 
541
642
  ossjumpUrl += '&fromApp=nretail&user=' + userName + '&pwd=' + pwd + '&accNum=' + accNum + '&menu=' + menu + '&posCode=' + posCode + '&storeID=' + storeID + '&fromUrl=' + fromUrl;
542
643
  if (dsearchPlanID) {
543
- ossjumpUrl += '&searchPlanID=' + _this3.tplusEncode(dsearchPlanID);
644
+ ossjumpUrl += '&searchPlanID=' + _this2.tplusEncode(dsearchPlanID);
544
645
  }
545
- if (_this3.isHorizontalSunMi) {
646
+ if (_this2.isHorizontalSunMi) {
546
647
  window.android_CommonFun.openWebUrlByOutBrowser(ossjumpUrl);
547
- } else if (_this3.hasElectron === true) {
648
+ } else if (_this2.hasElectron === true) {
548
649
  _mutantsMicrofx.nativeMs.useDefaultBrowser(ossjumpUrl);
549
- } else if (_this3.isMobileEnvironment) {
550
- _this3.setState({ showModal: true, frameUrl: ossjumpUrl });
650
+ } else if (_this2.isMobileEnvironment) {
651
+ _this2.setState({ showModal: true, frameUrl: ossjumpUrl });
551
652
  } else {
552
653
  if (!tplusWindow || tplusWindow.closed) {
553
654
  tplusWindow = window.open(ossjumpUrl, "tplus", "location=no");
@@ -559,19 +660,19 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
559
660
 
560
661
  case 33:
561
662
  case 'end':
562
- return _context2.stop();
663
+ return _context4.stop();
563
664
  }
564
665
  }
565
- }, _callee, _this3);
666
+ }, _callee3, _this2);
566
667
  }));
567
668
 
568
669
  return function (_x2, _x3, _x4) {
569
- return _ref4.apply(this, arguments);
670
+ return _ref7.apply(this, arguments);
570
671
  };
571
672
  }();
572
673
 
573
674
  this.closeFrameModal = function () {
574
- _this3.setState({ showModal: false });
675
+ _this2.setState({ showModal: false });
575
676
  };
576
677
 
577
678
  this.tplusEncode = function (code) {
@@ -579,7 +680,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
579
680
  for (var i = 1; i < code.length; i++) {
580
681
  c += String.fromCharCode(code.charCodeAt(i) + code.charCodeAt(i - 1));
581
682
  }
582
- var ret = _this3.TplusBase64Encode(c);
683
+ var ret = _this2.TplusBase64Encode(c);
583
684
  return ret;
584
685
  };
585
686
 
@@ -594,7 +695,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
594
695
  enc3 = void 0,
595
696
  enc4 = void 0;
596
697
  var i = 0;
597
- input = _this3._utf8_encode(input);
698
+ input = _this2._utf8_encode(input);
598
699
  while (i < input.length) {
599
700
  chr1 = input.charCodeAt(i++);
600
701
  chr2 = input.charCodeAt(i++);
@@ -634,21 +735,21 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
634
735
 
635
736
  this.operationControl = function () {
636
737
  var menu = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
637
- var operations = _this3.state.operations;
738
+ var operations = _this2.state.operations;
638
739
 
639
740
  console.log(operations, 11111);
640
741
  menu.forEach(function (v) {
641
742
  if (v.sub) {
642
- return _this3.operationControl(v.sub);
743
+ return _this2.operationControl(v.sub);
643
744
  }
644
745
  var controllable = operations.find(function (vv) {
645
746
  return vv.Name === v.Name;
646
747
  });
647
748
 
648
- var _ref5 = controllable || {},
649
- Visibility = _ref5.Visibility,
650
- HoldFunctionAuth = _ref5.HoldFunctionAuth,
651
- Title = _ref5.Title;
749
+ var _ref8 = controllable || {},
750
+ Visibility = _ref8.Visibility,
751
+ HoldFunctionAuth = _ref8.HoldFunctionAuth,
752
+ Title = _ref8.Title;
652
753
 
653
754
  var errorTip = void 0;
654
755
  if (!Visibility) {
@@ -662,7 +763,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
662
763
  };
663
764
 
664
765
  this.createLeftNode = function () {
665
- var menu = _this3.leftMenu;
766
+ var menu = _this2.leftMenu;
666
767
  var menuNode = menu.map(function (v) {
667
768
  return v.container ? _react2.default.createElement(
668
769
  'div',
@@ -673,7 +774,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
673
774
  {
674
775
  className: 'member-item ' + vv.className + ' ' + (vv.disabled ? 'menu-item-disabled' : ''),
675
776
  key: vv.className,
676
- onClick: _this3.handelClick.bind(_this3, vv)
777
+ onClick: _this2.handelClick.bind(_this2, vv)
677
778
  },
678
779
  !!vv.title && _react2.default.createElement(
679
780
  'h1',
@@ -693,7 +794,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
693
794
  {
694
795
  className: 'member-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
695
796
  key: v.className,
696
- onClick: _this3.handelClick.bind(_this3, v)
797
+ onClick: _this2.handelClick.bind(_this2, v)
697
798
  },
698
799
  v.title && _react2.default.createElement(
699
800
  'h1',
@@ -712,8 +813,8 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
712
813
  };
713
814
 
714
815
  this.createCenterNode = function () {
715
- var leftMenu = _this3.centerLeftMenu;
716
- var rightMenu = _this3.centerRightMenu;
816
+ var leftMenu = _this2.centerLeftMenu;
817
+ var rightMenu = _this2.centerRightMenu;
717
818
  var menuLeftNode = leftMenu.map(function (v) {
718
819
  return _react2.default.createElement(
719
820
  'div',
@@ -721,7 +822,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
721
822
  className: 'worktop-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
722
823
  style: v.style,
723
824
  key: v.className,
724
- onClick: _this3.handelClick.bind(_this3, v)
825
+ onClick: _this2.handelClick.bind(_this2, v)
725
826
  },
726
827
  v.title && _react2.default.createElement(
727
828
  'h1',
@@ -747,7 +848,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
747
848
  {
748
849
  className: 'worktop-item ' + vv.className + ' ' + (vv.disabled ? 'menu-item-disabled' : ''),
749
850
  key: vv.className,
750
- onClick: _this3.handelClick.bind(_this3, vv)
851
+ onClick: _this2.handelClick.bind(_this2, vv)
751
852
  },
752
853
  vv.title && _react2.default.createElement(
753
854
  'h1',
@@ -767,7 +868,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
767
868
  {
768
869
  className: 'worktop-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
769
870
  key: v.className,
770
- onClick: _this3.handelClick.bind(_this3, v)
871
+ onClick: _this2.handelClick.bind(_this2, v)
771
872
  },
772
873
  v.title && _react2.default.createElement(
773
874
  'h1',
@@ -799,7 +900,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
799
900
  };
800
901
 
801
902
  this.createRightNode = function () {
802
- var menu = _this3.rightMenu;
903
+ var menu = _this2.rightMenu;
803
904
  var node = menu.map(function (v, i) {
804
905
  return _react2.default.createElement(
805
906
  'div',
@@ -807,7 +908,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
807
908
  className: 'stock-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
808
909
  style: v.style,
809
910
  key: v.className,
810
- onClick: _this3.handelClick.bind(_this3, v)
911
+ onClick: _this2.handelClick.bind(_this2, v)
811
912
  },
812
913
  !!v.title && _react2.default.createElement(
813
914
  'h1',