tplus-portaltouch 3.23.1 → 3.23.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.
- package/dist/api/ModifyPassApi.js +1 -1
 - package/dist/api/ModifyPassApi.js.map +1 -1
 - package/dist/components/dutyandsettle/dutysettlehistory.js +45 -66
 - package/dist/components/dutyandsettle/dutysettlehistory.js.map +1 -1
 - package/dist/components/header/headContent.js +508 -38
 - package/dist/components/header/headContent.js.map +1 -1
 - package/dist/components/header/offlinePointDesc.js +7 -0
 - package/dist/components/header/offlinePointDesc.js.map +1 -0
 - package/dist/components/header/style.less +106 -1
 - package/dist/components/header/uploadList.js +271 -0
 - package/dist/components/header/uploadList.js.map +1 -0
 - package/dist/containers/Main/index.js +17 -18
 - package/dist/containers/Main/index.js.map +1 -1
 - package/dist/pages/Portalbc/data.js +55 -26
 - package/dist/pages/Portalbc/data.js.map +1 -1
 - package/dist/pages/Portalbc/index.js +462 -295
 - package/dist/pages/Portalbc/index.js.map +1 -1
 - package/dist/pages/Portalbc/index.less +46 -1
 - package/dist/pages/Portalbc/verticalPortal.js +3 -1
 - package/dist/pages/Portalbc/verticalPortal.js.map +1 -1
 - package/dist/pages/dutyandsettle/offDuty.js +82 -97
 - package/dist/pages/dutyandsettle/offDuty.js.map +1 -1
 - package/dist/utils/networkCheck.js +8 -6
 - package/dist/utils/networkCheck.js.map +1 -1
 - package/package.json +2 -2
 - package/dist/pages/Portal/data.js +0 -32
 - package/dist/pages/Portal/data.js.map +0 -1
 - package/dist/pages/Portal/horizontalPadPortal.js +0 -129
 - package/dist/pages/Portal/horizontalPadPortal.js.map +0 -1
 - package/dist/pages/Portal/horizontalSunMiPortal.js +0 -130
 - package/dist/pages/Portal/horizontalSunMiPortal.js.map +0 -1
 - package/dist/pages/Portal/index.js +0 -856
 - package/dist/pages/Portal/index.js.map +0 -1
 - package/dist/pages/Portal/index.less +0 -612
 - package/dist/pages/Portal/verticalPortal.js +0 -126
 - package/dist/pages/Portal/verticalPortal.js.map +0 -1
 
| 
         @@ -1,856 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            'use strict';
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            Object.defineProperty(exports, "__esModule", {
         
     | 
| 
       4 
     | 
    
         
            -
              value: true
         
     | 
| 
       5 
     | 
    
         
            -
            });
         
     | 
| 
       6 
     | 
    
         
            -
            exports.default = undefined;
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
            var _regenerator = require('babel-runtime/regenerator');
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
            var _regenerator2 = _interopRequireDefault(_regenerator);
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
            var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
            var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
         
     | 
| 
       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 
     | 
    
         
            -
            var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
         
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
            var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
         
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
            var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
         
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
            var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
         
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
            var _createClass2 = require('babel-runtime/helpers/createClass');
         
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
            var _createClass3 = _interopRequireDefault(_createClass2);
         
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
            var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
         
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
            var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
         
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
            var _inherits2 = require('babel-runtime/helpers/inherits');
         
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
            var _inherits3 = _interopRequireDefault(_inherits2);
         
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
            var _class, _class2, _temp, _initialiseProps; /*
         
     | 
| 
       45 
     | 
    
         
            -
                                                           * @Description:
         
     | 
| 
       46 
     | 
    
         
            -
                                                           * @Date: 2019-08-13 08:42:18
         
     | 
| 
       47 
     | 
    
         
            -
                                                           * @LastEditTime: 2020-10-22 14:19:17
         
     | 
| 
       48 
     | 
    
         
            -
                                                           * @LastEditors: chenlongad
         
     | 
| 
       49 
     | 
    
         
            -
                                                           * @modify:修改跳转到T+的查询方案方式
         
     | 
| 
       50 
     | 
    
         
            -
                                                           */
         
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
     | 
    
         
            -
            var _react = require('react');
         
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
            var _react2 = _interopRequireDefault(_react);
         
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
       57 
     | 
    
         
            -
            var _mobxReact = require('mobx-react');
         
     | 
| 
       58 
     | 
    
         
            -
             
     | 
| 
       59 
     | 
    
         
            -
            var _antd = require('antd');
         
     | 
| 
       60 
     | 
    
         
            -
             
     | 
| 
       61 
     | 
    
         
            -
            var _mutantsMicrofx = require('mutants-microfx');
         
     | 
| 
       62 
     | 
    
         
            -
             
     | 
| 
       63 
     | 
    
         
            -
            var _tplusComponentsTouch = require('tplus-components-touch');
         
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
            var _tplusApi = require('tplus-api');
         
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
            var _tplusPoslogin = require('tplus-poslogin');
         
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
       69 
     | 
    
         
            -
            var _mutantsUtil = require('mutants-util');
         
     | 
| 
       70 
     | 
    
         
            -
             
     | 
| 
       71 
     | 
    
         
            -
            var _propTypes = require('prop-types');
         
     | 
| 
       72 
     | 
    
         
            -
             
     | 
| 
       73 
     | 
    
         
            -
            var _propTypes2 = _interopRequireDefault(_propTypes);
         
     | 
| 
       74 
     | 
    
         
            -
             
     | 
| 
       75 
     | 
    
         
            -
            var _ModifyPassApi = require('../../api/ModifyPassApi');
         
     | 
| 
       76 
     | 
    
         
            -
             
     | 
| 
       77 
     | 
    
         
            -
            var _data = require('./data');
         
     | 
| 
       78 
     | 
    
         
            -
             
     | 
| 
       79 
     | 
    
         
            -
            var _data2 = _interopRequireDefault(_data);
         
     | 
| 
       80 
     | 
    
         
            -
             
     | 
| 
       81 
     | 
    
         
            -
            var _middleWare = require('../../middleWare');
         
     | 
| 
       82 
     | 
    
         
            -
             
     | 
| 
       83 
     | 
    
         
            -
            var _middleWare2 = _interopRequireDefault(_middleWare);
         
     | 
| 
       84 
     | 
    
         
            -
             
     | 
| 
       85 
     | 
    
         
            -
            var _verticalPortal = require('./verticalPortal');
         
     | 
| 
       86 
     | 
    
         
            -
             
     | 
| 
       87 
     | 
    
         
            -
            var _verticalPortal2 = _interopRequireDefault(_verticalPortal);
         
     | 
| 
       88 
     | 
    
         
            -
             
     | 
| 
       89 
     | 
    
         
            -
            var _horizontalPadPortal = require('./horizontalPadPortal');
         
     | 
| 
       90 
     | 
    
         
            -
             
     | 
| 
       91 
     | 
    
         
            -
            var _horizontalPadPortal2 = _interopRequireDefault(_horizontalPadPortal);
         
     | 
| 
       92 
     | 
    
         
            -
             
     | 
| 
       93 
     | 
    
         
            -
            require('./index.less');
         
     | 
| 
       94 
     | 
    
         
            -
             
     | 
| 
       95 
     | 
    
         
            -
            function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
         
     | 
| 
       96 
     | 
    
         
            -
             
     | 
| 
       97 
     | 
    
         
            -
            var hasElectron = _mutantsMicrofx.env.platform === _mutantsMicrofx.env.constant.platform.electron;
         
     | 
| 
       98 
     | 
    
         
            -
            var Content = _tplusComponentsTouch.Layout.Content,
         
     | 
| 
       99 
     | 
    
         
            -
                Footer = _tplusComponentsTouch.Layout.Footer;
         
     | 
| 
       100 
     | 
    
         
            -
             
     | 
| 
       101 
     | 
    
         
            -
            var tplusWindow = null;
         
     | 
| 
       102 
     | 
    
         
            -
             
     | 
| 
       103 
     | 
    
         
            -
            var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_Component) {
         
     | 
| 
       104 
     | 
    
         
            -
              (0, _inherits3.default)(_default, _Component);
         
     | 
| 
       105 
     | 
    
         
            -
             
     | 
| 
       106 
     | 
    
         
            -
              function _default(props) {
         
     | 
| 
       107 
     | 
    
         
            -
                (0, _classCallCheck3.default)(this, _default);
         
     | 
| 
       108 
     | 
    
         
            -
             
     | 
| 
       109 
     | 
    
         
            -
                var _this = (0, _possibleConstructorReturn3.default)(this, (_default.__proto__ || (0, _getPrototypeOf2.default)(_default)).call(this, props));
         
     | 
| 
       110 
     | 
    
         
            -
             
     | 
| 
       111 
     | 
    
         
            -
                _initialiseProps.call(_this);
         
     | 
| 
       112 
     | 
    
         
            -
             
     | 
| 
       113 
     | 
    
         
            -
                _this.hasElectron = hasElectron;
         
     | 
| 
       114 
     | 
    
         
            -
                _this.state = {
         
     | 
| 
       115 
     | 
    
         
            -
                  id: Date.now(),
         
     | 
| 
       116 
     | 
    
         
            -
                  operations: [],
         
     | 
| 
       117 
     | 
    
         
            -
                  showModal: false,
         
     | 
| 
       118 
     | 
    
         
            -
                  frameUrl: ''
         
     | 
| 
       119 
     | 
    
         
            -
                };
         
     | 
| 
       120 
     | 
    
         
            -
             
     | 
| 
       121 
     | 
    
         
            -
                var _ref = _mutantsUtil.platform || {},
         
     | 
| 
       122 
     | 
    
         
            -
                    isVerticalTouch = _ref.isVerticalTouch,
         
     | 
| 
       123 
     | 
    
         
            -
                    isHorizontalPad = _ref.isHorizontalPad,
         
     | 
| 
       124 
     | 
    
         
            -
                    isHorizontalSunMi = _ref.isHorizontalSunMi;
         
     | 
| 
       125 
     | 
    
         
            -
             
     | 
| 
       126 
     | 
    
         
            -
                _this.isVerticalTouch = !!isVerticalTouch;
         
     | 
| 
       127 
     | 
    
         
            -
                _this.isHorizontalPad = !!isHorizontalPad;
         
     | 
| 
       128 
     | 
    
         
            -
                _this.isHorizontalSunMi = !!isHorizontalSunMi;
         
     | 
| 
       129 
     | 
    
         
            -
                _this.isMobileEnvironment = !!isHorizontalPad || !!isHorizontalSunMi;
         
     | 
| 
       130 
     | 
    
         
            -
                _this.FuPingIsLoaded = false;
         
     | 
| 
       131 
     | 
    
         
            -
             
     | 
| 
       132 
     | 
    
         
            -
                //首页布局
         
     | 
| 
       133 
     | 
    
         
            -
                var leftMenu = _data2.default.leftMenu,
         
     | 
| 
       134 
     | 
    
         
            -
                    centerLeftMenu = _data2.default.centerLeftMenu,
         
     | 
| 
       135 
     | 
    
         
            -
                    centerRightMenu = _data2.default.centerRightMenu,
         
     | 
| 
       136 
     | 
    
         
            -
                    rightMenu = _data2.default.rightMenu;
         
     | 
| 
       137 
     | 
    
         
            -
             
     | 
| 
       138 
     | 
    
         
            -
                _this.leftMenu = leftMenu;
         
     | 
| 
       139 
     | 
    
         
            -
                _this.centerLeftMenu = centerLeftMenu;
         
     | 
| 
       140 
     | 
    
         
            -
                _this.centerRightMenu = centerRightMenu;
         
     | 
| 
       141 
     | 
    
         
            -
                _this.rightMenu = rightMenu;
         
     | 
| 
       142 
     | 
    
         
            -
                return _this;
         
     | 
| 
       143 
     | 
    
         
            -
              }
         
     | 
| 
       144 
     | 
    
         
            -
             
     | 
| 
       145 
     | 
    
         
            -
              (0, _createClass3.default)(_default, [{
         
     | 
| 
       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;
         
     | 
| 
       185 
     | 
    
         
            -
                      }
         
     | 
| 
       186 
     | 
    
         
            -
                      window.open('vicescreen?ts=' + new Date().getTime(), 'screen');
         
     | 
| 
       187 
     | 
    
         
            -
                    }
         
     | 
| 
       188 
     | 
    
         
            -
                  });
         
     | 
| 
       189 
     | 
    
         
            -
                }
         
     | 
| 
       190 
     | 
    
         
            -
                // 初始化商米副屏
         
     | 
| 
       191 
     | 
    
         
            -
             
     | 
| 
       192 
     | 
    
         
            -
              }, {
         
     | 
| 
       193 
     | 
    
         
            -
                key: 'componentWillUnmount',
         
     | 
| 
       194 
     | 
    
         
            -
                value: function componentWillUnmount() {
         
     | 
| 
       195 
     | 
    
         
            -
                  var _context$headHook2 = this.context.headHook;
         
     | 
| 
       196 
     | 
    
         
            -
                  _context$headHook2 = _context$headHook2 === undefined ? {} : _context$headHook2;
         
     | 
| 
       197 
     | 
    
         
            -
                  var removeClass = _context$headHook2.removeClass;
         
     | 
| 
       198 
     | 
    
         
            -
             
     | 
| 
       199 
     | 
    
         
            -
                  removeClass && removeClass(this.state.id, 'portalHead');
         
     | 
| 
       200 
     | 
    
         
            -
                }
         
     | 
| 
       201 
     | 
    
         
            -
              }, {
         
     | 
| 
       202 
     | 
    
         
            -
                key: 'componentWillReceiveProps',
         
     | 
| 
       203 
     | 
    
         
            -
                value: function componentWillReceiveProps() {
         
     | 
| 
       204 
     | 
    
         
            -
                  if (this.getScreenType() === true) {
         
     | 
| 
       205 
     | 
    
         
            -
                    //副屏幕交互。硬件改动20200428
         
     | 
| 
       206 
     | 
    
         
            -
                    if (this.isHorizontalSunMi && this.FuPingIsLoaded) {
         
     | 
| 
       207 
     | 
    
         
            -
                      window.sunMi_PresentationManager && window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 1 });
         
     | 
| 
       208 
     | 
    
         
            -
                    } else {
         
     | 
| 
       209 
     | 
    
         
            -
                      _mutantsMicrofx.nativeMs && _mutantsMicrofx.nativeMs.setIpcRendererMethod('ReplyScreen', { step: 1 });
         
     | 
| 
       210 
     | 
    
         
            -
                    }
         
     | 
| 
       211 
     | 
    
         
            -
                  }
         
     | 
| 
       212 
     | 
    
         
            -
                }
         
     | 
| 
       213 
     | 
    
         
            -
             
     | 
| 
       214 
     | 
    
         
            -
                // 获取副屏的状态
         
     | 
| 
       215 
     | 
    
         
            -
             
     | 
| 
       216 
     | 
    
         
            -
              }, {
         
     | 
| 
       217 
     | 
    
         
            -
                key: 'menuClick',
         
     | 
| 
       218 
     | 
    
         
            -
                value: function menuClick(item, e) {
         
     | 
| 
       219 
     | 
    
         
            -
                  _mutantsMicrofx.history.push(item.path);
         
     | 
| 
       220 
     | 
    
         
            -
                }
         
     | 
| 
       221 
     | 
    
         
            -
                //跳转到T+
         
     | 
| 
       222 
     | 
    
         
            -
             
     | 
| 
       223 
     | 
    
         
            -
              }, {
         
     | 
| 
       224 
     | 
    
         
            -
                key: 'render',
         
     | 
| 
       225 
     | 
    
         
            -
                value: function render() {
         
     | 
| 
       226 
     | 
    
         
            -
                  var _state = this.state,
         
     | 
| 
       227 
     | 
    
         
            -
                      showModal = _state.showModal,
         
     | 
| 
       228 
     | 
    
         
            -
                      frameUrl = _state.frameUrl;
         
     | 
| 
       229 
     | 
    
         
            -
             
     | 
| 
       230 
     | 
    
         
            -
                  var screenHeight = window.screen.availHeight - 100;
         
     | 
| 
       231 
     | 
    
         
            -
                  var htmlContent = null;
         
     | 
| 
       232 
     | 
    
         
            -
                  if (this.isVerticalTouch) {
         
     | 
| 
       233 
     | 
    
         
            -
                    htmlContent = _react2.default.createElement(_verticalPortal2.default, { handelClick: this.handelClick });
         
     | 
| 
       234 
     | 
    
         
            -
                  } else if (this.isHorizontalPad) {
         
     | 
| 
       235 
     | 
    
         
            -
                    htmlContent = _react2.default.createElement(_horizontalPadPortal2.default, { handelClick: this.handelClick });
         
     | 
| 
       236 
     | 
    
         
            -
                  }
         
     | 
| 
       237 
     | 
    
         
            -
                  //  else if (this.isHorizontalSunMi) {
         
     | 
| 
       238 
     | 
    
         
            -
                  //   htmlContent = <HorizontalSunMiPortal handelClick={this.handelClick} />
         
     | 
| 
       239 
     | 
    
         
            -
                  //  }
         
     | 
| 
       240 
     | 
    
         
            -
                  else {
         
     | 
| 
       241 
     | 
    
         
            -
                      htmlContent = _react2.default.createElement(
         
     | 
| 
       242 
     | 
    
         
            -
                        _tplusComponentsTouch.Layout,
         
     | 
| 
       243 
     | 
    
         
            -
                        { style: { height: '100%' }, className: 'portal-content' },
         
     | 
| 
       244 
     | 
    
         
            -
                        _react2.default.createElement(
         
     | 
| 
       245 
     | 
    
         
            -
                          Content,
         
     | 
| 
       246 
     | 
    
         
            -
                          { style: { paddingLeft: '50px', paddingRight: '50px' }, className: 'portal-container' },
         
     | 
| 
       247 
     | 
    
         
            -
                          _react2.default.createElement(
         
     | 
| 
       248 
     | 
    
         
            -
                            _antd.Row,
         
     | 
| 
       249 
     | 
    
         
            -
                            null,
         
     | 
| 
       250 
     | 
    
         
            -
                            _react2.default.createElement(
         
     | 
| 
       251 
     | 
    
         
            -
                              _antd.Col,
         
     | 
| 
       252 
     | 
    
         
            -
                              { xl: 7, md: 7, className: 'portal-left-col', key: 'left' },
         
     | 
| 
       253 
     | 
    
         
            -
                              _react2.default.createElement(
         
     | 
| 
       254 
     | 
    
         
            -
                                'div',
         
     | 
| 
       255 
     | 
    
         
            -
                                { className: 'portal-left-content' },
         
     | 
| 
       256 
     | 
    
         
            -
                                this.createLeftNode()
         
     | 
| 
       257 
     | 
    
         
            -
                              )
         
     | 
| 
       258 
     | 
    
         
            -
                            ),
         
     | 
| 
       259 
     | 
    
         
            -
                            _react2.default.createElement(
         
     | 
| 
       260 
     | 
    
         
            -
                              _antd.Col,
         
     | 
| 
       261 
     | 
    
         
            -
                              { xl: 10, md: 10, className: 'portal-center-col', key: 'center' },
         
     | 
| 
       262 
     | 
    
         
            -
                              _react2.default.createElement(
         
     | 
| 
       263 
     | 
    
         
            -
                                'div',
         
     | 
| 
       264 
     | 
    
         
            -
                                { className: 'portal-center-content' },
         
     | 
| 
       265 
     | 
    
         
            -
                                this.createCenterNode()
         
     | 
| 
       266 
     | 
    
         
            -
                              )
         
     | 
| 
       267 
     | 
    
         
            -
                            ),
         
     | 
| 
       268 
     | 
    
         
            -
                            _react2.default.createElement(
         
     | 
| 
       269 
     | 
    
         
            -
                              _antd.Col,
         
     | 
| 
       270 
     | 
    
         
            -
                              { xl: 7, md: 7, className: 'portal-right-col', key: 'right' },
         
     | 
| 
       271 
     | 
    
         
            -
                              _react2.default.createElement(
         
     | 
| 
       272 
     | 
    
         
            -
                                'div',
         
     | 
| 
       273 
     | 
    
         
            -
                                { className: 'portal-right-content' },
         
     | 
| 
       274 
     | 
    
         
            -
                                this.createRightNode()
         
     | 
| 
       275 
     | 
    
         
            -
                              )
         
     | 
| 
       276 
     | 
    
         
            -
                            )
         
     | 
| 
       277 
     | 
    
         
            -
                          )
         
     | 
| 
       278 
     | 
    
         
            -
                        ),
         
     | 
| 
       279 
     | 
    
         
            -
                        this.isMobileEnvironment && _react2.default.createElement(
         
     | 
| 
       280 
     | 
    
         
            -
                          _antd.Modal,
         
     | 
| 
       281 
     | 
    
         
            -
                          { visible: showModal,
         
     | 
| 
       282 
     | 
    
         
            -
                            onCancel: this.closeFrameModal,
         
     | 
| 
       283 
     | 
    
         
            -
                            width: '99%',
         
     | 
| 
       284 
     | 
    
         
            -
                            height: '99%',
         
     | 
| 
       285 
     | 
    
         
            -
                            footer: null
         
     | 
| 
       286 
     | 
    
         
            -
                          },
         
     | 
| 
       287 
     | 
    
         
            -
                          _react2.default.createElement('iframe', { src: frameUrl, width: '100%', height: screenHeight, frameborder: 'no', border: '0', marginwidth: '0', marginheight: '0', scrolling: 'yes', allowtransparency: 'true' })
         
     | 
| 
       288 
     | 
    
         
            -
                        )
         
     | 
| 
       289 
     | 
    
         
            -
                      );
         
     | 
| 
       290 
     | 
    
         
            -
                    }
         
     | 
| 
       291 
     | 
    
         
            -
                  return htmlContent;
         
     | 
| 
       292 
     | 
    
         
            -
                }
         
     | 
| 
       293 
     | 
    
         
            -
              }]);
         
     | 
| 
       294 
     | 
    
         
            -
              return _default;
         
     | 
| 
       295 
     | 
    
         
            -
            }(_react.Component), _class2.propTypes = {
         
     | 
| 
       296 
     | 
    
         
            -
              routes: _propTypes2.default.array
         
     | 
| 
       297 
     | 
    
         
            -
            }, _class2.contextTypes = {
         
     | 
| 
       298 
     | 
    
         
            -
              stores: _propTypes2.default.object,
         
     | 
| 
       299 
     | 
    
         
            -
              infoRender: _propTypes2.default.func,
         
     | 
| 
       300 
     | 
    
         
            -
              headHook: _propTypes2.default.object
         
     | 
| 
       301 
     | 
    
         
            -
            }, _initialiseProps = function _initialiseProps() {
         
     | 
| 
       302 
     | 
    
         
            -
              var _this3 = this;
         
     | 
| 
       303 
     | 
    
         
            -
             
     | 
| 
       304 
     | 
    
         
            -
              this.sunMiPresentationInit = function (result) {
         
     | 
| 
       305 
     | 
    
         
            -
                //SunMi初始化参数设置。
         
     | 
| 
       306 
     | 
    
         
            -
                //副屏幕交互。硬件改动20200428   需要在商米页面加载成功后才能发送 初始化命令
         
     | 
| 
       307 
     | 
    
         
            -
                // 获取是否缓存副屏地址 只在app打开的生命周期缓存 读取 关闭重新缓存
         
     | 
| 
       308 
     | 
    
         
            -
             
     | 
| 
       309 
     | 
    
         
            -
             
     | 
| 
       310 
     | 
    
         
            -
                var SunMi_fuping_url = sessionStorage.getItem("SunMi_fuping_url");
         
     | 
| 
       311 
     | 
    
         
            -
                // 如果存在缓存地址 使用缓存地址  否则使用新hash地址
         
     | 
| 
       312 
     | 
    
         
            -
                if (!SunMi_fuping_url) {
         
     | 
| 
       313 
     | 
    
         
            -
                  var url = location.origin + location.pathname + '?ts=' + new Date().getTime() + '&vt=3&fuping=3';
         
     | 
| 
       314 
     | 
    
         
            -
                  window.sunMi_PresentationManager && window.sunMi_PresentationManager.secondScreenLoadUrl(url).then(function () {
         
     | 
| 
       315 
     | 
    
         
            -
                    _this3.FuPingIsLoaded = true;
         
     | 
| 
       316 
     | 
    
         
            -
                    // 加载副屏页面成功 缓存地址
         
     | 
| 
       317 
     | 
    
         
            -
                    sessionStorage.setItem("SunMi_fuping_url", url);
         
     | 
| 
       318 
     | 
    
         
            -
                    setTimeout(function () {
         
     | 
| 
       319 
     | 
    
         
            -
                      // 进行主副屏数据交互 初始化
         
     | 
| 
       320 
     | 
    
         
            -
                      var _ref2 = _mutantsMicrofx.localStore.get('user') || {},
         
     | 
| 
       321 
     | 
    
         
            -
                          _ref2$store = _ref2.store;
         
     | 
| 
       322 
     | 
    
         
            -
             
     | 
| 
       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;
         
     | 
| 
       326 
     | 
    
         
            -
             
     | 
| 
       327 
     | 
    
         
            -
                      console.log(result);
         
     | 
| 
       328 
     | 
    
         
            -
             
     | 
| 
       329 
     | 
    
         
            -
                      var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
         
     | 
| 
       330 
     | 
    
         
            -
                          RE_POSParamType = _enumController$getEn.RE_POSParamType;
         
     | 
| 
       331 
     | 
    
         
            -
             
     | 
| 
       332 
     | 
    
         
            -
                      var DUAL_SCREEN_SETTING = RE_POSParamType.DUAL_SCREEN_SETTING;
         
     | 
| 
       333 
     | 
    
         
            -
             
     | 
| 
       334 
     | 
    
         
            -
                      var filterResult = result && result.filter ? result.filter(function (settingItem) {
         
     | 
| 
       335 
     | 
    
         
            -
                        return settingItem.ParamType && (settingItem.ParamType.Id === DUAL_SCREEN_SETTING || settingItem.ParamType === DUAL_SCREEN_SETTING);
         
     | 
| 
       336 
     | 
    
         
            -
                      }) : [];
         
     | 
| 
       337 
     | 
    
         
            -
                      window.sunMi_PresentationManager && window.sunMi_PresentationManager.sharedPreferencesSet("setting_setData", filterResult).then(function () {
         
     | 
| 
       338 
     | 
    
         
            -
                        console.log("缓存数据成功");
         
     | 
| 
       339 
     | 
    
         
            -
                        window.sunMi_PresentationManager && window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 0, storeName: storeName });
         
     | 
| 
       340 
     | 
    
         
            -
                      });
         
     | 
| 
       341 
     | 
    
         
            -
                    }, 2000);
         
     | 
| 
       342 
     | 
    
         
            -
                  });
         
     | 
| 
       343 
     | 
    
         
            -
                } else {
         
     | 
| 
       344 
     | 
    
         
            -
                  // 表示已经加载过页面只需要重置状态即可
         
     | 
| 
       345 
     | 
    
         
            -
                  var _ref3 = _mutantsMicrofx.localStore.get('user') || {},
         
     | 
| 
       346 
     | 
    
         
            -
                      _ref3$store = _ref3.store;
         
     | 
| 
       347 
     | 
    
         
            -
             
     | 
| 
       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;
         
     | 
| 
       351 
     | 
    
         
            -
             
     | 
| 
       352 
     | 
    
         
            -
                  window.sunMi_PresentationManager && window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 0, storeName: storeName });
         
     | 
| 
       353 
     | 
    
         
            -
                }
         
     | 
| 
       354 
     | 
    
         
            -
              };
         
     | 
| 
       355 
     | 
    
         
            -
             
     | 
| 
       356 
     | 
    
         
            -
              this.getScreenType = function () {
         
     | 
| 
       357 
     | 
    
         
            -
                var flag = false;
         
     | 
| 
       358 
     | 
    
         
            -
                if (_this3.hasElectron === true || _this3.isHorizontalSunMi) {
         
     | 
| 
       359 
     | 
    
         
            -
                  var data = _mutantsMicrofx.localStore.get('setting_setData') || [];
         
     | 
| 
       360 
     | 
    
         
            -
                  data = data.filter(function (item) {
         
     | 
| 
       361 
     | 
    
         
            -
                    return item.Name === 'EnableDoubleScreen';
         
     | 
| 
       362 
     | 
    
         
            -
                  });
         
     | 
| 
       363 
     | 
    
         
            -
                  data = data && data.length > 0 ? data.shift() : null;
         
     | 
| 
       364 
     | 
    
         
            -
                  if (data && data.Value === '1') {
         
     | 
| 
       365 
     | 
    
         
            -
                    flag = true;
         
     | 
| 
       366 
     | 
    
         
            -
                  }
         
     | 
| 
       367 
     | 
    
         
            -
                }
         
     | 
| 
       368 
     | 
    
         
            -
                return flag;
         
     | 
| 
       369 
     | 
    
         
            -
              };
         
     | 
| 
       370 
     | 
    
         
            -
             
     | 
| 
       371 
     | 
    
         
            -
              this.saveLog = function (name) {
         
     | 
| 
       372 
     | 
    
         
            -
                var saveLogo = _ModifyPassApi.Request.saveLogo;
         
     | 
| 
       373 
     | 
    
         
            -
             
     | 
| 
       374 
     | 
    
         
            -
                name = "进入模块:" + name;
         
     | 
| 
       375 
     | 
    
         
            -
                saveLogo('进入模块', undefined, name);
         
     | 
| 
       376 
     | 
    
         
            -
              };
         
     | 
| 
       377 
     | 
    
         
            -
             
     | 
| 
       378 
     | 
    
         
            -
              this.handelClick = function () {
         
     | 
| 
       379 
     | 
    
         
            -
                var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
         
     | 
| 
       380 
     | 
    
         
            -
                var type = values.key,
         
     | 
| 
       381 
     | 
    
         
            -
                    isModal = values.isModal,
         
     | 
| 
       382 
     | 
    
         
            -
                    title = values.title,
         
     | 
| 
       383 
     | 
    
         
            -
                    Name = values.Name,
         
     | 
| 
       384 
     | 
    
         
            -
                    search = values.search;
         
     | 
| 
       385 
     | 
    
         
            -
                var tmenuCode = values.tmenuCode;
         
     | 
| 
       386 
     | 
    
         
            -
                var operations = _this3.state.operations;
         
     | 
| 
       387 
     | 
    
         
            -
             
     | 
| 
       388 
     | 
    
         
            -
                var controllable = operations.find(function (vv) {
         
     | 
| 
       389 
     | 
    
         
            -
                  return vv.Name === Name;
         
     | 
| 
       390 
     | 
    
         
            -
                });
         
     | 
| 
       391 
     | 
    
         
            -
             
     | 
| 
       392 
     | 
    
         
            -
                var _ref4 = controllable || {},
         
     | 
| 
       393 
     | 
    
         
            -
                    Visibility = _ref4.Visibility,
         
     | 
| 
       394 
     | 
    
         
            -
                    HoldFunctionAuth = _ref4.HoldFunctionAuth,
         
     | 
| 
       395 
     | 
    
         
            -
                    Title = _ref4.Title,
         
     | 
| 
       396 
     | 
    
         
            -
                    MenuCode = _ref4.MenuCode;
         
     | 
| 
       397 
     | 
    
         
            -
             
     | 
| 
       398 
     | 
    
         
            -
                var errorTip = void 0;
         
     | 
| 
       399 
     | 
    
         
            -
                if (!Title) {
         
     | 
| 
       400 
     | 
    
         
            -
                  return _tplusComponentsTouch.ModalWraper.warning({
         
     | 
| 
       401 
     | 
    
         
            -
                    title: '提示',
         
     | 
| 
       402 
     | 
    
         
            -
                    content: '您的权限配置请求失败,请重新登录',
         
     | 
| 
       403 
     | 
    
         
            -
                    onOk: function onOk() {
         
     | 
| 
       404 
     | 
    
         
            -
                      _tplusApi.User.logout();
         
     | 
| 
       405 
     | 
    
         
            -
                    },
         
     | 
| 
       406 
     | 
    
         
            -
             
     | 
| 
       407 
     | 
    
         
            -
                    okType: 'primary'
         
     | 
| 
       408 
     | 
    
         
            -
                  });
         
     | 
| 
       409 
     | 
    
         
            -
                }
         
     | 
| 
       410 
     | 
    
         
            -
                if (!Visibility) {
         
     | 
| 
       411 
     | 
    
         
            -
                  errorTip = '\u60A8\u7684 ' + Title + ' \u6A21\u5757\u6CA1\u6709\u542F\u7528';
         
     | 
| 
       412 
     | 
    
         
            -
                } else if (!HoldFunctionAuth) {
         
     | 
| 
       413 
     | 
    
         
            -
                  errorTip = '\u60A8\u6CA1\u6709\u64CD\u4F5C ' + Title + ' \u7684\u6743\u9650';
         
     | 
| 
       414 
     | 
    
         
            -
                }
         
     | 
| 
       415 
     | 
    
         
            -
                var portalStore = _this3.context.stores.portalStore;
         
     | 
| 
       416 
     | 
    
         
            -
             
     | 
| 
       417 
     | 
    
         
            -
                if (errorTip) {
         
     | 
| 
       418 
     | 
    
         
            -
                  return _tplusComponentsTouch.Message.warn(errorTip);
         
     | 
| 
       419 
     | 
    
         
            -
                }
         
     | 
| 
       420 
     | 
    
         
            -
                if (isModal) {
         
     | 
| 
       421 
     | 
    
         
            -
                  return _mutantsMicrofx.stores.modalRouter.show({ url: '/' + type, width: 800, title: title });
         
     | 
| 
       422 
     | 
    
         
            -
                }
         
     | 
| 
       423 
     | 
    
         
            -
                switch (type) {
         
     | 
| 
       424 
     | 
    
         
            -
                  case 'cashier':
         
     | 
| 
       425 
     | 
    
         
            -
                    portalStore.checkDuty().then(function (onDutyMessage) {
         
     | 
| 
       426 
     | 
    
         
            -
                      if (!!onDutyMessage) {
         
     | 
| 
       427 
     | 
    
         
            -
                        var Code = onDutyMessage.Code,
         
     | 
| 
       428 
     | 
    
         
            -
                            IdShiftVoucher = onDutyMessage.IdShiftVoucher,
         
     | 
| 
       429 
     | 
    
         
            -
                            Shift = onDutyMessage.Shift,
         
     | 
| 
       430 
     | 
    
         
            -
                            IdDailyVoucher = onDutyMessage.IdDailyVoucher,
         
     | 
| 
       431 
     | 
    
         
            -
                            DailyCode = onDutyMessage.DailyCode;
         
     | 
| 
       432 
     | 
    
         
            -
             
     | 
| 
       433 
     | 
    
         
            -
                        (0, _tplusPoslogin.PosSetData)({ ShiftCode: Code, IdShiftVoucher: IdShiftVoucher, Shift: Shift, IdDailyVoucher: IdDailyVoucher, DailyCode: DailyCode });
         
     | 
| 
       434 
     | 
    
         
            -
                        console.log('onDutyMessage======', onDutyMessage);
         
     | 
| 
       435 
     | 
    
         
            -
                        _this3.saveLog(title);
         
     | 
| 
       436 
     | 
    
         
            -
                        _mutantsMicrofx.history.push('/RE/RE01');
         
     | 
| 
       437 
     | 
    
         
            -
                      }
         
     | 
| 
       438 
     | 
    
         
            -
                    }).catch(function (data) {
         
     | 
| 
       439 
     | 
    
         
            -
                      console.log("进入前台收银检查是否当班返回错误");
         
     | 
| 
       440 
     | 
    
         
            -
                      console.log(data);
         
     | 
| 
       441 
     | 
    
         
            -
                    });
         
     | 
| 
       442 
     | 
    
         
            -
                    break;
         
     | 
| 
       443 
     | 
    
         
            -
                  case 'onDuty':
         
     | 
| 
       444 
     | 
    
         
            -
                    portalStore.onDuty().then(function (onDutyMessage) {
         
     | 
| 
       445 
     | 
    
         
            -
                      if (onDutyMessage && onDutyMessage.shift) {
         
     | 
| 
       446 
     | 
    
         
            -
                        _middleWare2.default.execute('onDuty');
         
     | 
| 
       447 
     | 
    
         
            -
                      }
         
     | 
| 
       448 
     | 
    
         
            -
                    });
         
     | 
| 
       449 
     | 
    
         
            -
                    break;
         
     | 
| 
       450 
     | 
    
         
            -
                  case 'offDuty':
         
     | 
| 
       451 
     | 
    
         
            -
                    _mutantsMicrofx.history.push('/offDuty?type=offDuty');
         
     | 
| 
       452 
     | 
    
         
            -
                    break;
         
     | 
| 
       453 
     | 
    
         
            -
                  case 'settleDialy':
         
     | 
| 
       454 
     | 
    
         
            -
                    if (portalStore.bPosDaily()) {
         
     | 
| 
       455 
     | 
    
         
            -
                      _mutantsMicrofx.history.push('/offDuty?type=settleDaily');
         
     | 
| 
       456 
     | 
    
         
            -
                    } else {
         
     | 
| 
       457 
     | 
    
         
            -
                      portalStore.onMakerDaily();
         
     | 
| 
       458 
     | 
    
         
            -
                    }
         
     | 
| 
       459 
     | 
    
         
            -
                    break;
         
     | 
| 
       460 
     | 
    
         
            -
                  default:
         
     | 
| 
       461 
     | 
    
         
            -
                    if (tmenuCode || MenuCode) {
         
     | 
| 
       462 
     | 
    
         
            -
                      _this3.saveLog(title);
         
     | 
| 
       463 
     | 
    
         
            -
                      if (MenuCode) {
         
     | 
| 
       464 
     | 
    
         
            -
                        _this3.toTplusPage(type, MenuCode, search);
         
     | 
| 
       465 
     | 
    
         
            -
                      } else {
         
     | 
| 
       466 
     | 
    
         
            -
                        _this3.toTplusPage(type, tmenuCode, search);
         
     | 
| 
       467 
     | 
    
         
            -
                      }
         
     | 
| 
       468 
     | 
    
         
            -
                    } else {
         
     | 
| 
       469 
     | 
    
         
            -
                      _mutantsMicrofx.history.push('/' + type);
         
     | 
| 
       470 
     | 
    
         
            -
                    }
         
     | 
| 
       471 
     | 
    
         
            -
                    break;
         
     | 
| 
       472 
     | 
    
         
            -
                }
         
     | 
| 
       473 
     | 
    
         
            -
              };
         
     | 
| 
       474 
     | 
    
         
            -
             
     | 
| 
       475 
     | 
    
         
            -
              this.getTplusUrlFromCloudServer = function () {
         
     | 
| 
       476 
     | 
    
         
            -
                //获取T+服务器配置地址。
         
     | 
| 
       477 
     | 
    
         
            -
                var userStore = _tplusApi.User.restore();
         
     | 
| 
       478 
     | 
    
         
            -
                var cloudUrl = 'http://tfproxy.chanjet.com/?url=';
         
     | 
| 
       479 
     | 
    
         
            -
                var data = 'accesstoken=' + ('' + userStore.accessToken) + '&cloudOrgId=' + ('' + userStore.orgId);
         
     | 
| 
       480 
     | 
    
         
            -
                var url = '' + cloudUrl + encodeURIComponent('http://mns.chanapp.chanjet.com/web/WebServer/get?' + ('' + data));
         
     | 
| 
       481 
     | 
    
         
            -
                console.log(url);
         
     | 
| 
       482 
     | 
    
         
            -
                var fetchHeader = {
         
     | 
| 
       483 
     | 
    
         
            -
                  headers: {
         
     | 
| 
       484 
     | 
    
         
            -
                    'Content-Type': 'application/x-www-form-urlencoded'
         
     | 
| 
       485 
     | 
    
         
            -
                  }
         
     | 
| 
       486 
     | 
    
         
            -
                };
         
     | 
| 
       487 
     | 
    
         
            -
                return new _promise2.default(function (resolve, reject) {
         
     | 
| 
       488 
     | 
    
         
            -
                  fetch(url, fetchHeader).then(function (response) {
         
     | 
| 
       489 
     | 
    
         
            -
                    return response.json();
         
     | 
| 
       490 
     | 
    
         
            -
                  }).then(function (json) {
         
     | 
| 
       491 
     | 
    
         
            -
                    console.log(json);
         
     | 
| 
       492 
     | 
    
         
            -
                    resolve(json);
         
     | 
| 
       493 
     | 
    
         
            -
                  }).catch(function (ex) {
         
     | 
| 
       494 
     | 
    
         
            -
                    console.log(ex);
         
     | 
| 
       495 
     | 
    
         
            -
                    reject(err);
         
     | 
| 
       496 
     | 
    
         
            -
                  });
         
     | 
| 
       497 
     | 
    
         
            -
                });
         
     | 
| 
       498 
     | 
    
         
            -
              };
         
     | 
| 
       499 
     | 
    
         
            -
             
     | 
| 
       500 
     | 
    
         
            -
              this.toTplusPage = function () {
         
     | 
| 
       501 
     | 
    
         
            -
                var _ref5 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(type, tmenuCode, search) {
         
     | 
| 
       502 
     | 
    
         
            -
                  var userStore, sid, tplusUrl, tplusinnersite, msg, dsearchPlanID, portalStore, baseUrl, ossjumpUrl, user, loginInfo, pwd, userName, accNum, menu, posCode, storeID, fromUrl;
         
     | 
| 
       503 
     | 
    
         
            -
                  return _regenerator2.default.wrap(function _callee$(_context2) {
         
     | 
| 
       504 
     | 
    
         
            -
                    while (1) {
         
     | 
| 
       505 
     | 
    
         
            -
                      switch (_context2.prev = _context2.next) {
         
     | 
| 
       506 
     | 
    
         
            -
                        case 0:
         
     | 
| 
       507 
     | 
    
         
            -
                          userStore = _tplusApi.User.restore();
         
     | 
| 
       508 
     | 
    
         
            -
                          sid = userStore.sid;
         
     | 
| 
       509 
     | 
    
         
            -
                          tplusUrl = (0, _tplusPoslogin.PosInitData)("TplusSite");
         
     | 
| 
       510 
     | 
    
         
            -
                          tplusinnersite = (0, _tplusPoslogin.PosInitData)("tplusinnersite");
         
     | 
| 
       511 
     | 
    
         
            -
             
     | 
| 
       512 
     | 
    
         
            -
                          tplusUrl = tplusUrl ? tplusUrl : tplusinnersite;
         
     | 
| 
       513 
     | 
    
         
            -
                          if (!tplusUrl && !sid && _this3.hasElectron === true) {
         
     | 
| 
       514 
     | 
    
         
            -
                            //软件包,并且electron读取electron配置的地址
         
     | 
| 
       515 
     | 
    
         
            -
                            tplusUrl = location.origin + "/tplus";
         
     | 
| 
       516 
     | 
    
         
            -
                          }
         
     | 
| 
       517 
     | 
    
         
            -
             
     | 
| 
       518 
     | 
    
         
            -
                          if (tplusUrl) {
         
     | 
| 
       519 
     | 
    
         
            -
                            _context2.next = 10;
         
     | 
| 
       520 
     | 
    
         
            -
                            break;
         
     | 
| 
       521 
     | 
    
         
            -
                          }
         
     | 
| 
       522 
     | 
    
         
            -
             
     | 
| 
       523 
     | 
    
         
            -
                          msg = "请用admin登录,在服务器配置–地址配置处,设置“内部或外部网络访问T+服务器的地址”!";
         
     | 
| 
       524 
     | 
    
         
            -
             
     | 
| 
       525 
     | 
    
         
            -
                          _tplusComponentsTouch.ModalWraper.warning({
         
     | 
| 
       526 
     | 
    
         
            -
                            title: '温馨提示',
         
     | 
| 
       527 
     | 
    
         
            -
                            content: msg,
         
     | 
| 
       528 
     | 
    
         
            -
                            okText: '确定',
         
     | 
| 
       529 
     | 
    
         
            -
                            okType: 'primary'
         
     | 
| 
       530 
     | 
    
         
            -
                          });
         
     | 
| 
       531 
     | 
    
         
            -
                          return _context2.abrupt('return');
         
     | 
| 
       532 
     | 
    
         
            -
             
     | 
| 
       533 
     | 
    
         
            -
                        case 10:
         
     | 
| 
       534 
     | 
    
         
            -
                          dsearchPlanID = void 0;
         
     | 
| 
       535 
     | 
    
         
            -
             
     | 
| 
       536 
     | 
    
         
            -
                          if (!(search && search.id)) {
         
     | 
| 
       537 
     | 
    
         
            -
                            _context2.next = 16;
         
     | 
| 
       538 
     | 
    
         
            -
                            break;
         
     | 
| 
       539 
     | 
    
         
            -
                          }
         
     | 
| 
       540 
     | 
    
         
            -
             
     | 
| 
       541 
     | 
    
         
            -
                          portalStore = _this3.context.stores.portalStore;
         
     | 
| 
       542 
     | 
    
         
            -
                          _context2.next = 15;
         
     | 
| 
       543 
     | 
    
         
            -
                          return portalStore.getSearchPlanId(search);
         
     | 
| 
       544 
     | 
    
         
            -
             
     | 
| 
       545 
     | 
    
         
            -
                        case 15:
         
     | 
| 
       546 
     | 
    
         
            -
                          dsearchPlanID = _context2.sent;
         
     | 
| 
       547 
     | 
    
         
            -
             
     | 
| 
       548 
     | 
    
         
            -
                        case 16:
         
     | 
| 
       549 
     | 
    
         
            -
                          if (tplusUrl.substring(tplusUrl.length - 1) !== '/') tplusUrl += '/';
         
     | 
| 
       550 
     | 
    
         
            -
                          baseUrl = tplusUrl;
         
     | 
| 
       551 
     | 
    
         
            -
                          // if(!isProxy){
         
     | 
| 
       552 
     | 
    
         
            -
                          //   tplusUrl = targetUrl;
         
     | 
| 
       553 
     | 
    
         
            -
                          // }
         
     | 
| 
       554 
     | 
    
         
            -
             
     | 
| 
       555 
     | 
    
         
            -
                          ossjumpUrl = tplusUrl + 'view/portal/portal.html?t=' + new Date().getTime();
         
     | 
| 
       556 
     | 
    
         
            -
             
     | 
| 
       557 
     | 
    
         
            -
                          if (sid) {
         
     | 
| 
       558 
     | 
    
         
            -
                            ossjumpUrl = tplusUrl + 'view/ossjump.html?t=' + new Date().getTime() + '&sid=' + sid;
         
     | 
| 
       559 
     | 
    
         
            -
                          }
         
     | 
| 
       560 
     | 
    
         
            -
                          user = _this3.context.stores.user;
         
     | 
| 
       561 
     | 
    
         
            -
                          loginInfo = user.options.get('loginInfo');
         
     | 
| 
       562 
     | 
    
         
            -
                          pwd = user.options.get("password");
         
     | 
| 
       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 + "");
         
     | 
| 
       568 
     | 
    
         
            -
             
     | 
| 
       569 
     | 
    
         
            -
                          pwd = _this3.tplusEncode(pwd);
         
     | 
| 
       570 
     | 
    
         
            -
                          fromUrl = _this3.tplusEncode(location.origin);
         
     | 
| 
       571 
     | 
    
         
            -
             
     | 
| 
       572 
     | 
    
         
            -
                          ossjumpUrl += '&fromApp=nretail&user=' + userName + '&pwd=' + pwd + '&accNum=' + accNum + '&menu=' + menu + '&posCode=' + posCode + '&storeID=' + storeID + '&fromUrl=' + fromUrl;
         
     | 
| 
       573 
     | 
    
         
            -
                          if (dsearchPlanID) {
         
     | 
| 
       574 
     | 
    
         
            -
                            ossjumpUrl += '&searchPlanID=' + _this3.tplusEncode(dsearchPlanID);
         
     | 
| 
       575 
     | 
    
         
            -
                          }
         
     | 
| 
       576 
     | 
    
         
            -
                          if (_this3.isHorizontalSunMi) {
         
     | 
| 
       577 
     | 
    
         
            -
                            window.android_CommonFun.openWebUrlByOutBrowser(ossjumpUrl);
         
     | 
| 
       578 
     | 
    
         
            -
                          } else if (_this3.hasElectron === true) {
         
     | 
| 
       579 
     | 
    
         
            -
                            _mutantsMicrofx.nativeMs.useDefaultBrowser(ossjumpUrl);
         
     | 
| 
       580 
     | 
    
         
            -
                          } else if (_this3.isMobileEnvironment) {
         
     | 
| 
       581 
     | 
    
         
            -
                            _this3.setState({ showModal: true, frameUrl: ossjumpUrl });
         
     | 
| 
       582 
     | 
    
         
            -
                          } else {
         
     | 
| 
       583 
     | 
    
         
            -
                            if (!tplusWindow || tplusWindow.closed) {
         
     | 
| 
       584 
     | 
    
         
            -
                              tplusWindow = window.open(ossjumpUrl, "tplus", "location=no");
         
     | 
| 
       585 
     | 
    
         
            -
                            } else {
         
     | 
| 
       586 
     | 
    
         
            -
                              tplusWindow.postMessage({ tmenuCode: tmenuCode, searchPlanID: dsearchPlanID, ossjumpUrl: ossjumpUrl }, baseUrl);
         
     | 
| 
       587 
     | 
    
         
            -
                              window.open("", "tplus", "location=no");
         
     | 
| 
       588 
     | 
    
         
            -
                            }
         
     | 
| 
       589 
     | 
    
         
            -
                          }
         
     | 
| 
       590 
     | 
    
         
            -
             
     | 
| 
       591 
     | 
    
         
            -
                        case 33:
         
     | 
| 
       592 
     | 
    
         
            -
                        case 'end':
         
     | 
| 
       593 
     | 
    
         
            -
                          return _context2.stop();
         
     | 
| 
       594 
     | 
    
         
            -
                      }
         
     | 
| 
       595 
     | 
    
         
            -
                    }
         
     | 
| 
       596 
     | 
    
         
            -
                  }, _callee, _this3);
         
     | 
| 
       597 
     | 
    
         
            -
                }));
         
     | 
| 
       598 
     | 
    
         
            -
             
     | 
| 
       599 
     | 
    
         
            -
                return function (_x2, _x3, _x4) {
         
     | 
| 
       600 
     | 
    
         
            -
                  return _ref5.apply(this, arguments);
         
     | 
| 
       601 
     | 
    
         
            -
                };
         
     | 
| 
       602 
     | 
    
         
            -
              }();
         
     | 
| 
       603 
     | 
    
         
            -
             
     | 
| 
       604 
     | 
    
         
            -
              this.closeFrameModal = function () {
         
     | 
| 
       605 
     | 
    
         
            -
                _this3.setState({ showModal: false });
         
     | 
| 
       606 
     | 
    
         
            -
              };
         
     | 
| 
       607 
     | 
    
         
            -
             
     | 
| 
       608 
     | 
    
         
            -
              this.tplusEncode = function (code) {
         
     | 
| 
       609 
     | 
    
         
            -
                var c = String.fromCharCode(code.charCodeAt(0) + code.length);
         
     | 
| 
       610 
     | 
    
         
            -
                for (var i = 1; i < code.length; i++) {
         
     | 
| 
       611 
     | 
    
         
            -
                  c += String.fromCharCode(code.charCodeAt(i) + code.charCodeAt(i - 1));
         
     | 
| 
       612 
     | 
    
         
            -
                }
         
     | 
| 
       613 
     | 
    
         
            -
                var ret = _this3.TplusBase64Encode(c);
         
     | 
| 
       614 
     | 
    
         
            -
                return ret;
         
     | 
| 
       615 
     | 
    
         
            -
              };
         
     | 
| 
       616 
     | 
    
         
            -
             
     | 
| 
       617 
     | 
    
         
            -
              this.TplusBase64Encode = function (input) {
         
     | 
| 
       618 
     | 
    
         
            -
                var _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
         
     | 
| 
       619 
     | 
    
         
            -
                var output = "";
         
     | 
| 
       620 
     | 
    
         
            -
                var chr1 = void 0,
         
     | 
| 
       621 
     | 
    
         
            -
                    chr2 = void 0,
         
     | 
| 
       622 
     | 
    
         
            -
                    chr3 = void 0,
         
     | 
| 
       623 
     | 
    
         
            -
                    enc1 = void 0,
         
     | 
| 
       624 
     | 
    
         
            -
                    enc2 = void 0,
         
     | 
| 
       625 
     | 
    
         
            -
                    enc3 = void 0,
         
     | 
| 
       626 
     | 
    
         
            -
                    enc4 = void 0;
         
     | 
| 
       627 
     | 
    
         
            -
                var i = 0;
         
     | 
| 
       628 
     | 
    
         
            -
                input = _this3._utf8_encode(input);
         
     | 
| 
       629 
     | 
    
         
            -
                while (i < input.length) {
         
     | 
| 
       630 
     | 
    
         
            -
                  chr1 = input.charCodeAt(i++);
         
     | 
| 
       631 
     | 
    
         
            -
                  chr2 = input.charCodeAt(i++);
         
     | 
| 
       632 
     | 
    
         
            -
                  chr3 = input.charCodeAt(i++);
         
     | 
| 
       633 
     | 
    
         
            -
                  enc1 = chr1 >> 2;
         
     | 
| 
       634 
     | 
    
         
            -
                  enc2 = (chr1 & 3) << 4 | chr2 >> 4;
         
     | 
| 
       635 
     | 
    
         
            -
                  enc3 = (chr2 & 15) << 2 | chr3 >> 6;
         
     | 
| 
       636 
     | 
    
         
            -
                  enc4 = chr3 & 63;
         
     | 
| 
       637 
     | 
    
         
            -
                  if (isNaN(chr2)) {
         
     | 
| 
       638 
     | 
    
         
            -
                    enc3 = enc4 = 64;
         
     | 
| 
       639 
     | 
    
         
            -
                  } else if (isNaN(chr3)) {
         
     | 
| 
       640 
     | 
    
         
            -
                    enc4 = 64;
         
     | 
| 
       641 
     | 
    
         
            -
                  }
         
     | 
| 
       642 
     | 
    
         
            -
                  output = output + _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4);
         
     | 
| 
       643 
     | 
    
         
            -
                }
         
     | 
| 
       644 
     | 
    
         
            -
                return output;
         
     | 
| 
       645 
     | 
    
         
            -
              };
         
     | 
| 
       646 
     | 
    
         
            -
             
     | 
| 
       647 
     | 
    
         
            -
              this._utf8_encode = function (string) {
         
     | 
| 
       648 
     | 
    
         
            -
                string = string.replace(/\r\n/g, "\n");
         
     | 
| 
       649 
     | 
    
         
            -
                var utftext = "";
         
     | 
| 
       650 
     | 
    
         
            -
                for (var n = 0; n < string.length; n++) {
         
     | 
| 
       651 
     | 
    
         
            -
                  var c = string.charCodeAt(n);
         
     | 
| 
       652 
     | 
    
         
            -
                  if (c < 128) {
         
     | 
| 
       653 
     | 
    
         
            -
                    utftext += String.fromCharCode(c);
         
     | 
| 
       654 
     | 
    
         
            -
                  } else if (c > 127 && c < 2048) {
         
     | 
| 
       655 
     | 
    
         
            -
                    utftext += String.fromCharCode(c >> 6 | 192);
         
     | 
| 
       656 
     | 
    
         
            -
                    utftext += String.fromCharCode(c & 63 | 128);
         
     | 
| 
       657 
     | 
    
         
            -
                  } else {
         
     | 
| 
       658 
     | 
    
         
            -
                    utftext += String.fromCharCode(c >> 12 | 224);
         
     | 
| 
       659 
     | 
    
         
            -
                    utftext += String.fromCharCode(c >> 6 & 63 | 128);
         
     | 
| 
       660 
     | 
    
         
            -
                    utftext += String.fromCharCode(c & 63 | 128);
         
     | 
| 
       661 
     | 
    
         
            -
                  }
         
     | 
| 
       662 
     | 
    
         
            -
                }
         
     | 
| 
       663 
     | 
    
         
            -
                return utftext;
         
     | 
| 
       664 
     | 
    
         
            -
              };
         
     | 
| 
       665 
     | 
    
         
            -
             
     | 
| 
       666 
     | 
    
         
            -
              this.operationControl = function () {
         
     | 
| 
       667 
     | 
    
         
            -
                var menu = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
         
     | 
| 
       668 
     | 
    
         
            -
                var operations = _this3.state.operations;
         
     | 
| 
       669 
     | 
    
         
            -
             
     | 
| 
       670 
     | 
    
         
            -
                console.log(operations, 11111);
         
     | 
| 
       671 
     | 
    
         
            -
                menu.forEach(function (v) {
         
     | 
| 
       672 
     | 
    
         
            -
                  if (v.sub) {
         
     | 
| 
       673 
     | 
    
         
            -
                    return _this3.operationControl(v.sub);
         
     | 
| 
       674 
     | 
    
         
            -
                  }
         
     | 
| 
       675 
     | 
    
         
            -
                  var controllable = operations.find(function (vv) {
         
     | 
| 
       676 
     | 
    
         
            -
                    return vv.Name === v.Name;
         
     | 
| 
       677 
     | 
    
         
            -
                  });
         
     | 
| 
       678 
     | 
    
         
            -
             
     | 
| 
       679 
     | 
    
         
            -
                  var _ref6 = controllable || {},
         
     | 
| 
       680 
     | 
    
         
            -
                      Visibility = _ref6.Visibility,
         
     | 
| 
       681 
     | 
    
         
            -
                      HoldFunctionAuth = _ref6.HoldFunctionAuth,
         
     | 
| 
       682 
     | 
    
         
            -
                      Title = _ref6.Title;
         
     | 
| 
       683 
     | 
    
         
            -
             
     | 
| 
       684 
     | 
    
         
            -
                  var errorTip = void 0;
         
     | 
| 
       685 
     | 
    
         
            -
                  if (!Visibility) {
         
     | 
| 
       686 
     | 
    
         
            -
                    errorTip = '\u60A8\u7684 ' + Title + ' \u6A21\u5757\u6CA1\u6709\u542F\u7528';
         
     | 
| 
       687 
     | 
    
         
            -
                  } else if (!HoldFunctionAuth) {
         
     | 
| 
       688 
     | 
    
         
            -
                    errorTip = '\u60A8\u6CA1\u6709\u64CD\u4F5C ' + Title + ' \u7684\u6743\u9650';
         
     | 
| 
       689 
     | 
    
         
            -
                  }
         
     | 
| 
       690 
     | 
    
         
            -
                  v.errorTip = errorTip;
         
     | 
| 
       691 
     | 
    
         
            -
                });
         
     | 
| 
       692 
     | 
    
         
            -
                return menu;
         
     | 
| 
       693 
     | 
    
         
            -
              };
         
     | 
| 
       694 
     | 
    
         
            -
             
     | 
| 
       695 
     | 
    
         
            -
              this.createLeftNode = function () {
         
     | 
| 
       696 
     | 
    
         
            -
                var menu = _this3.leftMenu;
         
     | 
| 
       697 
     | 
    
         
            -
                var menuNode = menu.map(function (v) {
         
     | 
| 
       698 
     | 
    
         
            -
                  return v.container ? _react2.default.createElement(
         
     | 
| 
       699 
     | 
    
         
            -
                    'div',
         
     | 
| 
       700 
     | 
    
         
            -
                    { style: v.container.style, className: v.container.className, key: v.container.className },
         
     | 
| 
       701 
     | 
    
         
            -
                    v.sub.map(function (vv) {
         
     | 
| 
       702 
     | 
    
         
            -
                      return _react2.default.createElement(
         
     | 
| 
       703 
     | 
    
         
            -
                        'div',
         
     | 
| 
       704 
     | 
    
         
            -
                        {
         
     | 
| 
       705 
     | 
    
         
            -
                          className: 'member-item ' + vv.className + ' ' + (vv.disabled ? 'menu-item-disabled' : ''),
         
     | 
| 
       706 
     | 
    
         
            -
                          key: vv.className,
         
     | 
| 
       707 
     | 
    
         
            -
                          onClick: _this3.handelClick.bind(_this3, vv)
         
     | 
| 
       708 
     | 
    
         
            -
                        },
         
     | 
| 
       709 
     | 
    
         
            -
                        !!vv.title && _react2.default.createElement(
         
     | 
| 
       710 
     | 
    
         
            -
                          'h1',
         
     | 
| 
       711 
     | 
    
         
            -
                          null,
         
     | 
| 
       712 
     | 
    
         
            -
                          vv.title
         
     | 
| 
       713 
     | 
    
         
            -
                        ),
         
     | 
| 
       714 
     | 
    
         
            -
                        !!vv.label && _react2.default.createElement(
         
     | 
| 
       715 
     | 
    
         
            -
                          'p',
         
     | 
| 
       716 
     | 
    
         
            -
                          null,
         
     | 
| 
       717 
     | 
    
         
            -
                          vv.label
         
     | 
| 
       718 
     | 
    
         
            -
                        ),
         
     | 
| 
       719 
     | 
    
         
            -
                        !!vv.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: vv.icon })
         
     | 
| 
       720 
     | 
    
         
            -
                      );
         
     | 
| 
       721 
     | 
    
         
            -
                    })
         
     | 
| 
       722 
     | 
    
         
            -
                  ) : _react2.default.createElement(
         
     | 
| 
       723 
     | 
    
         
            -
                    'div',
         
     | 
| 
       724 
     | 
    
         
            -
                    {
         
     | 
| 
       725 
     | 
    
         
            -
                      className: 'member-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
         
     | 
| 
       726 
     | 
    
         
            -
                      key: v.className,
         
     | 
| 
       727 
     | 
    
         
            -
                      onClick: _this3.handelClick.bind(_this3, v)
         
     | 
| 
       728 
     | 
    
         
            -
                    },
         
     | 
| 
       729 
     | 
    
         
            -
                    v.title && _react2.default.createElement(
         
     | 
| 
       730 
     | 
    
         
            -
                      'h1',
         
     | 
| 
       731 
     | 
    
         
            -
                      null,
         
     | 
| 
       732 
     | 
    
         
            -
                      v.title
         
     | 
| 
       733 
     | 
    
         
            -
                    ),
         
     | 
| 
       734 
     | 
    
         
            -
                    v.label && _react2.default.createElement(
         
     | 
| 
       735 
     | 
    
         
            -
                      'p',
         
     | 
| 
       736 
     | 
    
         
            -
                      null,
         
     | 
| 
       737 
     | 
    
         
            -
                      v.label
         
     | 
| 
       738 
     | 
    
         
            -
                    ),
         
     | 
| 
       739 
     | 
    
         
            -
                    v.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: v.icon })
         
     | 
| 
       740 
     | 
    
         
            -
                  );
         
     | 
| 
       741 
     | 
    
         
            -
                });
         
     | 
| 
       742 
     | 
    
         
            -
                return menuNode;
         
     | 
| 
       743 
     | 
    
         
            -
              };
         
     | 
| 
       744 
     | 
    
         
            -
             
     | 
| 
       745 
     | 
    
         
            -
              this.createCenterNode = function () {
         
     | 
| 
       746 
     | 
    
         
            -
                var leftMenu = _this3.centerLeftMenu;
         
     | 
| 
       747 
     | 
    
         
            -
                var rightMenu = _this3.centerRightMenu;
         
     | 
| 
       748 
     | 
    
         
            -
                var menuLeftNode = leftMenu.map(function (v) {
         
     | 
| 
       749 
     | 
    
         
            -
                  return _react2.default.createElement(
         
     | 
| 
       750 
     | 
    
         
            -
                    'div',
         
     | 
| 
       751 
     | 
    
         
            -
                    {
         
     | 
| 
       752 
     | 
    
         
            -
                      className: 'worktop-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
         
     | 
| 
       753 
     | 
    
         
            -
                      style: v.style,
         
     | 
| 
       754 
     | 
    
         
            -
                      key: v.className,
         
     | 
| 
       755 
     | 
    
         
            -
                      onClick: _this3.handelClick.bind(_this3, v)
         
     | 
| 
       756 
     | 
    
         
            -
                    },
         
     | 
| 
       757 
     | 
    
         
            -
                    v.title && _react2.default.createElement(
         
     | 
| 
       758 
     | 
    
         
            -
                      'h1',
         
     | 
| 
       759 
     | 
    
         
            -
                      null,
         
     | 
| 
       760 
     | 
    
         
            -
                      v.title
         
     | 
| 
       761 
     | 
    
         
            -
                    ),
         
     | 
| 
       762 
     | 
    
         
            -
                    v.label && _react2.default.createElement(
         
     | 
| 
       763 
     | 
    
         
            -
                      'p',
         
     | 
| 
       764 
     | 
    
         
            -
                      null,
         
     | 
| 
       765 
     | 
    
         
            -
                      v.label
         
     | 
| 
       766 
     | 
    
         
            -
                    ),
         
     | 
| 
       767 
     | 
    
         
            -
                    v.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: v.icon }),
         
     | 
| 
       768 
     | 
    
         
            -
                    v.disabled && _react2.default.createElement('div', { className: 'item-disabled-placeholder' })
         
     | 
| 
       769 
     | 
    
         
            -
                  );
         
     | 
| 
       770 
     | 
    
         
            -
                });
         
     | 
| 
       771 
     | 
    
         
            -
                var menuRightNode = rightMenu.map(function (v) {
         
     | 
| 
       772 
     | 
    
         
            -
                  return v.container ? _react2.default.createElement(
         
     | 
| 
       773 
     | 
    
         
            -
                    'div',
         
     | 
| 
       774 
     | 
    
         
            -
                    { style: v.container.style, className: v.container.className, key: v.container.className },
         
     | 
| 
       775 
     | 
    
         
            -
                    v.sub.map(function (vv) {
         
     | 
| 
       776 
     | 
    
         
            -
                      return _react2.default.createElement(
         
     | 
| 
       777 
     | 
    
         
            -
                        'div',
         
     | 
| 
       778 
     | 
    
         
            -
                        {
         
     | 
| 
       779 
     | 
    
         
            -
                          className: 'worktop-item ' + vv.className + ' ' + (vv.disabled ? 'menu-item-disabled' : ''),
         
     | 
| 
       780 
     | 
    
         
            -
                          key: vv.className,
         
     | 
| 
       781 
     | 
    
         
            -
                          onClick: _this3.handelClick.bind(_this3, vv)
         
     | 
| 
       782 
     | 
    
         
            -
                        },
         
     | 
| 
       783 
     | 
    
         
            -
                        vv.title && _react2.default.createElement(
         
     | 
| 
       784 
     | 
    
         
            -
                          'h1',
         
     | 
| 
       785 
     | 
    
         
            -
                          null,
         
     | 
| 
       786 
     | 
    
         
            -
                          vv.title
         
     | 
| 
       787 
     | 
    
         
            -
                        ),
         
     | 
| 
       788 
     | 
    
         
            -
                        vv.label && _react2.default.createElement(
         
     | 
| 
       789 
     | 
    
         
            -
                          'p',
         
     | 
| 
       790 
     | 
    
         
            -
                          null,
         
     | 
| 
       791 
     | 
    
         
            -
                          vv.label
         
     | 
| 
       792 
     | 
    
         
            -
                        ),
         
     | 
| 
       793 
     | 
    
         
            -
                        vv.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: vv.icon })
         
     | 
| 
       794 
     | 
    
         
            -
                      );
         
     | 
| 
       795 
     | 
    
         
            -
                    })
         
     | 
| 
       796 
     | 
    
         
            -
                  ) : _react2.default.createElement(
         
     | 
| 
       797 
     | 
    
         
            -
                    'div',
         
     | 
| 
       798 
     | 
    
         
            -
                    {
         
     | 
| 
       799 
     | 
    
         
            -
                      className: 'worktop-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
         
     | 
| 
       800 
     | 
    
         
            -
                      key: v.className,
         
     | 
| 
       801 
     | 
    
         
            -
                      onClick: _this3.handelClick.bind(_this3, v)
         
     | 
| 
       802 
     | 
    
         
            -
                    },
         
     | 
| 
       803 
     | 
    
         
            -
                    v.title && _react2.default.createElement(
         
     | 
| 
       804 
     | 
    
         
            -
                      'h1',
         
     | 
| 
       805 
     | 
    
         
            -
                      null,
         
     | 
| 
       806 
     | 
    
         
            -
                      v.title
         
     | 
| 
       807 
     | 
    
         
            -
                    ),
         
     | 
| 
       808 
     | 
    
         
            -
                    v.label && _react2.default.createElement(
         
     | 
| 
       809 
     | 
    
         
            -
                      'p',
         
     | 
| 
       810 
     | 
    
         
            -
                      null,
         
     | 
| 
       811 
     | 
    
         
            -
                      v.label
         
     | 
| 
       812 
     | 
    
         
            -
                    ),
         
     | 
| 
       813 
     | 
    
         
            -
                    v.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: v.icon })
         
     | 
| 
       814 
     | 
    
         
            -
                  );
         
     | 
| 
       815 
     | 
    
         
            -
                });
         
     | 
| 
       816 
     | 
    
         
            -
                return _react2.default.createElement(
         
     | 
| 
       817 
     | 
    
         
            -
                  'div',
         
     | 
| 
       818 
     | 
    
         
            -
                  null,
         
     | 
| 
       819 
     | 
    
         
            -
                  _react2.default.createElement(
         
     | 
| 
       820 
     | 
    
         
            -
                    'div',
         
     | 
| 
       821 
     | 
    
         
            -
                    { className: 'worktop-container-left' },
         
     | 
| 
       822 
     | 
    
         
            -
                    menuLeftNode
         
     | 
| 
       823 
     | 
    
         
            -
                  ),
         
     | 
| 
       824 
     | 
    
         
            -
                  _react2.default.createElement(
         
     | 
| 
       825 
     | 
    
         
            -
                    'div',
         
     | 
| 
       826 
     | 
    
         
            -
                    { className: 'worktop-container-right' },
         
     | 
| 
       827 
     | 
    
         
            -
                    menuRightNode
         
     | 
| 
       828 
     | 
    
         
            -
                  )
         
     | 
| 
       829 
     | 
    
         
            -
                );
         
     | 
| 
       830 
     | 
    
         
            -
              };
         
     | 
| 
       831 
     | 
    
         
            -
             
     | 
| 
       832 
     | 
    
         
            -
              this.createRightNode = function () {
         
     | 
| 
       833 
     | 
    
         
            -
                var menu = _this3.rightMenu;
         
     | 
| 
       834 
     | 
    
         
            -
                var node = menu.map(function (v, i) {
         
     | 
| 
       835 
     | 
    
         
            -
                  return _react2.default.createElement(
         
     | 
| 
       836 
     | 
    
         
            -
                    'div',
         
     | 
| 
       837 
     | 
    
         
            -
                    {
         
     | 
| 
       838 
     | 
    
         
            -
                      className: 'stock-item ' + v.className + ' ' + (v.disabled ? 'menu-item-disabled' : ''),
         
     | 
| 
       839 
     | 
    
         
            -
                      style: v.style,
         
     | 
| 
       840 
     | 
    
         
            -
                      key: v.className,
         
     | 
| 
       841 
     | 
    
         
            -
                      onClick: _this3.handelClick.bind(_this3, v)
         
     | 
| 
       842 
     | 
    
         
            -
                    },
         
     | 
| 
       843 
     | 
    
         
            -
                    !!v.title && _react2.default.createElement(
         
     | 
| 
       844 
     | 
    
         
            -
                      'h1',
         
     | 
| 
       845 
     | 
    
         
            -
                      null,
         
     | 
| 
       846 
     | 
    
         
            -
                      v.title
         
     | 
| 
       847 
     | 
    
         
            -
                    ),
         
     | 
| 
       848 
     | 
    
         
            -
                    !!v.icon && _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: v.icon })
         
     | 
| 
       849 
     | 
    
         
            -
                  );
         
     | 
| 
       850 
     | 
    
         
            -
                });
         
     | 
| 
       851 
     | 
    
         
            -
                return node;
         
     | 
| 
       852 
     | 
    
         
            -
              };
         
     | 
| 
       853 
     | 
    
         
            -
            }, _temp)) || _class;
         
     | 
| 
       854 
     | 
    
         
            -
             
     | 
| 
       855 
     | 
    
         
            -
            exports.default = _default;
         
     | 
| 
       856 
     | 
    
         
            -
            //# sourceMappingURL=index.js.map
         
     |