| | |
| | | search: [], |
| | | subcards: [{ |
| | | uuid: Utils.getuuid(), |
| | | setting: { width: 24 }, |
| | | setting: { width: 24, display: 'default', position: 'bottom' }, |
| | | style: { |
| | | borderWidth: '1px', borderColor: '#e8e8e8', |
| | | paddingTop: '15px', paddingBottom: '15px', paddingLeft: '15px', paddingRight: '15px', |
| | | marginLeft: '8px', marginRight: '8px', marginTop: '8px', marginBottom: '8px' |
| | | marginLeft: '8px', marginRight: '8px', marginTop: '8px' |
| | | }, |
| | | elements: [{ |
| | | uuid: Utils.getuuid(), |
| | |
| | | width: 12, |
| | | value: '循环区域' |
| | | }], |
| | | backSetting: {}, |
| | | backSetting: {width: 24}, |
| | | backStyle: { |
| | | borderLeftWidth: '1px', borderLeftColor: '#e8e8e8', |
| | | borderRightWidth: '1px', borderRightColor: '#e8e8e8', |
| | | borderBottomWidth: '1px', borderBottomColor: '#e8e8e8', |
| | | paddingTop: '15px', paddingBottom: '15px', paddingLeft: '15px', paddingRight: '15px' |
| | | paddingTop: '15px', paddingBottom: '15px', paddingLeft: '15px', paddingRight: '15px', |
| | | marginLeft: '8px', marginRight: '8px', marginBottom: '8px' |
| | | }, |
| | | backElements: [{ |
| | | uuid: Utils.getuuid(), |
| | |
| | | card.errors.push({ level: 0, detail: '数据源中无可用脚本!'}) |
| | | } else if (!card.setting.primaryKey) { |
| | | card.errors.push({ level: 0, detail: '未设置主键!'}) |
| | | } else if (!card.setting.subKey) { |
| | | card.errors.push({ level: 0, detail: '未设置子表主键!'}) |
| | | } else if (!card.setting.subBID) { |
| | | card.errors.push({ level: 0, detail: '未设置子表BID!'}) |
| | | } else if (!columns.includes(card.setting.primaryKey)) { |
| | | card.errors.push({ level: 0, detail: '主键已失效!'}) |
| | | } else if (!card.setting.supModule) { |