提交 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,15 +3531,12 @@ ${obj[dataColumn.base52]} ...@@ -3528,15 +3531,12 @@ ${obj[dataColumn.base52]}
} }
break; break;
case 'Cron': case 'Cron':
if(typeof BUILD_TYPE !== 'undefined' && BUILD_TYPE === 'ZYD'){
cm = '暂不支持此组件'
}else{
const CronEditor = lazy(() => import('antd-cron-editor')); const CronEditor = lazy(() => import('antd-cron-editor'));
const CronFunctions = (props) => { const CronFunctions = (props) => {
<Suspense fallback={<div>loading...</div>}> <Suspense fallback={<div>loading...</div>}>
<CronEditor style={{ width: 600 }} {...props}/> <CronEditor style={{ width: 600 }} {...props} />
</Suspense> </Suspense>;
} };
cm = getFieldDecorator(dataColumn.base52, { cm = getFieldDecorator(dataColumn.base52, {
initialValue: initValue, initialValue: initValue,
rules: rules:
...@@ -3549,8 +3549,6 @@ ${obj[dataColumn.base52]} ...@@ -3549,8 +3549,6 @@ ${obj[dataColumn.base52]}
}, },
], ],
})(<CronFunctions />); })(<CronFunctions />);
}
break; break;
case 'LocationCom': case 'LocationCom':
cm = getFieldDecorator(dataColumn.base52, { cm = getFieldDecorator(dataColumn.base52, {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论