提交 5303e940 authored 作者: chlolch's avatar chlolch

修复样式

上级 feb724d3
...@@ -414,9 +414,9 @@ export default class tableCom extends Component { ...@@ -414,9 +414,9 @@ export default class tableCom extends Component {
onFilter: (value, record) => onFilter: (value, record) =>
record[dataIndex] record[dataIndex]
? record[dataIndex] ? record[dataIndex]
.toString() .toString()
.toLowerCase() .toLowerCase()
.includes(value.toLowerCase()) .includes(value.toLowerCase())
: '', : '',
onFilterDropdownVisibleChange: visible => { onFilterDropdownVisibleChange: visible => {
if (visible) { if (visible) {
...@@ -489,7 +489,7 @@ export default class tableCom extends Component { ...@@ -489,7 +489,7 @@ export default class tableCom extends Component {
if (this.count.length > 10) { if (this.count.length > 10) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:存在循环风险,1秒内执行超过10次,现已停止执行,请检查,`, 1}列:存在循环风险,1秒内执行超过10次,现已停止执行,请检查,`,
); );
return; return;
...@@ -511,9 +511,9 @@ export default class tableCom extends Component { ...@@ -511,9 +511,9 @@ export default class tableCom extends Component {
this.props.fatherCode != null this.props.fatherCode != null
? bindObj ? bindObj
? { ? {
...bindObj, ...bindObj,
base52: `${this.props.fatherCode}.[${this.props.index}].${bindObj.base52}`, base52: `${this.props.fatherCode}.[${this.props.index}].${bindObj.base52}`,
} }
: { base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` } : { base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` }
: bindObj; : bindObj;
if (this.props.fatherCode == null && dataColumn == null) if (this.props.fatherCode == null && dataColumn == null)
...@@ -753,7 +753,7 @@ export default class tableCom extends Component { ...@@ -753,7 +753,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
} }
...@@ -809,7 +809,7 @@ export default class tableCom extends Component { ...@@ -809,7 +809,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
//message.error(`页面${this.props.formKey}第${this.props.i + 1}行,第${this.props.j + 1}列:公式配置有误,回调函数内部错误${e}`, 10) //message.error(`页面${this.props.formKey}第${this.props.i + 1}行,第${this.props.j + 1}列:公式配置有误,回调函数内部错误${e}`, 10)
...@@ -823,7 +823,7 @@ export default class tableCom extends Component { ...@@ -823,7 +823,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
} }
...@@ -835,7 +835,7 @@ export default class tableCom extends Component { ...@@ -835,7 +835,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
} }
...@@ -884,7 +884,7 @@ export default class tableCom extends Component { ...@@ -884,7 +884,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
} }
...@@ -897,7 +897,7 @@ export default class tableCom extends Component { ...@@ -897,7 +897,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
} }
...@@ -909,7 +909,7 @@ export default class tableCom extends Component { ...@@ -909,7 +909,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
} }
...@@ -960,7 +960,7 @@ export default class tableCom extends Component { ...@@ -960,7 +960,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
} }
...@@ -973,7 +973,7 @@ export default class tableCom extends Component { ...@@ -973,7 +973,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
} }
...@@ -985,7 +985,7 @@ export default class tableCom extends Component { ...@@ -985,7 +985,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
} }
...@@ -1040,7 +1040,7 @@ export default class tableCom extends Component { ...@@ -1040,7 +1040,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
} }
...@@ -1053,7 +1053,7 @@ export default class tableCom extends Component { ...@@ -1053,7 +1053,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
} }
...@@ -1065,7 +1065,7 @@ export default class tableCom extends Component { ...@@ -1065,7 +1065,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,回调函数内部错误,`, 1}列:公式配置有误,回调函数内部错误,`,
e, e,
); );
} }
...@@ -1183,7 +1183,7 @@ export default class tableCom extends Component { ...@@ -1183,7 +1183,7 @@ export default class tableCom extends Component {
} catch { } catch {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,函数内部错误,`, 1}列:公式配置有误,函数内部错误,`,
e, e,
); );
} }
...@@ -1193,7 +1193,7 @@ export default class tableCom extends Component { ...@@ -1193,7 +1193,7 @@ export default class tableCom extends Component {
} catch (e) { } catch (e) {
console.log( console.log(
`页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j + `页面${this.props.formKey}${this.props.i + 1}行,第${this.props.j +
1}列:公式配置有误,暂存失败,`, 1}列:公式配置有误,暂存失败,`,
e, e,
); );
} }
...@@ -1220,9 +1220,9 @@ export default class tableCom extends Component { ...@@ -1220,9 +1220,9 @@ export default class tableCom extends Component {
this.props.fatherCode != null this.props.fatherCode != null
? bindObj ? bindObj
? { ? {
...bindObj, ...bindObj,
base52: `${this.props.fatherCode}.[${this.props.index}].${bindObj.base52}`, base52: `${this.props.fatherCode}.[${this.props.index}].${bindObj.base52}`,
} }
: { base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` } : { base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` }
: bindObj; : bindObj;
if (this.props.fatherCode == null && dataColumn == null) if (this.props.fatherCode == null && dataColumn == null)
...@@ -1599,8 +1599,8 @@ export default class tableCom extends Component { ...@@ -1599,8 +1599,8 @@ export default class tableCom extends Component {
{get === 'mobile' ? <br /> : ''} {get === 'mobile' ? <br /> : ''}
</span> </span>
) : ( ) : (
'' ''
); );
break; break;
case 'UploadCom': case 'UploadCom':
...@@ -1652,134 +1652,228 @@ export default class tableCom extends Component { ...@@ -1652,134 +1652,228 @@ export default class tableCom extends Component {
break; break;
} }
if (get === 'mobile') {
if (json.isLabel) { if ((json.isMobileLabel != null && json.isMobileLabel) || (json.isMobileLabel == null && json.isLabel)) {
if (obj && obj.defaultValues && obj.defaultValues[formKey]) { if (obj && obj.defaultValues && obj.defaultValues[formKey]) {
if (!isEdit) { if (!isEdit) {
return ( return (
<Row <Row
style={{
minHeight: 40,
lineHeight: '40px',
}}
>
<Col
className={json.label ? json.label : sqlData[key] ? styles.row_col_div : ''}
span={json.labelSpan}
style={{ style={{
textAlign: json.labelSpan === 24 ? 'left' : 'right', minHeight: 40,
lineHeight: '40px', lineHeight: '40px',
whiteSpace: 'nowrap',
overflow: 'hidden',
fontSize: 14,
color: 'rgba(0,0,0,0.85)',
}} }}
> >
{json.label ? ( <Col
<> className={json.label ? json.label : sqlData[key] ? styles.row_col_div : ''}
{json.label} span={json.labelSpan}
<span style={{
style={{ textAlign: json.labelSpan === 24 ? 'left' : 'right',
position: 'relative', lineHeight: '40px',
top: '-0.5px', whiteSpace: 'nowrap',
margin: '0 8px 0 2px', overflow: 'hidden',
}} fontSize: 14,
> color: 'rgba(0,0,0,0.85)',
: }}
</span> >
</> {json.label ? (
) : sqlData[key] ? ( <>
<> {json.label}
{sqlData[key].title} <span
<span style={{
style={{ position: 'relative',
position: 'relative', top: '-0.5px',
top: '-0.5px', margin: '0 8px 0 2px',
margin: '0 8px 0 2px', }}
}} >
> :
: </span>
</span> </>
</> ) : sqlData[key] ? (
) : ( <>
'' {sqlData[key].title}
)} <span
</Col> style={{
<Col position: 'relative',
span={json.wrapperSpan} top: '-0.5px',
margin: '0 8px 0 2px',
}}
>
:
</span>
</>
) : (
''
)}
</Col>
<Col
span={json.wrapperSpan}
style={{
position: 'relative',
lineHeight: '40px',
zoom: 1,
fontSize: 14,
}}
>
{cm}
</Col>
</Row>
);
} else {
return (
<Form.Item
labelCol={{ span: json.labelSpan }}
wrapperCol={{ span: json.wrapperSpan }}
label={json.label ? json.label : sqlData[key] ? sqlData[key].title : ''}
>
{cm}
</Form.Item>
);
}
} else {
return (
<>
<Form.Item
labelCol={{ span: json.labelSpan }}
wrapperCol={{ span: json.wrapperSpan }}
label={json.label ? json.label : sqlData[key] ? sqlData[key].title : ''}
>
{cm}
</Form.Item>
{this.props.form.getFieldDecorator(`defaultValues.${formKey}.${key}`, {
initialValue: value,
})(<Input type="hidden" />)}
</>
);
}
} else {
if (!isEdit && obj.defaultValues && obj.defaultValues[formKey]) {
return cm;
} else {
return (
<>
{cm}
{this.props.form.getFieldDecorator(`defaultValues.${formKey}.${key}`, {
initialValue: value,
})(<Input type="hidden" />)}
</>
);
}
}
} else {
if (json.isLabel) {
if (obj && obj.defaultValues && obj.defaultValues[formKey]) {
if (!isEdit) {
return (
<Row
style={{ style={{
position: 'relative', minHeight: 40,
lineHeight: '40px', lineHeight: '40px',
zoom: 1,
fontSize: 14,
}} }}
>
<Col
className={json.label ? json.label : sqlData[key] ? styles.row_col_div : ''}
span={json.labelSpan}
style={{
textAlign: json.labelSpan === 24 ? 'left' : 'right',
lineHeight: '40px',
whiteSpace: 'nowrap',
overflow: 'hidden',
fontSize: 14,
color: 'rgba(0,0,0,0.85)',
}}
>
{json.label ? (
<>
{json.label}
<span
style={{
position: 'relative',
top: '-0.5px',
margin: '0 8px 0 2px',
}}
>
:
</span>
</>
) : sqlData[key] ? (
<>
{sqlData[key].title}
<span
style={{
position: 'relative',
top: '-0.5px',
margin: '0 8px 0 2px',
}}
>
:
</span>
</>
) : (
''
)}
</Col>
<Col
span={json.wrapperSpan}
style={{
position: 'relative',
lineHeight: '40px',
zoom: 1,
fontSize: 14,
}}
>
{cm}
</Col>
</Row>
);
} else {
return (
<Form.Item
labelCol={{ span: json.labelSpan }}
wrapperCol={{ span: json.wrapperSpan }}
label={json.label ? json.label : sqlData[key] ? sqlData[key].title : ''}
> >
{cm} {cm}
</Col> </Form.Item>
</Row> );
); }
} else { } else {
return ( return (
<Form.Item <>
labelCol={{ span: json.labelSpan }} <Form.Item
wrapperCol={{ span: json.wrapperSpan }} labelCol={{ span: json.labelSpan }}
label={json.label ? json.label : sqlData[key] ? sqlData[key].title : ''} wrapperCol={{ span: json.wrapperSpan }}
> label={json.label ? json.label : sqlData[key] ? sqlData[key].title : ''}
{cm} >
</Form.Item> {cm}
</Form.Item>
{this.props.form.getFieldDecorator(`defaultValues.${formKey}.${key}`, {
initialValue: value,
})(<Input type="hidden" />)}
</>
); );
} }
} else { } else {
if (get === 'mobile') { if (!isEdit && obj.defaultValues && obj.defaultValues[formKey]) {
/** return cm;
* 列表类型 } else {
*/
return ( return (
<> <>
{cm}
{this.props.form.getFieldDecorator(`defaultValues.${formKey}.${key}`, { {this.props.form.getFieldDecorator(`defaultValues.${formKey}.${key}`, {
initialValue: value, initialValue: value,
})( })(<Input type="hidden" />)}
<MobileList id="MobileList">
<MobileList.Item extra={cm}>
<span style={{ fontSize: 14 }}>
{json.label ? json.label : sqlData[key] ? sqlData[key].title : ''}
</span>
</MobileList.Item>
</MobileList>,
)}
</> </>
); );
// return <div><span style={{marginRight:12}}>{json.label?json.label:sqlData[key] ? sqlData[key].title : ""}:</span><span>{cm}</span></div>
} }
return (
<>
<Form.Item
labelCol={{ span: json.labelSpan }}
wrapperCol={{ span: json.wrapperSpan }}
label={json.label ? json.label : sqlData[key] ? sqlData[key].title : ''}
>
{cm}
</Form.Item>
{this.props.form.getFieldDecorator(`defaultValues.${formKey}.${key}`, {
initialValue: value,
})(<Input type="hidden" />)}
</>
);
}
} else {
if (!isEdit && obj.defaultValues && obj.defaultValues[formKey]) {
return cm;
} else {
return (
<>
{cm}
{this.props.form.getFieldDecorator(`defaultValues.${formKey}.${key}`, {
initialValue: value,
})(<Input type="hidden" />)}
</>
);
} }
} }
} }
var cm; var cm;
...@@ -1790,9 +1884,9 @@ export default class tableCom extends Component { ...@@ -1790,9 +1884,9 @@ export default class tableCom extends Component {
this.props.fatherCode != null this.props.fatherCode != null
? bindObj ? bindObj
? { ? {
...bindObj, ...bindObj,
base52: `${this.props.fatherCode}.[${this.props.index}].${bindObj.base52}`, base52: `${this.props.fatherCode}.[${this.props.index}].${bindObj.base52}`,
} }
: { base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` } : { base52: `${this.props.fatherCode}.[${this.props.index}].${this.props.uuid}` }
: bindObj; : bindObj;
...@@ -1898,18 +1992,18 @@ export default class tableCom extends Component { ...@@ -1898,18 +1992,18 @@ export default class tableCom extends Component {
<span> <span>
{labels != null {labels != null
? labels.map((r, i) => ? labels.map((r, i) =>
i == 0 ? ( i == 0 ? (
typeof r == 'string' ? ( typeof r == 'string' ? (
<span>{r}</span> <span>{r}</span>
) : ( ) : (
Object.values(r) Object.values(r)
) )
) : typeof r == 'string' ? ( ) : typeof r == 'string' ? (
<span style={{ marginLeft: 12 }}>{r}</span> <span style={{ marginLeft: 12 }}>{r}</span>
) : ( ) : (
',' + Object.values(r) ',' + Object.values(r)
), ),
) )
: ''} : ''}
</span> </span>
); );
...@@ -1987,8 +2081,8 @@ export default class tableCom extends Component { ...@@ -1987,8 +2081,8 @@ export default class tableCom extends Component {
<span> <span>
{obj[dataColumn.base52] {obj[dataColumn.base52]
? moment(+new Date(obj[dataColumn.base52])).format( ? moment(+new Date(obj[dataColumn.base52])).format(
json.format ? json.format : 'YYYY-MM-DD HH:mm:ss', json.format ? json.format : 'YYYY-MM-DD HH:mm:ss',
) )
: ''} : ''}
</span> </span>
); );
...@@ -2102,11 +2196,11 @@ export default class tableCom extends Component { ...@@ -2102,11 +2196,11 @@ export default class tableCom extends Component {
height={json.height} height={json.height}
/> />
) : ( ) : (
<img <img
src={config.httpServer + obj[dataColumn.base52]} src={config.httpServer + obj[dataColumn.base52]}
style={{ width: json.width, height: json.height }} style={{ width: json.width, height: json.height }}
/> />
); );
} }
break; break;
...@@ -2313,7 +2407,7 @@ export default class tableCom extends Component { ...@@ -2313,7 +2407,7 @@ export default class tableCom extends Component {
} }
> >
{(json.isMobileLabel != null && json.isMobileLabel) || {(json.isMobileLabel != null && json.isMobileLabel) ||
(json.isMobileLabel == null && json.isLabel) (json.isMobileLabel == null && json.isLabel)
? title ? title
: ''} : ''}
</MobileList.Item> </MobileList.Item>
...@@ -2507,25 +2601,25 @@ export default class tableCom extends Component { ...@@ -2507,25 +2601,25 @@ export default class tableCom extends Component {
getPopupContainer={ getPopupContainer={
this.props.isDynamic && document.querySelector('#dynamic_div') this.props.isDynamic && document.querySelector('#dynamic_div')
? () => { ? () => {
return document.querySelector('#dynamic_div'); return document.querySelector('#dynamic_div');
} }
: '' : ''
} }
onFocus={() => { onFocus={() => {
get === 'mobile' // 移动端取消输入键盘弹出 get === 'mobile' // 移动端取消输入键盘弹出
? setTimeout(() => { ? setTimeout(() => {
if (document.querySelectorAll(`.ant-select-search__field`).length > 0) { if (document.querySelectorAll(`.ant-select-search__field`).length > 0) {
let ary = [...document.querySelectorAll(`.ant-select-search__field`)]; let ary = [...document.querySelectorAll(`.ant-select-search__field`)];
ary.map(item => { ary.map(item => {
item.setAttribute('readonly', 'readonly'); item.setAttribute('readonly', 'readonly');
// setTimeout(() => { // setTimeout(() => {
// ary.map(arr => { // ary.map(arr => {
// arr.removeAttribute('readonly'); // arr.removeAttribute('readonly');
// }) // })
// }); // });
}); });
} }
}) })
: null; : null;
}} }}
filterOption={(input, option) => filterOption={(input, option) =>
...@@ -2536,10 +2630,10 @@ export default class tableCom extends Component { ...@@ -2536,10 +2630,10 @@ export default class tableCom extends Component {
> >
{options {options
? options.map(r => ( ? options.map(r => (
<Option key={r.value} value={r.value}> <Option key={r.value} value={r.value}>
{r.label} {r.label}
</Option> </Option>
)) ))
: ''} : ''}
</Select>, </Select>,
); );
...@@ -2571,22 +2665,22 @@ export default class tableCom extends Component { ...@@ -2571,22 +2665,22 @@ export default class tableCom extends Component {
json.vlds && json.vlds.length > 0 json.vlds && json.vlds.length > 0
? json.vlds ? json.vlds
: [ : [
{ {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
if ( if (
(Object.keys(value).length == 0 || (Object.keys(value).length == 0 ||
Object.keys(value.selects).length == 0) && Object.keys(value.selects).length == 0) &&
required != null && required != null &&
required required
) { ) {
var errors = []; var errors = [];
errors.push(new Error('请选择至少一个', rule.field)); errors.push(new Error('请选择至少一个', rule.field));
} }
callback(errors); callback(errors);
},
required: required,
}, },
], required: required,
},
],
})( })(
<TableSelect <TableSelect
get={get} get={get}
...@@ -2700,21 +2794,21 @@ export default class tableCom extends Component { ...@@ -2700,21 +2794,21 @@ export default class tableCom extends Component {
onOpenChange={ onOpenChange={
get === 'mobile' get === 'mobile'
? () => { ? () => {
// 取消唤起移动端小键盘 // 取消唤起移动端小键盘
setTimeout(() => { setTimeout(() => {
if (document.querySelector('.ant-calendar-input ')) { if (document.querySelector('.ant-calendar-input ')) {
document
.querySelector('.ant-calendar-input ')
.setAttribute('readonly', 'readonly');
setTimeout(() => {
document document
.querySelector('.ant-calendar-input ') .querySelector('.ant-calendar-input ')
.setAttribute('readonly', 'readonly'); .removeAttribute('readonly');
setTimeout(() => { });
document }
.querySelector('.ant-calendar-input ') });
.removeAttribute('readonly'); }
}); : () => { }
}
});
}
: () => {}
} }
format={json.format ? json.format : 'YYYY-MM-DD HH:mm:ss'} format={json.format ? json.format : 'YYYY-MM-DD HH:mm:ss'}
/>, />,
...@@ -2993,8 +3087,8 @@ export default class tableCom extends Component { ...@@ -2993,8 +3087,8 @@ export default class tableCom extends Component {
/> />
</FormModal> </FormModal>
) : ( ) : (
'' ''
)} )}
<Card.Header title={<span style={{ fontSize: 14 }}>{title}:</span>} /> <Card.Header title={<span style={{ fontSize: 14 }}>{title}:</span>} />
<Card.Body>{cm}</Card.Body> <Card.Body>{cm}</Card.Body>
</Card> </Card>
...@@ -3072,8 +3166,8 @@ export default class tableCom extends Component { ...@@ -3072,8 +3166,8 @@ export default class tableCom extends Component {
/> />
</FormModal> </FormModal>
) : ( ) : (
'' ''
)} )}
</Row> </Row>
); );
} else { } else {
...@@ -3106,8 +3200,8 @@ export default class tableCom extends Component { ...@@ -3106,8 +3200,8 @@ export default class tableCom extends Component {
/> />
</FormModal> </FormModal>
) : ( ) : (
'' ''
)} )}
<Form.Item <Form.Item
labelCol={{ span: json.labelSpan }} labelCol={{ span: json.labelSpan }}
wrapperCol={{ span: json.wrapperSpan }} wrapperCol={{ span: json.wrapperSpan }}
...@@ -3148,8 +3242,8 @@ export default class tableCom extends Component { ...@@ -3148,8 +3242,8 @@ export default class tableCom extends Component {
/> />
</FormModal> </FormModal>
) : ( ) : (
'' ''
)} )}
{cm} {cm}
</> </>
); );
...@@ -3184,8 +3278,8 @@ export default class tableCom extends Component { ...@@ -3184,8 +3278,8 @@ export default class tableCom extends Component {
/> />
</FormModal> </FormModal>
) : ( ) : (
'' ''
)} )}
<Form.Item>{cm}</Form.Item> <Form.Item>{cm}</Form.Item>
</> </>
); );
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论