Commit 9ee63012 by chengming

修改投票

parent a004dab0
...@@ -308,11 +308,11 @@ class TreeItem extends React.Component { ...@@ -308,11 +308,11 @@ class TreeItem extends React.Component {
className={Styles.pmEditIcon} className={Styles.pmEditIcon}
onClick={() => this.showModal("2")} onClick={() => this.showModal("2")}
/> />
<Icon {/* <Icon
type="delete" type="delete"
className={Styles.pmEditIcon} className={Styles.pmEditIcon}
onClick={() => this.onDelete()} onClick={() => this.onDelete()}
/> /> */}
</span> </span>
) )
: ""} : ""}
...@@ -868,7 +868,7 @@ class Information extends React.Component { ...@@ -868,7 +868,7 @@ class Information extends React.Component {
parentID={this.state.ificationList} parentID={this.state.ificationList}
postAddNewsLists={this.AddNewsList} postAddNewsLists={this.AddNewsList}
postEditNewsLists={this.EditNewsLists} postEditNewsLists={this.EditNewsLists}
newsDelete={this.onNewsDelete} // newsDelete={this.onNewsDelete}
onTableList={this.onTableList} onTableList={this.onTableList}
/> />
} }
...@@ -888,7 +888,7 @@ class Information extends React.Component { ...@@ -888,7 +888,7 @@ class Information extends React.Component {
parentID={this.state.ificationList} parentID={this.state.ificationList}
postAddNewsLists={this.AddNewsList} postAddNewsLists={this.AddNewsList}
postEditNewsLists={this.EditNewsLists} postEditNewsLists={this.EditNewsLists}
newsDelete={this.onNewsDelete} // newsDelete={this.onNewsDelete}
onTableList={this.onTableList} onTableList={this.onTableList}
/> />
} }
...@@ -909,7 +909,7 @@ class Information extends React.Component { ...@@ -909,7 +909,7 @@ class Information extends React.Component {
parentID={this.state.ificationList} parentID={this.state.ificationList}
postAddNewsLists={this.AddNewsList} postAddNewsLists={this.AddNewsList}
postEditNewsLists={this.EditNewsLists} postEditNewsLists={this.EditNewsLists}
newsDelete={this.onNewsDelete} // newsDelete={this.onNewsDelete}
onTableList={this.onTableList} onTableList={this.onTableList}
/> />
} }
...@@ -929,7 +929,7 @@ class Information extends React.Component { ...@@ -929,7 +929,7 @@ class Information extends React.Component {
parentID={this.state.ificationList} parentID={this.state.ificationList}
postAddNewsLists={this.AddNewsList} postAddNewsLists={this.AddNewsList}
postEditNewsLists={this.EditNewsLists} postEditNewsLists={this.EditNewsLists}
newsDelete={this.onNewsDelete} // newsDelete={this.onNewsDelete}
onTableList={this.onTableList} onTableList={this.onTableList}
/> />
} }
...@@ -950,7 +950,7 @@ class Information extends React.Component { ...@@ -950,7 +950,7 @@ class Information extends React.Component {
parentID={this.state.ificationList} parentID={this.state.ificationList}
postAddNewsLists={this.AddNewsList} postAddNewsLists={this.AddNewsList}
postEditNewsLists={this.EditNewsLists} postEditNewsLists={this.EditNewsLists}
newsDelete={this.onNewsDelete} // newsDelete={this.onNewsDelete}
onTableList={this.onTableList} onTableList={this.onTableList}
/> />
} }
...@@ -972,7 +972,7 @@ class Information extends React.Component { ...@@ -972,7 +972,7 @@ class Information extends React.Component {
parentID={this.state.ificationList} parentID={this.state.ificationList}
postAddNewsLists={this.AddNewsList} postAddNewsLists={this.AddNewsList}
postEditNewsLists={this.EditNewsLists} postEditNewsLists={this.EditNewsLists}
newsDelete={this.onNewsDelete} // newsDelete={this.onNewsDelete}
onTableList={this.onTableList} onTableList={this.onTableList}
/> />
} }
......
...@@ -62,8 +62,8 @@ class SurveyAddactivity extends React.Component { ...@@ -62,8 +62,8 @@ class SurveyAddactivity extends React.Component {
this.props.onGetSurveyList({ this.props.onGetSurveyList({
pageNo: this.state.page, pageNo: this.state.page,
pageSize: this.state.pageSize, pageSize: this.state.pageSize,
name: this.state.value, name: '',
state: this.state.state, state: 1,
bizType: 2, bizType: 2,
}); });
} }
...@@ -141,9 +141,9 @@ class SurveyAddactivity extends React.Component { ...@@ -141,9 +141,9 @@ class SurveyAddactivity extends React.Component {
}); });
} }
render() { render() {
const { surveylist, activitylist } = this.props; const { surveylist, activitylist} = this.props;
const { selectedRowKeys } = this.state; const { selectedRowKeys } = this.state;
console.log(activitylist,surveylist,'222222222222'); console.log(activitylist,surveylist,'jiancce222222222222');
const rowSelection = { const rowSelection = {
selectedRowKeys, selectedRowKeys,
onChange: this.onSelectChange, onChange: this.onSelectChange,
......
...@@ -532,7 +532,8 @@ class DragSortingTable extends React.Component { ...@@ -532,7 +532,8 @@ class DragSortingTable extends React.Component {
]; ];
console.log( console.log(
"检测打印变量6666=this.state.activitylist ", "检测打印变量6666=this.state.activitylist ",
this.state.activitylist this.state.activitylist,
this.props.plansForTablePageData
); );
return ( return (
<div> <div>
......
...@@ -195,7 +195,7 @@ class DragSortingTable extends React.Component { ...@@ -195,7 +195,7 @@ class DragSortingTable extends React.Component {
pagePre: _this.props.planlist.slice(0, (pageNo - 1) * pageSize), pagePre: _this.props.planlist.slice(0, (pageNo - 1) * pageSize),
pageAfter: _this.props.planlist.slice(pageNo * pageSize), pageAfter: _this.props.planlist.slice(pageNo * pageSize),
}); });
console.log(_this.props.planlist,'_this.props.planlist') console.log(_this.props.planlist, '_this.props.planlist')
} }
); );
} }
...@@ -431,7 +431,7 @@ class DragSortingTable extends React.Component { ...@@ -431,7 +431,7 @@ class DragSortingTable extends React.Component {
this.setState({ loading: false }); this.setState({ loading: false });
return; return;
} }
console.log(this.state.plantype,'查看是否为关键数据') console.log(this.state.plantype, '查看是否为关键数据')
if (this.state.plantype === "新增计划") { if (this.state.plantype === "新增计划") {
this.props.onSavePaln(tpPlan, (code, msg) => { this.props.onSavePaln(tpPlan, (code, msg) => {
if (code === "1000") { if (code === "1000") {
...@@ -688,14 +688,7 @@ class DragSortingTable extends React.Component { ...@@ -688,14 +688,7 @@ class DragSortingTable extends React.Component {
key: "actions", key: "actions",
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
(this.props.title !== "查看项目" && (
<div> <div>
<a
style={{ marginLeft: "10px", color: "#00CCFF" }}
onClick={() => this.handleNew(record)}
>
{intl.get("Change") || "修改"}
</a>
<Popconfirm <Popconfirm
title="确定要删除吗?" title="确定要删除吗?"
okText={intl.get("Delete") || "删除"} okText={intl.get("Delete") || "删除"}
...@@ -706,42 +699,12 @@ class DragSortingTable extends React.Component { ...@@ -706,42 +699,12 @@ class DragSortingTable extends React.Component {
{intl.get("Delete") || "删除"} {intl.get("Delete") || "删除"}
</a> </a>
</Popconfirm> </Popconfirm>
{this.state.pageNo == 1 && index == 0 ? (
<a style={{ marginLeft: "10px", color: "#D9D9D9" }}>上移</a>
) : (
<a
style={{ marginLeft: "10px", color: "#00CCFF" }}
onClick={() => this.handleMove(record, "up")}
>
上移
</a>
)}
{index == this.props.planlist.length - 1 ? (
<a style={{ marginLeft: "10px", color: "#D9D9D9" }}>下移</a>
) : (
<a
style={{ marginLeft: "10px", color: "#00CCFF" }}
onClick={() => this.handleMove(record, "down")}
>
下移
</a>
)}
</div>
)) ||
(this.props.title === "查看项目" && (
<div>
<a
style={{ marginLeft: "10px", color: "#00CCFF" }}
onClick={() => this.handleNew(record)}
>
查看
</a>
</div> </div>
))
); );
}, },
}, },
]; ];
console.log(this.state.plansForTablePageData,'检测打印变量6666=this.state.plansForTablePageData ')
return ( return (
<div> <div>
{(this.state.addnew === 1 && ( {(this.state.addnew === 1 && (
......
...@@ -114,10 +114,6 @@ class TestModal extends Component { ...@@ -114,10 +114,6 @@ class TestModal extends Component {
required: true, required: true,
message: "请输入问题内容", message: "请输入问题内容",
}, },
{
max: 200,
message: "不能超过200个字符",
},
], ],
})(<TextArea rows={4} disabled={status === "look"} />)} })(<TextArea rows={4} disabled={status === "look"} />)}
</FormItem> </FormItem>
......
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