| | |
| | | |
| | | trigger = () => { |
| | | const { config } = this.props |
| | | const _this = this |
| | | const that = this |
| | | |
| | | if (!config.enabled) { |
| | | let tb = config.components[0] |
| | |
| | | content: '', |
| | | onOk() { |
| | | return new Promise(resolve => { |
| | | _this.execUpdate(resolve, true) |
| | | that.execUpdate(resolve, true) |
| | | }) |
| | | }, |
| | | onCancel() {} |
| | |
| | | content: '', |
| | | onOk() { |
| | | return new Promise(resolve => { |
| | | _this.execUpdate(resolve) |
| | | that.execUpdate(resolve) |
| | | }) |
| | | }, |
| | | onCancel() {} |
| | |
| | | _config.enabled = false |
| | | |
| | | delete _config.autoMatic |
| | | |
| | | let useMSearch = false |
| | | |
| | | if (clear) { |
| | | _config.components = [] |
| | |
| | | tab.components[0].width = 24 |
| | | tab.components[0].wrap.width = 24 |
| | | tab.components[0].wrap.name = tab.components[0].name |
| | | if (tab.components[0].setting.useMSearch === 'true') { |
| | | useMSearch = true |
| | | } |
| | | |
| | | tab.components[0].action.forEach(btn => { |
| | | if (btn.OpenType === 'popview' && btn.config) { |
| | |
| | | }) |
| | | } |
| | | |
| | | if (useMSearch) { |
| | | if (_config.components[0].search && _config.components[0].search.length > 0) { |
| | | let cell = { |
| | | uuid: Utils.getuuid(), |
| | | type: 'search', |
| | | width: 24, |
| | | subtype: 'mainsearch', |
| | | name: '搜索', |
| | | search: _config.components[0].search || [], |
| | | search: _config.components[0].search, |
| | | style: {borderBottomColor: '#f0f0f0', borderBottomWidth: '1px'}, |
| | | wrap: {float: 'left', blacklist: [], name: '搜索', width: 24} |
| | | } |
| | |
| | | type: 'admin', |
| | | OpenType: _config.OpenType, |
| | | PageParam: {Template: 'CustomPage', OpenType: 'newtab', hidden: _config.hidden}, |
| | | MenuType: 'custom' |
| | | MenuType: 'custom', |
| | | lang: sessionStorage.getItem('lang') |
| | | } |
| | | |
| | | let url = window.btoa(window.encodeURIComponent(JSON.stringify(urlparam))) |