|
@@ -181,8 +181,8 @@ export default class extends Page {
|
|
const { data } = this.state;
|
|
const { data } = this.state;
|
|
asyncForm('添加', this.onlineList, {}, info => {
|
|
asyncForm('添加', this.onlineList, {}, info => {
|
|
if (info.time.length > 0) {
|
|
if (info.time.length > 0) {
|
|
- info.startTime = info.time[0].format('YYYY-MM-DD HH:mm:ss');
|
|
+ info.startTime = info.time[0].format('YYYY-MM-DD');
|
|
- info.endTime = info.time[1].format('YYYY-MM-DD HH:mm:ss');
|
|
+ info.endTime = info.time[1].format('YYYY-MM-DD');
|
|
}
|
|
}
|
|
return Preview.addAssign(Object.assign({ paperModule: data.paperModule, paperId: data.id, courseModule: data.courseModule }, info)).then(() => {
|
|
return Preview.addAssign(Object.assign({ paperModule: data.paperModule, paperId: data.id, courseModule: data.courseModule }, info)).then(() => {
|
|
asyncSMessage('添加成功!');
|
|
asyncSMessage('添加成功!');
|
|
@@ -197,8 +197,8 @@ export default class extends Page {
|
|
const { data } = this.state;
|
|
const { data } = this.state;
|
|
asyncForm('添加', this.vsList, {}, info => {
|
|
asyncForm('添加', this.vsList, {}, info => {
|
|
if (info.time.length > 0) {
|
|
if (info.time.length > 0) {
|
|
- info.startTime = info.time[0].format('YYYY-MM-DD HH:mm:ss');
|
|
+ info.startTime = info.time[0].format('YYYY-MM-DD');
|
|
- info.endTime = info.time[1].format('YYYY-MM-DD HH:mm:ss');
|
|
+ info.endTime = info.time[1].format('YYYY-MM-DD');
|
|
}
|
|
}
|
|
return User.listCourseAppointment({ courseId: data.courseId, userId: info.userId, startTime: info.startTime, endTime: info.endTime }).then(result => {
|
|
return User.listCourseAppointment({ courseId: data.courseId, userId: info.userId, startTime: info.startTime, endTime: info.endTime }).then(result => {
|
|
if (result.total === 0) {
|
|
if (result.total === 0) {
|