Commit 71c88ce3 by yanglang123

修改

parent e8d740e5
No preview for this file type
......@@ -16,11 +16,11 @@ class Editor extends PureComponent {
super(...arguments);
this.state = {
editorState: "",
defaultValue: "",
defaultValue: "111",
};
}
componentDidMount() {
const { importContent } = this.props;
// const { importContent } = this.props;
// if (importContent) {
// return {
// defaultValue: BraftEditor.createEditorState(importContent),
......
......@@ -312,6 +312,7 @@ class InfoComment extends React.Component {
this.props.getcommentlist({
trainingProjectId: this.props.id,
pageNo: page,
bizType:2,
pageSize: pageSize,
});
}
......@@ -320,6 +321,7 @@ class InfoComment extends React.Component {
this.setState({ pageSize: size });
this.props.getcommentlist({
trainingProjectId: this.props.id,
bizType:2,
pageNo: this.state.pageNo,
pageSize: size,
});
......@@ -327,7 +329,6 @@ class InfoComment extends React.Component {
render() {
const { value } = this.state;
const { commentlist } = this.props;
console.log(commentlist, "**&*&*&*&*&*&*&commentlist*&*&*&*&*&*&");
return (
<div className={styles.comment}>
<div className={styles.mar40}>
......@@ -361,6 +362,7 @@ class InfoComment extends React.Component {
showTotal={this.showTotal}
showSizeChanger
showQuickJumper
defaultCurrent={1}
defaultPageSize={20}
pageSizeOptions={["20", "30", "40", "50"]}
onChange={this.handlePageChange}
......
......@@ -54,7 +54,9 @@ class addEdit extends React.Component {
}
componentDidMount() {
const { seeEdit, type, treeData } = this.props;
// console.log(this.props.keyValue,seeEdit.content,'查看是否有缓存')
this.props.getMenu({
code: "topic_type",
});
......@@ -79,7 +81,6 @@ class addEdit extends React.Component {
//多媒体组件事件
getEditorHtml = editor => {
console.log(editor);
this.props.onEditor(editor);
};
//标签组件事件
......@@ -107,7 +108,6 @@ class addEdit extends React.Component {
//上传文件
beforeUpload(file, fileList) {
console.log("检测打印变量=file ", file);
if (file.size > 1024 * 1024 * 50) {
message.error("上传最大限制50mb以内");
return;
......@@ -174,7 +174,6 @@ class addEdit extends React.Component {
//文章类型事件
loadData = (value, selectedOption) => {
console.log("selectedOptions===", value, selectedOption);
this.setState({
noticeOrNews: selectedOption[0].label,
});
......
......@@ -847,6 +847,7 @@ class Information extends React.Component {
_this.setState({
record: _this.props.tableList,
total: _this.props.tableList.total,
editor: "",
});
}
);
......@@ -884,6 +885,7 @@ class Information extends React.Component {
_this.setState({
record: _this.props.tableList,
total: _this.props.tableList.total,
editor: "",
});
}
);
......
......@@ -166,7 +166,7 @@ class Banner extends Component {
// id: func.getUrlParam(location.search, "id"),
id: history.state.state.id,
pageNo: 1,
pageSize: 5,
pageSize: 10,
},
data => {
let { total = 0, current = 0, size = 10 } = data;
......
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