Commit d834f514 authored by baixian's avatar baixian

优化

parent 0328ee98
......@@ -17,7 +17,6 @@ import * as themeAjax from '../services/createtheme';
import * as classMgtAjax from '../services/classmgt';
import * as uploader from '../services/uploader';
import { calendar } from '../utils/calendar';
import * as goodsAjax from '../services/integral';
export default {
namespace: 'createtheme',
state: {
......@@ -437,7 +436,6 @@ export default {
const {
unClockLoading, stepNumber, emigratedObj,
} = yield select(state => state.createtheme);
console.log(emigratedObj, 'emigratedObj');
if (unClockLoading) {
return;
}
......@@ -466,7 +464,6 @@ export default {
id: emigratedObj.unlock_mode_id,
...emigratedObj,
};
console.log(newParams, 'newParams');
const postFunction = (newParams.id != undefined) && newParams.id !== 0 ? themeAjax.EditEmigrated : themeAjax.addEmigrated;
const data = yield call(postFunction, Object.assign(newParams, {
title,
......@@ -567,8 +564,6 @@ export default {
if (newParams.school) {
delete newParams.school;
}
console.log(newParams, 'newParams');
console.log(emigratedObj, 'emigratedObj');
const loadmessage = message.loading('保存中...', 0);
const postFunction = (newParams.id != undefined) && newParams.id !== 0 ? themeAjax.editTheme : themeAjax.addTheme;
const data = yield call(postFunction, Object.assign(newParams, {
......
......@@ -55,7 +55,7 @@ class ThemeEditor extends React.Component {
case 'text':
return (
<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="请输入打卡主题的具体要求,如:演唱歌曲《小小少年》 演唱歌曲《小小少年》,具体要求 1.跟随伴奏唱一段副歌 2.视频录下唱歌过程 3.上传歌唱视频打卡成功 如果有该歌曲示例视频,你可以点击上传视频,供学员参考。" style={{ width: 560 }} maxLength={500} />
<div className={pageStyle.sizeNumber}>{item.value.length}/500</div>
<div className={pageStyle.toolList}>
{ index === 0 && <div aria-disabled="true" className={pageStyle.noup}><img src={upImg} alt="" /> </div> }
......
......@@ -2,6 +2,9 @@
background-color: #fff;
padding: 20px;
position: relative;
min-width: 1200px;
border-radius: 2px;
overflow-y: hidden;
}
.title {
font-size:16px;
......
......@@ -232,7 +232,7 @@ class JobClockForm extends React.Component {
},
};
const selectBefore = (
<div>{jobParams.title ? jobParams.title.length : title.length || 0}/20</div>
<div>{ jobParams.title ? jobParams.title.length : title.length || 0}/20</div>
);
const dateFormat = 'YYYY/MM/DD HH:mm';
return (
......
......@@ -2,6 +2,9 @@
background-color: #fff;
padding: 20px;
position: relative;
min-width: 1200px;
border-radius: 2px;
overflow-y: hidden;
}
.title {
font-size:16px;
......
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