| | |
| | | |
| | | trigger = () => { |
| | | const { config, menu, btnTab } = this.props |
| | | const _this = this |
| | | const that = this |
| | | |
| | | if (!config || !menu || !menu.LongParam) { |
| | | notification.warning({ |
| | |
| | | content: '', |
| | | onOk() { |
| | | return new Promise(resolve => { |
| | | _this.execUpdate(resolve, _config) |
| | | that.execUpdate(resolve, _config) |
| | | }) |
| | | }, |
| | | onCancel() {} |
| | |
| | | let defers = _tbs.map((item, i) => { |
| | | return new Promise((resolve) => { |
| | | setTimeout(() => { |
| | | Api.getSystemConfig({ |
| | | Api.getCloudConfig({ |
| | | func: 'sPC_Get_LongParam', |
| | | MenuID: item.linkTab |
| | | }).then(res => { |
| | |
| | | let defers = popActions.map((item, i) => { |
| | | return new Promise((resolve) => { |
| | | setTimeout(() => { |
| | | Api.getSystemConfig({ |
| | | Api.getCloudConfig({ |
| | | func: 'sPC_Get_LongParam', |
| | | MenuID: item.linkTab |
| | | }).then(res => { |
| | |
| | | let defers = formActions.map((item, i) => { |
| | | return new Promise((resolve) => { |
| | | setTimeout(() => { |
| | | Api.getSystemConfig({ |
| | | Api.getCloudConfig({ |
| | | func: 'sPC_Get_LongParam', |
| | | MenuID: item.origin |
| | | }).then(res => { |
| | |
| | | debug_md5: key, |
| | | debug_url: url, |
| | | debug_list: window.btoa(tbs), |
| | | LongParam: window.btoa(window.encodeURIComponent(JSON.stringify(config))) |
| | | LongParam: window.btoa(window.encodeURIComponent(JSON.stringify(config))), |
| | | LText: '' |
| | | } |
| | | |
| | | param.LText = Utils.formatOptions(param.LText) |
| | | param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') |
| | | param.secretkey = Utils.encrypt(param.LText, param.timestamp) |
| | | param.secretkey = Utils.encrypt('', param.timestamp) |
| | | |
| | | Api.getSystemConfig(param).then(res => { |
| | | Api.getCloudConfig(param).then(res => { |
| | | _resolve() |
| | | if (res.status) { |
| | | // if (this.delButtons.length > 0) { |
| | | // Api.getSystemConfig({ |
| | | // Api.getCloudConfig({ |
| | | // func: 'sPC_MainMenu_Del', |
| | | // up_type: 'Y', |
| | | // MenuID: this.delButtons.join(',') |
| | |
| | | let _card = { |
| | | uuid: newCon.uuid, |
| | | type: 'table', |
| | | name: newCon.name, |
| | | name: newCon.name || '', |
| | | format: 'array', |
| | | pageable: true, |
| | | switchable: true, |
| | |
| | | action: [], |
| | | subtype: 'normaltable', |
| | | setting: { useMSearch: 'false', sync: 'false', onload: 'true' }, |
| | | wrap: {name: newCon.name}, |
| | | wrap: {name: newCon.name || ''}, |
| | | style: {}, |
| | | headerStyle: {}, |
| | | columns: [], |
| | |
| | | if (newCon.equalTab && oldtabs && oldtabs[newCon.equalTab]) { |
| | | _btn.syncComponent.push(oldtabs[newCon.equalTab]) |
| | | } |
| | | } else if (_btn.execSuccess === 'maingrid') { |
| | | _btn.execSuccess = 'mainline' |
| | | } |
| | | |
| | | if (_btn.execError === 'equaltab') { |
| | | _btn.execError = 'grid' |
| | | } else if (_btn.execError === 'maingrid') { |
| | | _btn.execError = 'mainline' |
| | | } |
| | | |
| | | if (_btn.popClose === 'equaltab') { |
| | |
| | | if (newCon.equalTab && oldtabs && oldtabs[newCon.equalTab]) { |
| | | _btn.syncComponent.push(oldtabs[newCon.equalTab]) |
| | | } |
| | | } else if (_btn.popClose === 'maingrid') { |
| | | _btn.popClose = 'mainline' |
| | | } |
| | | |
| | | if (_btn.OpenType === 'pop' || (_btn.OpenType === 'funcbutton' && _btn.funcType === 'print' && _btn.execMode === 'pop')) { |