提交 2a8dfe0b authored 作者: 钟是志's avatar 钟是志

打包分块优化

上级 331a379b
...@@ -1240,8 +1240,11 @@ export default class TableCom extends Component { ...@@ -1240,8 +1240,11 @@ export default class TableCom extends Component {
fetchData3 = (obj, dataColumn, init, json, allValues) => { fetchData3 = (obj, dataColumn, init, json, allValues) => {
const { const {
sqlKey, labelName, valueName, sqlKey,
isMeta, filterSql, labelName,
valueName,
isMeta,
filterSql,
} = json; } = json;
const { dispatch } = this.props; const { dispatch } = this.props;
...@@ -2031,7 +2034,7 @@ export default class TableCom extends Component { ...@@ -2031,7 +2034,7 @@ export default class TableCom extends Component {
var title = json.label || (dataColumn && dataColumn.title); var title = json.label || (dataColumn && dataColumn.title);
var initValue; var initValue;
const objinit = { ...init, ...obj }; const objinit = { ...init, ...obj };
if(dataColumn.base52 === 'KYAHGbFFyWo'){ if (dataColumn.base52 === 'KYAHGbFFyWo') {
// console.log(objinit); // console.log(objinit);
// debugger; // debugger;
} }
...@@ -2653,7 +2656,7 @@ ${obj[dataColumn.base52]} ...@@ -2653,7 +2656,7 @@ ${obj[dataColumn.base52]}
case 'Switch': case 'Switch':
if (initValue === 'true' || initValue === true) { if (initValue === 'true' || initValue === true) {
initValue = true; initValue = true;
} else{ } else {
initValue = false; initValue = false;
} }
if (get === 'mobile') { if (get === 'mobile') {
...@@ -2707,7 +2710,7 @@ ${obj[dataColumn.base52]} ...@@ -2707,7 +2710,7 @@ ${obj[dataColumn.base52]}
}, },
], ],
})( })(
<SwitchWeb json={json} disabled={disabled}/> <SwitchWeb json={json} disabled={disabled} />,
); );
break; break;
...@@ -3528,29 +3531,24 @@ ${obj[dataColumn.base52]} ...@@ -3528,29 +3531,24 @@ ${obj[dataColumn.base52]}
} }
break; break;
case 'Cron': case 'Cron':
if(typeof BUILD_TYPE !== 'undefined' && BUILD_TYPE === 'ZYD'){ const CronEditor = lazy(() => import('antd-cron-editor'));
cm = '暂不支持此组件' const CronFunctions = (props) => {
}else{ <Suspense fallback={<div>loading...</div>}>
const CronEditor = lazy(() => import('antd-cron-editor')); <CronEditor style={{ width: 600 }} {...props} />
const CronFunctions = (props) => { </Suspense>;
<Suspense fallback={<div>loading...</div>}> };
<CronEditor style={{ width: 600 }} {...props}/> cm = getFieldDecorator(dataColumn.base52, {
</Suspense> initialValue: initValue,
} rules:
cm = getFieldDecorator(dataColumn.base52, { json.vlds && json.vlds.length > 0
initialValue: initValue, ? json.vlds
rules: : [
json.vlds && json.vlds.length > 0 {
? json.vlds required: required,
: [ message: '请输入' + title,
{ },
required: required, ],
message: '请输入' + title, })(<CronFunctions />);
},
],
})(<CronFunctions />);
}
break; break;
case 'LocationCom': case 'LocationCom':
cm = getFieldDecorator(dataColumn.base52, { cm = getFieldDecorator(dataColumn.base52, {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论