Commit 24e3717f authored by baixian's avatar baixian

优化

parent 27484d0a
......@@ -17,6 +17,6 @@
</head>
<body>
<div id="root"></div>
<script src="dist/main.js?1576036639318" charset="utf-8"></script>
<script src="dist/main.js?1576059303826" charset="utf-8"></script>
</body>
</html>
\ No newline at end of file
......@@ -873,13 +873,13 @@ class CallStudentsForm extends React.Component {
<span className={pageStyle.detailtitle}><img src={`${__IMGCDN__}callstudent/icon_3.png`} alt="" />总课时:</span>
<span className={pageStyle.detaildesc}>{classDetail.total}</span>
</Col>
<Col xs={{ span: 24 }} sm={{ span: 12 }} md={{ span: 12 }} lg={{ span: 6 }} style={{ marginBottom: '20px' }}>
<Col xs={{ span: 24 }} sm={{ span: 12 }} md={{ span: 12 }} lg={{ span: 12 }} style={{ marginBottom: '20px' }}>
<span className={pageStyle.detailtitle}><img src={`${__IMGCDN__}callstudent/icon_1.png`} alt="" />备注:</span>
<span className={pageStyle.detaildesc}>{classDetail.remark}</span>
</Col>
</Row>
</div>}
<Row>
<Row style={{ marginTop: 12 }}>
<Col xs={{ span: 24 }} sm={{ span: 24 }} md={{ span: 24 }} lg={{ span: 18 }}>
{canAddStudent &&
<Row type="flex">
......
......@@ -100,7 +100,7 @@ class LeaveDetailModal extends React.Component {
</div>
<div className={pageStyle.right}>
<div className={pageStyle.rightNum}>{detail.student.leave_count}</div>
<div className={pageStyle.rightTip}>历史请假(次)</div>
<div className={pageStyle.rightTip}>历史请假()</div>
</div>
</div>
<div className={pageStyle.modalBody}>
......
......@@ -10,7 +10,7 @@
font-size: 20px;
font-family: PingFang SC;
font-weight: bold;
color: rgba(255, 255, 255, 1);
color: #929292;
position: absolute;
right: 0;
bottom: 0;
......@@ -25,7 +25,7 @@
overflow: hidden;
font-size: 0;
line-height: 0;
border-color: transparent #FFAD1F transparent transparent;
border-color: transparent #EBEBEB transparent transparent;
border-style: solid solid dashed dashed;
border-width: 100px 100px 0 0;
bottom: -20px;
......@@ -56,7 +56,7 @@
overflow: hidden;
font-size: 0;
line-height: 0;
border-color:transparent #35BAFD transparent transparent;
border-color:transparent #2DBD5B transparent transparent;
border-style:solid solid dashed dashed;
border-width:100px 100px 0 0 ;
bottom: -20px;
......@@ -73,7 +73,7 @@
font-size:20px;
font-family:PingFang SC;
font-weight:bold;
color:#929292;
color:#fff;
position: absolute;
right: 0;
bottom: 0;
......@@ -87,7 +87,7 @@
overflow: hidden;
font-size: 0;
line-height: 0;
border-color:transparent #EBEBEB transparent transparent;
border-color:transparent #FF3A3A transparent transparent;
border-style:solid solid dashed dashed;
border-width:100px 100px 0 0 ;
bottom: -20px;
......
......@@ -636,6 +636,13 @@ export default {
callBack(callStudentSchedule.id);
}
} else {
yield put({
type: 'queryLeaveList',
payload: {
params: {
},
},
});
yield put({
type: 'webapp/errorrequestresolve',
payload: {
......@@ -669,6 +676,7 @@ export default {
payload: {
leaveList: data.data.list,
leaveTotal: newTotal,
leaveParams: { ...newParams },
},
});
} else {
......
......@@ -443,14 +443,14 @@ export default {
loading = message.loading('课表加载中...', 0);
}
let newScheduleListTotal = scheduleListTotal;
const newScheduleListQueryParams = Object.assign(scheduleListQueryParams, params, {
const newScheduleListQueryParams = Object.assign(scheduleListQueryParams, {
school_id: sid,
course_id: classDetail.course_id,
class_id: classId,
start_time: showWeekDayObj.weekFirstDay,
end_time: showWeekDayObj.weekLastDay,
sort_type: 1,
});
}, params);
const queryScheduleListData = yield call(schedulemgtAjax.scheduleList, newScheduleListQueryParams);
if (action != 'init') {
setTimeout(loading);
......@@ -841,7 +841,6 @@ export default {
},
* tabChange({ payload }, { call, put, select }) {
const { tab } = payload;
console.log(tab, 'tabtabtabtabtab');
yield put({
type: 'updateState',
payload: {
......
import { connect } from 'dva';
import React from 'react';
import { message, Icon, Button, Row, Col, Input, Select, Table, Tabs, Form, Modal, Radio, Pagination, Tooltip } from 'antd';
import { message, Icon, Button, Row, Col, Input, Select, Table, Tabs, Form, Modal, Radio, Pagination, Tooltip, DatePicker } from 'antd';
import moment from 'moment';
import EditClassModal from '../classmgt/EditClassModal';
import ClassRoomMgt from '../classmgt/classRoomMgt';
import AddCourseTime from './AddCourseTime';
......@@ -19,6 +20,7 @@ const { Option } = Select;
const { TextArea } = Input;
const FormItem = Form.Item;
const { Group } = Radio;
const { RangePicker } = DatePicker;
class ClassDetailForm extends React.Component {
constructor(props) {
super(props);
......@@ -980,6 +982,18 @@ class ClassDetailForm extends React.Component {
},
});
}
onRangePickerChange = (dates, dateStrings) => {
const { dispatch } = this.props;
dispatch({
type: 'classdetail/queryScheduleList',
payload: {
params: {
start_time: dateStrings[0],
end_time: dateStrings[1],
},
},
});
}
render() {
const { getFieldDecorator } = this.props.form;
const {
......@@ -1666,6 +1680,17 @@ class ClassDetailForm extends React.Component {
<Button icon="left" style={{ marginRight: '15px' }} onClick={() => this.searchSchedule('pre')}>上周</Button>
<Button style={{ marginRight: '15px' }} onClick={() => this.searchSchedule('current')}>本周</Button>
<Button icon="right" style={{ marginRight: '40px' }} onClick={() => this.searchSchedule('next')}>下周</Button>
<span>自定义:</span>
<RangePicker
format="YYYY-MM-DD"
ranges={{
' 最近7天': [moment().subtract(6, 'days'), moment()],
' 最近三十天 ': [moment().subtract(29, 'days'), moment()],
}}
onChange={this.onRangePickerChange}
style={{ width: 280, marginRight: 15 }}
value={[moment(scheduleListQueryParams.start_time, 'YYYY-MM-DD'), moment(scheduleListQueryParams.end_time, 'YYYY-MM-DD')]}
/>
{hasBtnPower('sjd/classdetail', 'noPlanCallStudent') && <Button className={pageStyle.resetcourse} type="primary" onClick={this.toQuickCallStudents}>未排课直接点名</Button>}
</Col>
</Row>
......
@import '../../less/variables.less';
.container {
background-color: #fff;
border-radius: 6px;
}
.headerbox {
padding: 19px 0 34px 16px;
......
......@@ -2,6 +2,7 @@
.container {
background-color: #fff;
padding-bottom: 30px;
border-radius: 6px;
}
.headerbox {
padding: 30px 0 0 34px;
......
......@@ -151,7 +151,7 @@ class StudentLeaveModal extends React.Component {
render: (text, record) => {
return (
<div>
<span>{text}</span> <br />
<span>{record.schedule && record.schedule.class.title}</span> <br />
<span>
{
record.schedule ?
......
.tableBox {
margin-top: 35px;
margin-top: 24px;
}
.typeColor {
.typeColor1,.typeColor2,.typeColor3,.typeColor4 {
......@@ -12,18 +12,18 @@
}
}
.typeColor1 {
color: #FF3B3B;
background:rgba(255,59,59,0.1);
color: #00ADFC;
background:rgba(0,173,252,0.1);
}
.typeColor2 {
color: #2194FF;
background:rgba(33,148,255,0.1);
color: #2DBD5B;
background:rgba(45,189,91,0.1);
}
.typeColor3 {
color: #929292;
background:rgba(233,233,233,0.9);
color: #FF3B3B;
background:rgba(255,59,59,0.1);
}
.typeColor4 {
color: #FFAD1F;
background:rgba(255,209,68,0.1);
color: #929292;
background:rgba(233,233,233,0.9);
}
.container{
background: #fff;
border-radius: 6px;
}
.title{
font-size:16px;
......@@ -55,4 +56,4 @@
margin-bottom: 10px;
}
}
}
\ No newline at end of file
}
......@@ -4,4 +4,5 @@
padding: 12px 20px 24px 20px;
position: relative;
overflow-y: hidden;
border-radius: 6px;
}
......@@ -5,6 +5,7 @@
display: flex;
position: relative;
overflow-y: hidden;
border-radius: 6px;
}
.mobilecontainer {
width: 375px;
......@@ -19,7 +20,7 @@
// cursor: move;
cursor: pointer;
border: 1px dashed transparent;
}
.ContentBox.moduleSelect {
border:1px solid rgba(25,181,254,1);
......@@ -137,4 +138,4 @@
left: 0;
z-index: 2;
cursor: pointer;
}
\ No newline at end of file
}
......@@ -258,7 +258,6 @@ class StudentMgt extends React.Component {
}
renewCourse = (values) => {
const { dispatch } = this.props;
console.log(values, 'values');
dispatch({
type: 'studentsinfo/studentModelCoursesBuyOrRenew',
payload: {
......
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