| | |
| | | delete _btn.position |
| | | delete _btn.linkTab |
| | | |
| | | if (_btn.intertype === 'inner' && !_btn.innerFunc) { |
| | | _btn.intertype = 'system' |
| | | } |
| | | if (_btn.funcType === 'print' && _btn.execMode) { |
| | | _btn.OpenType = 'funcbutton' |
| | | } else if (_btn.OpenType === 'blank') { |
| | | _btn.OpenType = 'tab' |
| | | } |
| | | |
| | | this.delButtons.push(btn.uuid) |
| | | |
| | | _btn.show = 'button' |
| | |
| | | _btn.popClose = 'mainline' |
| | | } |
| | | |
| | | if (btn.OpenType === 'pop' || (btn.OpenType === 'funcbutton' && btn.funcType === 'print' && btn.execMode === 'pop')) { |
| | | if (_btn.OpenType === 'pop' || (_btn.OpenType === 'funcbutton' && _btn.funcType === 'print' && _btn.execMode === 'pop')) { |
| | | |
| | | formActions.push({origin: btn.uuid, uuid: _btn.uuid, name: newCon.name, label: btn.label}) |
| | | } else if (btn.OpenType === 'popview') { |
| | | } else if (_btn.OpenType === 'popview') { |
| | | if (!popActions) return |
| | | |
| | | popActions.push({origin: btn.uuid, linkTab: btn.linkTab || '', uuid: _btn.uuid, name: newCon.name, label: btn.label}) |
| | | } else if (btn.OpenType === 'tab') { |
| | | } else if (_btn.OpenType === 'tab') { |
| | | if (btn.tabTemplate === 'FormTab' || !btn.linkmenu || btn.linkmenu.length !== 3) { |
| | | |
| | | errors.push(newCon.name + '中按钮《' + btn.label + '》不在支持') |
| | |
| | | _card.scripts = config.setting.scripts || [] |
| | | |
| | | sets.forEach(n => { |
| | | if (n === 'interType' && !['system', 'inner', 'outer'].includes(config.setting.interType)) { |
| | | _card.setting.interType = 'system' |
| | | if (n === 'interType') { |
| | | if (!['system', 'inner', 'outer'].includes(config.setting.interType)) { |
| | | _card.setting.interType = 'system' |
| | | } else if (config.setting.interType === 'inner' && !config.setting.innerFunc) { |
| | | _card.setting.interType = 'system' |
| | | } else { |
| | | _card.setting.interType = config.setting.interType |
| | | } |
| | | } else if (typeof(n) === 'string') { |
| | | _card.setting[n] = config.setting[n] || '' |
| | | } else { |
| | |
| | | } |
| | | }) |
| | | |
| | | if (config.setting.doubleClick && !uuids[config.setting.doubleClick]) { |
| | | _card.wrap.doubleClick = config.setting.doubleClick || '' |
| | | if (_card.wrap.doubleClick && !uuids[_card.wrap.doubleClick]) { |
| | | _card.wrap.doubleClick = '' |
| | | } |
| | | |