src/components/header/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/tabviews/custom/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/menudesign/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/mobdesign/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/pcdesign/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/header/index.jsx
@@ -414,6 +414,10 @@ this.props.history.replace('/design') } else { if (res.message.indexOf('密码错误') > -1) { const input = document.getElementById('password') input && input.select() } this.setState({ loginLoading: false }) src/tabviews/custom/index.jsx
@@ -462,7 +462,7 @@ tab.components.forEach(comp => { if (comp.type === 'tabs' && comp.parentIds) { supIds.push(...comp.parentIds) } else if (comp.setting.supModule) { } else if (comp.setting && comp.setting.supModule) { supIds.push(comp.setting.supModule) } }) src/views/menudesign/index.jsx
@@ -830,25 +830,38 @@ const { config, MenuType } = this.state let error = '' config.components.forEach(item => { if (error) return if (['propcard', 'brafteditor', 'sandbox'].includes(item.subtype) && item.wrap.datatype === 'static') return let check = (components) => { components.forEach(item => { if (error) return if (item.type === 'tabs') { item.subtabs.forEach(tab => { check(tab.components) }) return } else if (item.type === 'group') { check(item.components) return } if (['propcard', 'brafteditor', 'sandbox'].includes(item.subtype) && item.wrap.datatype === 'static') return if (item.setting) { if (item.setting.interType === 'system' && item.setting.execute !== 'false' && !item.setting.dataresource) { error = `组件《${item.name}》未设置数据源!` } else if (item.setting.interType === 'system' && item.setting.execute === 'false' && item.scripts.length === 0) { error = `组件《${item.name}》未设置数据源!` } else if (item.setting.interType && !item.setting.primaryKey && MenuType !== 'billPrint') { error = `组件《${item.name}》未设置主键!` } } if (item.type === 'bar' || item.type === 'line' || item.type === 'pie') { if (!item.plot.Xaxis) { error = `组件《${item.name}》图表字段尚未设置!` } } }) } if (item.setting) { if (item.setting.interType === 'system' && item.setting.execute !== 'false' && !item.setting.dataresource) { error = `组件《${item.name}》未设置数据源!` } else if (item.setting.interType === 'system' && item.setting.execute === 'false' && item.scripts.length === 0) { error = `组件《${item.name}》未设置数据源!` } else if (item.setting.interType && !item.setting.primaryKey && MenuType !== 'billPrint') { error = `组件《${item.name}》未设置主键!` } } if (item.type === 'bar' || item.type === 'line' || item.type === 'pie') { if (!item.plot.Xaxis) { error = `组件《${item.name}》图表字段尚未设置!` } } }) check(config.components) if (show && error) { notification.warning({ src/views/mobdesign/index.jsx
@@ -1241,25 +1241,38 @@ const { config } = this.state let error = '' config.components.forEach(item => { if (error) return if (['propcard', 'brafteditor', 'sandbox'].includes(item.subtype) && item.wrap.datatype === 'static') return let check = (components) => { components.forEach(item => { if (error) return if (item.type === 'tabs') { item.subtabs.forEach(tab => { check(tab.components) }) return } else if (item.type === 'group') { check(item.components) return } if (['propcard', 'brafteditor', 'sandbox'].includes(item.subtype) && item.wrap.datatype === 'static') return if (item.setting) { if (item.setting.interType === 'system' && item.setting.execute !== 'false' && !item.setting.dataresource) { error = `组件《${item.name}》未设置数据源!` } else if (item.setting.interType === 'system' && item.setting.execute === 'false' && item.scripts.length === 0) { error = `组件《${item.name}》未设置数据源!` } else if (item.setting.interType && !item.setting.primaryKey) { error = `组件《${item.name}》未设置主键!` } } if (item.type === 'bar' || item.type === 'line' || item.type === 'pie') { if (!item.plot.Xaxis) { error = `组件《${item.name}》图表字段尚未设置!` } } }) } if (item.setting) { if (item.setting.interType === 'system' && item.setting.execute !== 'false' && !item.setting.dataresource) { error = `组件《${item.name}》未设置数据源!` } else if (item.setting.interType === 'system' && item.setting.execute === 'false' && item.scripts.length === 0) { error = `组件《${item.name}》未设置数据源!` } else if (item.setting.interType && !item.setting.primaryKey) { error = `组件《${item.name}》未设置主键!` } } if (item.type === 'bar' || item.type === 'line' || item.type === 'pie') { if (!item.plot.Xaxis) { error = `组件《${item.name}》图表字段尚未设置!` } } }) check(config.components) if (show && error) { notification.warning({ src/views/pcdesign/index.jsx
@@ -1268,25 +1268,38 @@ const { config } = this.state let error = '' config.components.forEach(item => { if (error) return if (['propcard', 'brafteditor', 'sandbox'].includes(item.subtype) && item.wrap.datatype === 'static') return let check = (components) => { components.forEach(item => { if (error) return if (item.type === 'tabs') { item.subtabs.forEach(tab => { check(tab.components) }) return } else if (item.type === 'group') { check(item.components) return } if (['propcard', 'brafteditor', 'sandbox'].includes(item.subtype) && item.wrap.datatype === 'static') return if (item.setting) { if (item.setting.interType === 'system' && item.setting.execute !== 'false' && !item.setting.dataresource) { error = `组件《${item.name}》未设置数据源!` } else if (item.setting.interType === 'system' && item.setting.execute === 'false' && item.scripts.length === 0) { error = `组件《${item.name}》未设置数据源!` } else if (item.setting.interType && !item.setting.primaryKey) { error = `组件《${item.name}》未设置主键!` } } if (item.type === 'bar' || item.type === 'line' || item.type === 'pie') { if (!item.plot.Xaxis) { error = `组件《${item.name}》图表字段尚未设置!` } } }) } if (item.setting) { if (item.setting.interType === 'system' && item.setting.execute !== 'false' && !item.setting.dataresource) { error = `组件《${item.name}》未设置数据源!` } else if (item.setting.interType === 'system' && item.setting.execute === 'false' && item.scripts.length === 0) { error = `组件《${item.name}》未设置数据源!` } else if (item.setting.interType && !item.setting.primaryKey) { error = `组件《${item.name}》未设置主键!` } } if (item.type === 'bar' || item.type === 'line' || item.type === 'pie') { if (!item.plot.Xaxis) { error = `组件《${item.name}》图表字段尚未设置!` } } }) check(config.components) if (show && error) { notification.warning({