提交 030a8f51 authored 作者: 钟是志's avatar 钟是志

29143 h5/优秀学生干部管理/优秀学生干部申请,时间只要年/月;更改时间排版(20192601007,bdk@2022*$)

上级 e0979936
...@@ -91,7 +91,7 @@ export default class MobileDate extends Component { ...@@ -91,7 +91,7 @@ export default class MobileDate extends Component {
render() { render() {
let { dates } = this.state; let { dates } = this.state;
const { format, showTime } = this.props; const { format, showTime, otherProps = {} } = this.props;
let mode = 'datetime'; let mode = 'datetime';
if (!showTime) { if (!showTime) {
mode = 'date'; mode = 'date';
...@@ -121,6 +121,7 @@ export default class MobileDate extends Component { ...@@ -121,6 +121,7 @@ export default class MobileDate extends Component {
format={format ? format : 'YYYY-MM-DD HH:mm:ss'} format={format ? format : 'YYYY-MM-DD HH:mm:ss'}
mode={mode} mode={mode}
onChange={date => this.handelStartChange(date)} onChange={date => this.handelStartChange(date)}
{...otherProps}
> >
<List.Item arrow="horizontal">{MustSpan}开始时间</List.Item> <List.Item arrow="horizontal">{MustSpan}开始时间</List.Item>
</DatePicker> </DatePicker>
...@@ -141,6 +142,7 @@ export default class MobileDate extends Component { ...@@ -141,6 +142,7 @@ export default class MobileDate extends Component {
mode={mode} mode={mode}
format={format ? format : 'YYYY-MM-DD HH:mm:ss'} format={format ? format : 'YYYY-MM-DD HH:mm:ss'}
onChange={date => this.handelEndChange(date)} onChange={date => this.handelEndChange(date)}
{...otherProps}
> >
<List.Item arrow="horizontal">{MustSpan}结束时间</List.Item> <List.Item arrow="horizontal">{MustSpan}结束时间</List.Item>
</DatePicker> </DatePicker>
......
...@@ -3284,6 +3284,15 @@ ${obj[dataColumn.base52]} ...@@ -3284,6 +3284,15 @@ ${obj[dataColumn.base52]}
break; break;
case 'RangePicker': case 'RangePicker':
if (json?.otherProps) {
otherProps = json?.otherProps;
try {
// mode = multiple 就支持下拉多选了
otherProps = new Function(otherProps)();
} catch (e) {
otherProps = {};
}
}
const begin = dataColumn; const begin = dataColumn;
var end = this.getColumn('c2'); var end = this.getColumn('c2');
if (end == null) { if (end == null) {
...@@ -3330,6 +3339,7 @@ ${obj[dataColumn.base52]} ...@@ -3330,6 +3339,7 @@ ${obj[dataColumn.base52]}
required={required} required={required}
format={json.format} format={json.format}
showTime={json.showTime} showTime={json.showTime}
otherProps={otherProps}
/>, />,
); );
if ( if (
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论