Commit d834f514 authored by baixian's avatar baixian

优化

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