Commit 70240ceb authored by wangxuelai's avatar wangxuelai

'报错提示修改'

parent e7b53972
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
"jsx-a11y/mouse-events-have-key-events": 0, "jsx-a11y/mouse-events-have-key-events": 0,
"prefer-object-spread": 0, "prefer-object-spread": 0,
"react/jsx-props-no-spreading": 0, "react/jsx-props-no-spreading": 0,
"lines-between-class-members": 0 "lines-between-class-members": 0,
"react/no-array-index-key": 0
} }
} }
\ No newline at end of file
...@@ -69,9 +69,9 @@ class CourseChart extends React.Component { ...@@ -69,9 +69,9 @@ class CourseChart extends React.Component {
} = this.props; } = this.props;
const courseChartColumns = [{ const courseChartColumns = [{
title: '', title: '',
dataIndex: 'name', dataIndex: 'time',
align: 'center', align: 'center',
key: 'name', key: 'time',
render: () => ( render: () => (
<div> <div>
<div className={pageStyle.timeitem}>6:00</div> <div className={pageStyle.timeitem}>6:00</div>
...@@ -104,8 +104,8 @@ class CourseChart extends React.Component { ...@@ -104,8 +104,8 @@ class CourseChart extends React.Component {
</div> </div>
), ),
align: 'center', align: 'center',
dataIndex: 'name', dataIndex: 'monday',
key: 'name', key: 'monday',
render: () => ( render: () => (
<div className={pageStyle.scheduleplanbox}> <div className={pageStyle.scheduleplanbox}>
{scheduleList[0] && scheduleList[0].length > 0 && {scheduleList[0] && scheduleList[0].length > 0 &&
...@@ -114,6 +114,7 @@ class CourseChart extends React.Component { ...@@ -114,6 +114,7 @@ class CourseChart extends React.Component {
placement="bottomLeft" placement="bottomLeft"
autoAdjustOverflow autoAdjustOverflow
overlayClassName={pageStyle.courseDetailStyle} overlayClassName={pageStyle.courseDetailStyle}
key={ele.id}
content={ content={
<div> <div>
<div className={pageStyle.timebox}> <div className={pageStyle.timebox}>
...@@ -192,9 +193,9 @@ class CourseChart extends React.Component { ...@@ -192,9 +193,9 @@ class CourseChart extends React.Component {
{showWeekDaysArr[1] && showWeekDaysArr[1].isToday && <div className={pageStyle.idtoday}></div>} {showWeekDaysArr[1] && showWeekDaysArr[1].isToday && <div className={pageStyle.idtoday}></div>}
</div> </div>
), ),
dataIndex: 'name', dataIndex: 'tuesday',
align: 'center', align: 'center',
key: 'name', key: 'tuesday',
render: () => ( render: () => (
<div className={pageStyle.scheduleplanbox}> <div className={pageStyle.scheduleplanbox}>
{scheduleList[1] && scheduleList[1].length > 0 && {scheduleList[1] && scheduleList[1].length > 0 &&
...@@ -203,6 +204,7 @@ class CourseChart extends React.Component { ...@@ -203,6 +204,7 @@ class CourseChart extends React.Component {
placement="bottomLeft" placement="bottomLeft"
autoAdjustOverflow autoAdjustOverflow
overlayClassName={pageStyle.courseDetailStyle} overlayClassName={pageStyle.courseDetailStyle}
key={ele.id}
content={ content={
<div> <div>
<div className={pageStyle.timebox}> <div className={pageStyle.timebox}>
...@@ -281,9 +283,9 @@ class CourseChart extends React.Component { ...@@ -281,9 +283,9 @@ class CourseChart extends React.Component {
{showWeekDaysArr[2] && showWeekDaysArr[2].isToday && <div className={pageStyle.idtoday}></div>} {showWeekDaysArr[2] && showWeekDaysArr[2].isToday && <div className={pageStyle.idtoday}></div>}
</div> </div>
), ),
dataIndex: 'name', dataIndex: 'Wednesday',
align: 'center', align: 'center',
key: 'name', key: 'Wednesday',
render: () => ( render: () => (
<div className={pageStyle.scheduleplanbox}> <div className={pageStyle.scheduleplanbox}>
{scheduleList[2] && scheduleList[2].length > 0 && {scheduleList[2] && scheduleList[2].length > 0 &&
...@@ -292,6 +294,7 @@ class CourseChart extends React.Component { ...@@ -292,6 +294,7 @@ class CourseChart extends React.Component {
placement="bottomLeft" placement="bottomLeft"
autoAdjustOverflow autoAdjustOverflow
overlayClassName={pageStyle.courseDetailStyle} overlayClassName={pageStyle.courseDetailStyle}
key={ele.id}
content={ content={
<div> <div>
<div className={pageStyle.timebox}> <div className={pageStyle.timebox}>
...@@ -370,9 +373,9 @@ class CourseChart extends React.Component { ...@@ -370,9 +373,9 @@ class CourseChart extends React.Component {
{showWeekDaysArr[3] && showWeekDaysArr[3].isToday && <div className={pageStyle.idtoday}></div>} {showWeekDaysArr[3] && showWeekDaysArr[3].isToday && <div className={pageStyle.idtoday}></div>}
</div> </div>
), ),
dataIndex: 'name', dataIndex: 'Thursday',
align: 'center', align: 'center',
key: 'name', key: 'Thursday',
render: () => ( render: () => (
<div className={pageStyle.scheduleplanbox}> <div className={pageStyle.scheduleplanbox}>
{scheduleList[3] && scheduleList[3].length > 0 && {scheduleList[3] && scheduleList[3].length > 0 &&
...@@ -381,6 +384,7 @@ class CourseChart extends React.Component { ...@@ -381,6 +384,7 @@ class CourseChart extends React.Component {
placement="bottomLeft" placement="bottomLeft"
autoAdjustOverflow autoAdjustOverflow
overlayClassName={pageStyle.courseDetailStyle} overlayClassName={pageStyle.courseDetailStyle}
key={ele.id}
content={ content={
<div> <div>
<div className={pageStyle.timebox}> <div className={pageStyle.timebox}>
...@@ -459,9 +463,9 @@ class CourseChart extends React.Component { ...@@ -459,9 +463,9 @@ class CourseChart extends React.Component {
{showWeekDaysArr[4] && showWeekDaysArr[4].isToday && <div className={pageStyle.idtoday}></div>} {showWeekDaysArr[4] && showWeekDaysArr[4].isToday && <div className={pageStyle.idtoday}></div>}
</div> </div>
), ),
dataIndex: 'name', dataIndex: 'Friday',
align: 'center', align: 'center',
key: 'name', key: 'Friday',
render: () => ( render: () => (
<div className={pageStyle.scheduleplanbox}> <div className={pageStyle.scheduleplanbox}>
{scheduleList[4] && scheduleList[4].length > 0 && {scheduleList[4] && scheduleList[4].length > 0 &&
...@@ -470,6 +474,7 @@ class CourseChart extends React.Component { ...@@ -470,6 +474,7 @@ class CourseChart extends React.Component {
placement="bottomLeft" placement="bottomLeft"
autoAdjustOverflow autoAdjustOverflow
overlayClassName={pageStyle.courseDetailStyle} overlayClassName={pageStyle.courseDetailStyle}
key={ele.id}
content={ content={
<div> <div>
<div className={pageStyle.timebox}> <div className={pageStyle.timebox}>
...@@ -548,9 +553,9 @@ class CourseChart extends React.Component { ...@@ -548,9 +553,9 @@ class CourseChart extends React.Component {
{showWeekDaysArr[5] && showWeekDaysArr[5].isToday && <div className={pageStyle.idtoday}></div>} {showWeekDaysArr[5] && showWeekDaysArr[5].isToday && <div className={pageStyle.idtoday}></div>}
</div> </div>
), ),
dataIndex: 'name', dataIndex: 'Saturday',
align: 'center', align: 'center',
key: 'name', key: 'Saturday',
render: () => ( render: () => (
<div className={pageStyle.scheduleplanbox}> <div className={pageStyle.scheduleplanbox}>
{scheduleList[5] && scheduleList[5].length > 0 && {scheduleList[5] && scheduleList[5].length > 0 &&
...@@ -559,6 +564,7 @@ class CourseChart extends React.Component { ...@@ -559,6 +564,7 @@ class CourseChart extends React.Component {
placement="bottomLeft" placement="bottomLeft"
autoAdjustOverflow autoAdjustOverflow
overlayClassName={pageStyle.courseDetailStyle} overlayClassName={pageStyle.courseDetailStyle}
key={ele.id}
content={ content={
<div> <div>
<div className={pageStyle.timebox}> <div className={pageStyle.timebox}>
...@@ -637,9 +643,9 @@ class CourseChart extends React.Component { ...@@ -637,9 +643,9 @@ class CourseChart extends React.Component {
{showWeekDaysArr[6] && showWeekDaysArr[6].isToday && <div className={pageStyle.idtoday}></div>} {showWeekDaysArr[6] && showWeekDaysArr[6].isToday && <div className={pageStyle.idtoday}></div>}
</div> </div>
), ),
dataIndex: 'name', dataIndex: 'Sunday',
align: 'center', align: 'center',
key: 'name', key: 'Sunday',
render: () => ( render: () => (
<div className={pageStyle.scheduleplanbox}> <div className={pageStyle.scheduleplanbox}>
{scheduleList[6] && scheduleList[6].length > 0 && {scheduleList[6] && scheduleList[6].length > 0 &&
...@@ -648,6 +654,7 @@ class CourseChart extends React.Component { ...@@ -648,6 +654,7 @@ class CourseChart extends React.Component {
placement="bottomLeft" placement="bottomLeft"
autoAdjustOverflow autoAdjustOverflow
overlayClassName={pageStyle.courseDetailStyle} overlayClassName={pageStyle.courseDetailStyle}
key={ele.id}
content={ content={
<div> <div>
<div className={pageStyle.timebox}> <div className={pageStyle.timebox}>
...@@ -720,7 +727,7 @@ class CourseChart extends React.Component { ...@@ -720,7 +727,7 @@ class CourseChart extends React.Component {
), ),
}]; }];
const list = [{ const list = [{
id: 1,
}]; }];
return ( return (
<div className={`${pageStyle.coursechartbox} coursechartbox`}> <div className={`${pageStyle.coursechartbox} coursechartbox`}>
...@@ -737,7 +744,7 @@ class CourseChart extends React.Component { ...@@ -737,7 +744,7 @@ class CourseChart extends React.Component {
<Select className={pageStyle.selectitem} value={scheduleListQueryParams.teacher_id} onChange={this.changeTeacher}> <Select className={pageStyle.selectitem} value={scheduleListQueryParams.teacher_id} onChange={this.changeTeacher}>
<Option value="">全部老师</Option> <Option value="">全部老师</Option>
{teacherList.map(ele => ( {teacherList.map(ele => (
<Option value={ele.id}>{ele.nickname}</Option> <Option key={ele.id} value={ele.id}>{ele.nickname}</Option>
)) ))
} }
</Select> </Select>
...@@ -745,9 +752,10 @@ class CourseChart extends React.Component { ...@@ -745,9 +752,10 @@ class CourseChart extends React.Component {
</div> </div>
</div> </div>
<Table <Table
bordered={() => true} bordered
columns={courseChartColumns} columns={courseChartColumns}
dataSource={list} dataSource={list}
rowKey="id"
pagination={false} pagination={false}
/> />
</div> </div>
......
...@@ -252,7 +252,7 @@ class classRoomMgt extends React.Component { ...@@ -252,7 +252,7 @@ class classRoomMgt extends React.Component {
})( })(
<Select placeholder="请选择班级" onChange={this.classChange}> <Select placeholder="请选择班级" onChange={this.classChange}>
<Option value="">请选择班级</Option> <Option value="">请选择班级</Option>
{classList.map(ele => <Option value={ele.id}>{ele.title}</Option>)} {classList.map(ele => <Option key={ele.id} value={ele.id}>{ele.title}</Option>)}
</Select>)} </Select>)}
</Form.Item> </Form.Item>
} }
...@@ -347,7 +347,7 @@ class classRoomMgt extends React.Component { ...@@ -347,7 +347,7 @@ class classRoomMgt extends React.Component {
initialValue: rulePlanDetail.times, initialValue: rulePlanDetail.times,
})( })(
<Select mode="multiple" placeholder="请选择上课时间"> <Select mode="multiple" placeholder="请选择上课时间">
{timeArr.map(ele => <Option value={`${ele.start_time}-${ele.end_time}`}>{`${ele.start_time}-${ele.end_time}`}</Option>)} {timeArr.map(ele => <Option key={ele.id} value={`${ele.start_time}-${ele.end_time}`}>{`${ele.start_time}-${ele.end_time}`}</Option>)}
</Select>)} </Select>)}
</Col> </Col>
<Col <Col
...@@ -385,7 +385,7 @@ class classRoomMgt extends React.Component { ...@@ -385,7 +385,7 @@ class classRoomMgt extends React.Component {
rules: [{ required: true, message: '请选择上课老师' }], rules: [{ required: true, message: '请选择上课老师' }],
})( })(
<Select style={{ width: '100%' }} placeholder="请选择上课老师"> <Select style={{ width: '100%' }} placeholder="请选择上课老师">
{teacherList.map(ele => <Option value={ele.id}>{ele.nickname}</Option>)} {teacherList.map(ele => <Option key={ele.id} value={ele.id}>{ele.nickname}</Option>)}
</Select>)} </Select>)}
</Col> </Col>
</Row> </Row>
...@@ -408,7 +408,7 @@ class classRoomMgt extends React.Component { ...@@ -408,7 +408,7 @@ class classRoomMgt extends React.Component {
})( })(
<Select placeholder="请选择上课教室"> <Select placeholder="请选择上课教室">
<Option value="">请选择上课教室</Option> <Option value="">请选择上课教室</Option>
{classroomList.map(ele => <Option value={ele.id}>{ele.title}</Option>)} {classroomList.map(ele => <Option key={ele.id} value={ele.id}>{ele.title}</Option>)}
</Select>)} </Select>)}
</Col> </Col>
<Col span={5} style={{ color: '#1890FF', cursor: 'pointer', fontSize: '14px' }} onClick={classroomMgt}> <Col span={5} style={{ color: '#1890FF', cursor: 'pointer', fontSize: '14px' }} onClick={classroomMgt}>
...@@ -434,7 +434,7 @@ class classRoomMgt extends React.Component { ...@@ -434,7 +434,7 @@ class classRoomMgt extends React.Component {
<TextArea <TextArea
placeholder="请输入上课内容" placeholder="请输入上课内容"
maxLength={150} maxLength={150}
autosize={{ minRows: 2, maxRows: 6 }} autoSize={{ minRows: 2, maxRows: 6 }}
/>)} />)}
</Form.Item> </Form.Item>
</Form> </Form>
...@@ -459,7 +459,7 @@ class classRoomMgt extends React.Component { ...@@ -459,7 +459,7 @@ class classRoomMgt extends React.Component {
})( })(
<Select placeholder="请选择班级" onChange={this.classChange}> <Select placeholder="请选择班级" onChange={this.classChange}>
<Option value="">请选择班级</Option> <Option value="">请选择班级</Option>
{classList.map(ele => <Option value={ele.id}>{ele.title}</Option>)} {classList.map(ele => <Option key={ele.id} value={ele.id}>{ele.title}</Option>)}
</Select>)} </Select>)}
</Form.Item> </Form.Item>
} }
...@@ -500,10 +500,10 @@ class classRoomMgt extends React.Component { ...@@ -500,10 +500,10 @@ class classRoomMgt extends React.Component {
<div className={pageStyle.weekday}></div> <div className={pageStyle.weekday}></div>
<div className={pageStyle.weekday}></div> <div className={pageStyle.weekday}></div>
</div> </div>
{calendarData.targetTimeArr && calendarData.targetTimeArr.map((bigdat) => { {calendarData.targetTimeArr && calendarData.targetTimeArr.map((bigdat, index) => {
return ( return (
<div className={pageStyle.dayrow}>{bigdat.map((day) => { <div className={pageStyle.dayrow} key={index}>{bigdat.map((day) => {
return (<div onClick={() => this.selectPlanDay(day)} className={`${pageStyle.dayitem} ${day.open ? '' : pageStyle.notopen} ${day.type == 'current' ? pageStyle.current : ''} ${selectPlanDays.indexOf(day.date) != -1 ? pageStyle.dayselected : ''} ${day.istoday ? pageStyle.istoday : ''}`}>{day.day}</div>); return (<div key={day.date} onClick={() => this.selectPlanDay(day)} className={`${pageStyle.dayitem} ${day.open ? '' : pageStyle.notopen} ${day.type == 'current' ? pageStyle.current : ''} ${selectPlanDays.indexOf(day.date) != -1 ? pageStyle.dayselected : ''} ${day.istoday ? pageStyle.istoday : ''}`}>{day.day}</div>);
})} })}
</div> </div>
); );
...@@ -531,7 +531,7 @@ class classRoomMgt extends React.Component { ...@@ -531,7 +531,7 @@ class classRoomMgt extends React.Component {
initialValue: datePlanDetail.times, initialValue: datePlanDetail.times,
})( })(
<Select mode="multiple" placeholder="请选择上课时间"> <Select mode="multiple" placeholder="请选择上课时间">
{timeArr.map(ele => <Option value={`${ele.start_time}-${ele.end_time}`}>{`${ele.start_time}-${ele.end_time}`}</Option>)} {timeArr.map(ele => <Option key={ele.id} value={`${ele.start_time}-${ele.end_time}`}>{`${ele.start_time}-${ele.end_time}`}</Option>)}
</Select>)} </Select>)}
</Col> </Col>
<Col <Col
...@@ -570,7 +570,7 @@ class classRoomMgt extends React.Component { ...@@ -570,7 +570,7 @@ class classRoomMgt extends React.Component {
})( })(
<Select style={{ width: '100%' }} placeholder="请选择上课老师"> <Select style={{ width: '100%' }} placeholder="请选择上课老师">
<Option value="">请选择上课老师</Option> <Option value="">请选择上课老师</Option>
{teacherList.map(ele => <Option value={ele.id}>{ele.nickname}</Option>)} {teacherList.map(ele => <Option key={ele.id} value={ele.id}>{ele.nickname}</Option>)}
</Select>)} </Select>)}
</Col> </Col>
</Row> </Row>
...@@ -593,7 +593,7 @@ class classRoomMgt extends React.Component { ...@@ -593,7 +593,7 @@ class classRoomMgt extends React.Component {
})( })(
<Select placeholder="请选择上课教室"> <Select placeholder="请选择上课教室">
<Option value="">请选择上课教室</Option> <Option value="">请选择上课教室</Option>
{classroomList.map(ele => <Option value={ele.id}>{ele.title}</Option>)} {classroomList.map(ele => <Option key={ele.id} value={ele.id}>{ele.title}</Option>)}
</Select>)} </Select>)}
</Col> </Col>
<Col span={5} style={{ color: '#1890FF', cursor: 'pointer', fontSize: '14px' }} onClick={classroomMgt}> <Col span={5} style={{ color: '#1890FF', cursor: 'pointer', fontSize: '14px' }} onClick={classroomMgt}>
...@@ -618,7 +618,7 @@ class classRoomMgt extends React.Component { ...@@ -618,7 +618,7 @@ class classRoomMgt extends React.Component {
})( })(
<TextArea <TextArea
placeholder="请输入上课内容" placeholder="请输入上课内容"
autosize={{ minRows: 2, maxRows: 6 }} autoSize={{ minRows: 2, maxRows: 6 }}
/>)} />)}
</Form.Item> </Form.Item>
</Form> </Form>
......
...@@ -206,7 +206,7 @@ class ChangeCourse extends React.Component { ...@@ -206,7 +206,7 @@ class ChangeCourse extends React.Component {
})( })(
<TextArea <TextArea
placeholder="请输入上课内容" placeholder="请输入上课内容"
autosize={{ minRows: 2, maxRows: 6 }} autoSize={{ minRows: 2, maxRows: 6 }}
/>)} />)}
</Form.Item> </Form.Item>
</Form> </Form>
......
...@@ -46,7 +46,7 @@ class AddCourseTime extends React.Component { ...@@ -46,7 +46,7 @@ class AddCourseTime extends React.Component {
</Col> </Col>
<Col lg={{ span: 19 }} md={{ span: 20 }} xs={{ span: 24 }} style={{ }}> <Col lg={{ span: 19 }} md={{ span: 20 }} xs={{ span: 24 }} style={{ }}>
{timeArr && timeArr.map(ele => ( {timeArr && timeArr.map(ele => (
<div key={ele.start_time} className={pageStyle.timeitem}> <div key={ele.id} className={pageStyle.timeitem}>
<span className={pageStyle.itemContent}>{ele.start_time}{ele.end_time}</span> <span className={pageStyle.itemContent}>{ele.start_time}{ele.end_time}</span>
<Icon onClick={() => delTime(ele)} type="close-circle" theme="twoTone" style={{ color: '#FF5252', fontSize: '12px' }} twoToneColor="#FF5252" /> <Icon onClick={() => delTime(ele)} type="close-circle" theme="twoTone" style={{ color: '#FF5252', fontSize: '12px' }} twoToneColor="#FF5252" />
</div> </div>
......
...@@ -106,7 +106,7 @@ class CommentEditorBox extends React.Component { ...@@ -106,7 +106,7 @@ class CommentEditorBox extends React.Component {
</div> </div>
</div> </div>
<div className={pageStyle.textareabox}> <div className={pageStyle.textareabox}>
<TextArea autosize={() => true} maxlength={500} className={pageStyle.textareabox} value={commentParams.common.content} onChange={contentChange} style={{ minHeight: '100px' }} /> <TextArea autoSize={() => true} maxlength={500} className={pageStyle.textareabox} value={commentParams.common.content} onChange={contentChange} style={{ minHeight: '100px' }} />
<div className={pageStyle.wordcount}>{commentParams.common.content.length}/500</div> <div className={pageStyle.wordcount}>{commentParams.common.content.length}/500</div>
</div> </div>
<div className={pageStyle.shortwordbox}> <div className={pageStyle.shortwordbox}>
...@@ -183,7 +183,7 @@ class CommentEditorBox extends React.Component { ...@@ -183,7 +183,7 @@ class CommentEditorBox extends React.Component {
{privitecommentOpen && {privitecommentOpen &&
<div> <div>
<div className={pageStyle.textareabox}> <div className={pageStyle.textareabox}>
<TextArea maxlength={500} autosize={() => true} value={commentParams.privite.content} className={pageStyle.textareabox} onChange={priviteContentChange} style={{ minHeight: '100px' }} /> <TextArea maxlength={500} autoSize={() => true} value={commentParams.privite.content} className={pageStyle.textareabox} onChange={priviteContentChange} style={{ minHeight: '100px' }} />
<div className={pageStyle.wordcount}>{commentParams.privite.content.length}/500</div> <div className={pageStyle.wordcount}>{commentParams.privite.content.length}/500</div>
</div> </div>
{((commentParams.privite.audio && commentParams.privite.audio.length > 0) || commentParams.privite.audio.src) && {((commentParams.privite.audio && commentParams.privite.audio.length > 0) || commentParams.privite.audio.src) &&
......
...@@ -427,8 +427,8 @@ class StaticCenter extends React.Component { ...@@ -427,8 +427,8 @@ class StaticCenter extends React.Component {
<div style={{ width: '100%', height: '450px' }}> <div style={{ width: '100%', height: '450px' }}>
<Chart <Chart
data={dv} data={dv}
width="1000" width={1000}
height="400" height={400}
scale={cols} scale={cols}
padding="auto" padding="auto"
forceFit forceFit
......
...@@ -55,7 +55,7 @@ class ThemeEditor extends React.Component { ...@@ -55,7 +55,7 @@ class ThemeEditor extends React.Component {
case 'text': case 'text':
return ( return (
<div className={pageStyle.textWrap}> <div className={pageStyle.textWrap}>
<TextArea autosize={{ minRows: 4, maxRows: 10 }} value={item.value} onChange={e => editorChange(e, index)} placeholder="请输入内容" style={{ width: 560 }} maxLength={500} /> <TextArea autoSize={{ minRows: 4, maxRows: 10 }} value={item.value} onChange={e => editorChange(e, index)} placeholder="请输入内容" style={{ width: 560 }} maxLength={500} />
<div className={pageStyle.sizeNumber}>{item.value.length}/500</div> <div className={pageStyle.sizeNumber}>{item.value.length}/500</div>
<div className={pageStyle.toolList}> <div className={pageStyle.toolList}>
{ index === 0 && <div aria-disabled="true" className={pageStyle.noup}><img src={upImg} alt="" /> </div> } { index === 0 && <div aria-disabled="true" className={pageStyle.noup}><img src={upImg} alt="" /> </div> }
......
...@@ -141,8 +141,8 @@ class SchoolInfoEditorForm extends React.Component { ...@@ -141,8 +141,8 @@ class SchoolInfoEditorForm extends React.Component {
onCancel={this.handleCancel} onCancel={this.handleCancel}
cancelText="取消" cancelText="取消"
okText="确认" okText="确认"
width="1300px" width={1300}
height="666px" height={666}
bodyStyle={{ padding: '24px 0' }} bodyStyle={{ padding: '24px 0' }}
> >
<ChoosePosition /> <ChoosePosition />
......
...@@ -192,7 +192,7 @@ class LoginForm extends React.Component { ...@@ -192,7 +192,7 @@ class LoginForm extends React.Component {
{ required: true, message: '请输入您遇到的问题!' }, { required: true, message: '请输入您遇到的问题!' },
], ],
})( })(
<TextArea placeholder="请输入你遇到的问题" autosize />, <TextArea placeholder="请输入你遇到的问题" autoSize />,
)} )}
</FormItem>} </FormItem>}
<FormItem> <FormItem>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment