From 57da72c823fab94a3ec6fadab2bc75173c8a03b1 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 01 十二月 2020 13:45:25 +0800 Subject: [PATCH] 2020-12-01 --- src/templates/subtableconfig/index.jsx | 152 +++++++++++++++++++++++++------------------------- 1 files changed, 76 insertions(+), 76 deletions(-) diff --git a/src/templates/subtableconfig/index.jsx b/src/templates/subtableconfig/index.jsx index eb3f3da..5a2cebe 100644 --- a/src/templates/subtableconfig/index.jsx +++ b/src/templates/subtableconfig/index.jsx @@ -275,49 +275,49 @@ _config.enabled = false } - _config.funcs = [] + // _config.funcs = [] - _config.funcs.push({ - type: 'view', - subtype: 'view', - uuid: _config.uuid, - intertype: _config.setting.interType || 'system', - interface: _config.setting.interface || '', - tableName: _config.setting.tableName || '', - innerFunc: _config.setting.innerFunc || '', - outerFunc: _config.setting.outerFunc || '' - }) + // _config.funcs.push({ + // type: 'view', + // subtype: 'view', + // uuid: _config.uuid, + // intertype: _config.setting.interType || 'system', + // interface: _config.setting.interface || '', + // tableName: _config.setting.tableName || '', + // innerFunc: _config.setting.innerFunc || '', + // outerFunc: _config.setting.outerFunc || '' + // }) - _config.action.forEach(item => { - let tablename = item.OpenType === 'excelIn' ? (item.sheet || '') : (item.sql || '') + // _config.action.forEach(item => { + // let tablename = item.OpenType === 'excelIn' ? (item.sheet || '') : (item.sql || '') - if (item.OpenType === 'excelOut' && item.intertype === 'system') { - tablename = _config.setting.tableName || '' - } + // if (item.OpenType === 'excelOut' && item.intertype === 'system') { + // tablename = _config.setting.tableName || '' + // } - if (item.OpenType === 'popview') { - _config.funcs.push({ - type: 'tab', - subtype: 'btn', - uuid: item.uuid, - label: item.label, - linkTab: item.linkTab - }) - } else { - _config.funcs.push({ - type: 'button', - subtype: 'btn', - uuid: item.uuid, - label: item.label, - tableName: tablename, - intertype: item.intertype, - interface: item.interface || '', - innerFunc: item.innerFunc || '', - outerFunc: item.outerFunc || '', - callbackFunc: item.callbackFunc || '' - }) - } - }) + // if (item.OpenType === 'popview') { + // _config.funcs.push({ + // type: 'tab', + // subtype: 'btn', + // uuid: item.uuid, + // label: item.label, + // linkTab: item.linkTab + // }) + // } else { + // _config.funcs.push({ + // type: 'button', + // subtype: 'btn', + // uuid: item.uuid, + // label: item.label, + // tableName: tablename, + // intertype: item.intertype, + // interface: item.interface || '', + // innerFunc: item.innerFunc || '', + // outerFunc: item.outerFunc || '', + // callbackFunc: item.callbackFunc || '' + // }) + // } + // }) if (this.state.closeVisible) { // 鏄剧ず鍏抽棴瀵硅瘽妗嗘椂锛屾ā鎬佹涓繚瀛樻寜閽紝鏄剧ず淇濆瓨涓姸鎬� this.setState({ @@ -330,48 +330,48 @@ } new Promise(resolve => { - let deffers = [] - _config.funcs.forEach(item => { - if (item.type === 'tab') { - let deffer = new Promise(resolve => { - Api.getSystemConfig({ - func: 'sPC_Get_LongParam', - MenuID: item.linkTab - }).then(result => { - if (result.status && result.LongParam) { - let _LongParam = '' + // let deffers = [] + // _config.funcs.forEach(item => { + // if (item.type === 'tab') { + // let deffer = new Promise(resolve => { + // Api.getSystemConfig({ + // func: 'sPC_Get_LongParam', + // MenuID: item.linkTab + // }).then(result => { + // if (result.status && result.LongParam) { + // let _LongParam = '' - if (result.LongParam) { - try { - _LongParam = JSON.parse(window.decodeURIComponent(window.atob(result.LongParam))) - } catch (e) { - console.warn('Parse Failure') - _LongParam = '' - } - } + // if (result.LongParam) { + // try { + // _LongParam = JSON.parse(window.decodeURIComponent(window.atob(result.LongParam))) + // } catch (e) { + // console.warn('Parse Failure') + // _LongParam = '' + // } + // } - if (_LongParam) { - item.menuNo = _LongParam.tabNo - item.subfuncs = _LongParam.funcs || [] - } - } - resolve() - }) - }) + // if (_LongParam) { + // item.menuNo = _LongParam.tabNo + // item.subfuncs = _LongParam.funcs || [] + // } + // } + // resolve() + // }) + // }) - deffers.push(deffer) - } - }) + // deffers.push(deffer) + // } + // }) - if (deffers.length === 0) { - resolve() - } else { - Promise.all(deffers).then(() => { - resolve() - }) - } + // if (deffers.length === 0) { + // resolve() + // } else { + // Promise.all(deffers).then(() => { + // resolve() + // }) + // } + resolve() }).then(() => { - // 淇濆瓨鏃跺垹闄ら厤缃被鍨嬶紝system 銆乽ser delete _config.type delete _config.isAdd -- Gitblit v1.8.0