diff --git a/public/react/src/common/educoder.js b/public/react/src/common/educoder.js
index 6f3284db2..8eb34ef55 100644
--- a/public/react/src/common/educoder.js
+++ b/public/react/src/common/educoder.js
@@ -70,3 +70,5 @@ export { CNotificationHOC as CNotificationHOC } from '../modules/courses/common/
export { default as ModalWrapper } from '../modules/courses/common/ModalWrapper'
export { default as NoneData } from '../modules/courses/coursesPublic/NoneData'
+export {default as WordNumberTextarea} from '../modules/modals/WordNumberTextarea'
+
diff --git a/public/react/src/modules/courses/coursesPublic/AccessoryModal.js b/public/react/src/modules/courses/coursesPublic/AccessoryModal.js
index 5541a01a6..0ea699ce9 100644
--- a/public/react/src/modules/courses/coursesPublic/AccessoryModal.js
+++ b/public/react/src/modules/courses/coursesPublic/AccessoryModal.js
@@ -1,9 +1,11 @@
import React,{ Component } from "react";
-import { Modal,Checkbox,Upload,Button,Icon,message,notification} from "antd";
-import { WordsBtn,getUrl, getUploadActionUrl} from 'educoder';
+import { Modal,Checkbox,Upload,Button,Icon,message,notification,Input} from "antd";
+import { WordsBtn,getUrl, getUploadActionUrl,WordNumberTextarea} from 'educoder';
import axios from 'axios';
import Modals from '../../modals/Modals';
+
const CheckboxGroup = Checkbox.Group;
+const { TextArea } = Input;
class AccessoryModal extends Component{
constructor(props){
@@ -258,7 +260,6 @@ class AccessoryModal extends Component{
},
};
-
return(
@@ -335,23 +336,24 @@ class AccessoryModal extends Component{
-
+ this.settextarea(e)}
+ thisValue={this.state.description}
+ startFontLength={description===undefined?0:description.length}
+ maxFontLength={100}
+ />
+
{
this.state.Errormessage && this.state.Errormessage === true ?
还未上传附件
- :
+ : ""
}
{this.state.updatas===true?请上传附件:""}
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js
index 425441acf..4036a0a99 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js
@@ -379,7 +379,7 @@ class GraduationTasksedit extends Component{
{getFieldDecorator('name', {
rules: [{ required: true, message: "请输入标题" }],
- })()}
+ })()}
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js
index 5c1acfb22..6247f54c2 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js
@@ -384,7 +384,7 @@ class GraduationTasksnew extends Component {
rules: [{required: true, message: "不能为空"}],
})()}
+ suffix={String(title_num)+"/60"}/>)}
diff --git a/public/react/src/modules/modals/WordNumberTextarea.css b/public/react/src/modules/modals/WordNumberTextarea.css
new file mode 100644
index 000000000..59ed95038
--- /dev/null
+++ b/public/react/src/modules/modals/WordNumberTextarea.css
@@ -0,0 +1,42 @@
+.WordNumberTextarea {
+ outline: none; /* 去掉输入字符时的默认样式 */
+ appearance:none;
+ -webkit-appearance:none;
+ -moz-appearance:none;
+ background-color: white;
+ text-shadow: none;
+ -webkit-writing-mode: horizontal-tb !important;
+ -webkit-tap-highlight-color:rgba(0,0,0,0);
+ resize:none; /*禁止拉伸*/
+ border: none; /*去掉默认边框*/
+ width: 100%;
+ height:150px;
+ border:none;
+ padding: 10px;
+ display: block;
+}
+
+.WordNumbernote {
+ padding: 0;
+ margin: 0;
+ list-style: none;
+ text-decoration: none;
+ box-sizing: border-box;
+ overflow: hidden;
+ height: auto;
+ border: 1px solid rgba(234,234,234,1);
+ border-radius: 0.125rem;
+ margin: 0.31rem;
+ padding: 0.19rem;
+ backgroud:rgba(234,234,234,1);
+ padding-bottom: 10px;
+ padding-right: 10px;
+
+}
+.WordNumberTextarea-count {
+ display: inline-block;
+ float: right;
+ font-size: 0.28rem;
+ color: #adadad;
+ padding-right: 0.25rem;
+}
\ No newline at end of file
diff --git a/public/react/src/modules/modals/WordNumberTextarea.js b/public/react/src/modules/modals/WordNumberTextarea.js
new file mode 100644
index 000000000..7f5a0288b
--- /dev/null
+++ b/public/react/src/modules/modals/WordNumberTextarea.js
@@ -0,0 +1,22 @@
+import React, { Component } from 'react';
+import './WordNumberTextarea.css';
+class WordNumberTextarea extends Component {
+ constructor(props) {
+ super(props);
+ }
+render() {
+ return(
+
+ )
+ }
+}
+
+export default WordNumberTextarea;
\ No newline at end of file