| | |
| | | key: 'database', |
| | | label: '数据库', |
| | | initVal: card.database || 'local', |
| | | tooltip: '测试系统数据库均指向本地,正式系统可使用单点数据库。', |
| | | options: [{ |
| | | value: 'local', |
| | | text: '本地' |
| | |
| | | key: 'database', |
| | | label: '数据库', |
| | | initVal: card.database || 'local', |
| | | tooltip: '测试系统数据库均指向本地,正式系统可使用单点数据库。', |
| | | options: [{ |
| | | value: 'local', |
| | | text: '本地' |
| | |
| | | key: 'database', |
| | | label: '数据库', |
| | | initVal: card.database || 'local', |
| | | tooltip: '测试系统数据库均指向本地,正式系统可使用单点数据库。', |
| | | options: [{ |
| | | value: 'local', |
| | | text: '本地' |
| | |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {setting.interType === 'system' ? <Col span={8}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="测试系统数据库均指向本地,正式系统可使用单点数据库。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | 数据库 |
| | | </Tooltip> |
| | | }> |
| | | <Form.Item label="数据库"> |
| | | {getFieldDecorator('database', { |
| | | initialValue: setting.database || 'local' |
| | | })( |
| | |
| | | let _sso = _sql |
| | | |
| | | deForms.forEach(item => { |
| | | if (item.database === 'sso' && (window.GLOB.mkHS || window.GLOB.systemType === 'production')) { |
| | | if (item.database === 'sso') { |
| | | let sql = _sso + item.base_sql |
| | | _sso = '' |
| | | |
| | |
| | | param.open_key = Utils.encryptOpenKey(param.secretkey, param.timestamp) |
| | | } |
| | | |
| | | if (btn.database === 'sso') { |
| | | if ((window.GLOB.mkHS || window.GLOB.systemType === 'production') && window.GLOB.mainSystemApi) { |
| | | param.rduri = window.GLOB.mainSystemApi |
| | | } |
| | | if (btn.database === 'sso' && window.GLOB.mainSystemApi) { |
| | | param.rduri = window.GLOB.mainSystemApi |
| | | } |
| | | |
| | | param.menuname = btn.logLabel |
| | |
| | | if (btn.pagination !== 'true') { |
| | | if (btn.intertype === 'system') { // 使用系统函数 |
| | | let param = this.getExcelDefaultParam(viewParam.orderBy, viewParam.search) |
| | | if (btn.database === 'sso') { |
| | | if ((window.GLOB.mkHS || window.GLOB.systemType === 'production') && window.GLOB.mainSystemApi) { |
| | | param.rduri = window.GLOB.mainSystemApi |
| | | } |
| | | if (btn.database === 'sso' && window.GLOB.mainSystemApi) { |
| | | param.rduri = window.GLOB.mainSystemApi |
| | | } |
| | | Api.genericInterface(param).then(result => { |
| | | if (result.status) { |
| | |
| | | let param = null |
| | | if (btn.intertype === 'system') { // 使用系统函数 |
| | | param = this.getExcelDefaultParam(viewParam.orderBy, viewParam.search, true, pageIndex, pageSize) |
| | | if (btn.database === 'sso') { |
| | | if ((window.GLOB.mkHS || window.GLOB.systemType === 'production') && window.GLOB.mainSystemApi) { |
| | | param.rduri = window.GLOB.mainSystemApi |
| | | } |
| | | if (btn.database === 'sso' && window.GLOB.mainSystemApi) { |
| | | param.rduri = window.GLOB.mainSystemApi |
| | | } |
| | | } else if (btn.intertype === 'inner') { // 使用内部函数 |
| | | param = this.getExcelCustomParam(viewParam.orderBy, viewParam.search, true, pageIndex, pageSize) |
| | |
| | | return item |
| | | }) |
| | | } |
| | | if (btn.database === 'sso') { |
| | | if ((window.GLOB.mkHS || window.GLOB.systemType === 'production') && window.GLOB.mainSystemApi) { |
| | | params = params.map(item => { |
| | | item.rduri = window.GLOB.mainSystemApi |
| | | return item |
| | | }) |
| | | } |
| | | if (btn.database === 'sso' && window.GLOB.mainSystemApi) { |
| | | params = params.map(item => { |
| | | item.rduri = window.GLOB.mainSystemApi |
| | | return item |
| | | }) |
| | | } |
| | | } else { |
| | | params = this.getInnerParam(data, formdata) |
| | |
| | | let _sso = _sql |
| | | |
| | | deForms.forEach(item => { |
| | | if (item.database === 'sso' && (window.GLOB.mkHS || window.GLOB.systemType === 'production')) { |
| | | if (item.database === 'sso') { |
| | | let sql = _sso + item.base_sql |
| | | _sso = '' |
| | | |
| | |
| | | param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') |
| | | param.secretkey = Utils.encrypt(window.GLOB.execType === 'x' ? '' : param.LText, param.timestamp) |
| | | |
| | | if (form.database === 'sso' && window.GLOB.mainSystemApi && (window.GLOB.mkHS || window.GLOB.systemType === 'production')) { |
| | | if (form.database === 'sso' && window.GLOB.mainSystemApi) { |
| | | param.rduri = window.GLOB.mainSystemApi |
| | | } |
| | | if (window.GLOB.mkHS) { // 云端数据验证 |
| | |
| | | }) |
| | | } else { // 合并请求,区分本地及系统 |
| | | _sql = _sql.replace(/%/ig, ' mpercent ') |
| | | if (item.database === 'sso' && (window.GLOB.mkHS || window.GLOB.systemType === 'production')) { |
| | | if (item.database === 'sso') { |
| | | if (mainItems.length === 0) { |
| | | _sql = _declare + _sql |
| | | } |
| | |
| | | param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') |
| | | param.secretkey = Utils.encrypt(window.GLOB.execType === 'x' ? '' : param.LText, param.timestamp) |
| | | |
| | | if (item.database === 'sso' && window.GLOB.mainSystemApi && (window.GLOB.mkHS || window.GLOB.systemType === 'production')) { |
| | | if (item.database === 'sso' && window.GLOB.mainSystemApi) { |
| | | param.rduri = window.GLOB.mainSystemApi |
| | | } |
| | | |
| | |
| | | key: 'database', |
| | | label: '数据库', |
| | | initVal: card.database || 'local', |
| | | tooltip: '测试系统数据库均指向本地,正式系统可使用单点数据库。', |
| | | options: [{ |
| | | value: 'local', |
| | | text: '本地' |
| | |
| | | key: 'database', |
| | | label: '数据库', |
| | | initVal: card.database || 'local', |
| | | tooltip: '测试系统数据库均指向本地,正式系统可使用单点数据库。', |
| | | options: [{ |
| | | value: 'local', |
| | | text: '本地' |
| | |
| | | param.s_version_up = 'true' |
| | | } |
| | | |
| | | if (setting.database === 'sso') { |
| | | if ((window.GLOB.mkHS || window.GLOB.systemType === 'production') && window.GLOB.mainSystemApi) { |
| | | param.rduri = window.GLOB.mainSystemApi |
| | | } |
| | | if (setting.database === 'sso' && window.GLOB.mainSystemApi) { |
| | | param.rduri = window.GLOB.mainSystemApi |
| | | } |
| | | |
| | | return param |