Commit 71c88ce3 by yanglang123

修改

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