Commit c91fc94f by end

修改投票bug

parent 7f08f57f
...@@ -344,17 +344,19 @@ class Details extends Component { ...@@ -344,17 +344,19 @@ class Details extends Component {
render: (text, record) => ( render: (text, record) => (
<div style={{ display: "inline" }}> <div style={{ display: "inline" }}>
{this.state.isupdata == 1 && ( {this.state.isupdata == 1 && (
<a onClick={() => this.handleTestView(record)}>编辑</a> <div>
<a onClick={() => this.handleTestView(record)}>编辑</a>
<Popconfirm
title="是否删除?"
onConfirm={() => this.onDelete(record.id)}
>
<a style={{ marginLeft: "10px" }}>删除</a>
</Popconfirm>
</div>
)} )}
{this.state.isupdata == 2 && ( {this.state.isupdata == 2 && (
<a onClick={() => this.handleTestView1(record)}>查看</a> <a onClick={() => this.handleTestView1(record)}>查看</a>
)} )}
<Popconfirm
title="是否删除?"
onConfirm={() => this.onDelete(record.id)}
>
<a style={{ marginLeft: "10px" }}>删除</a>
</Popconfirm>
</div> </div>
), ),
}, },
...@@ -363,7 +365,9 @@ class Details extends Component { ...@@ -363,7 +365,9 @@ class Details extends Component {
<div> <div>
{details.name && ( {details.name && (
<div className="survey-details"> <div className="survey-details">
<Breadcrumb title="修改投票" /> <Breadcrumb
title={this.state.isupdata == 1 ? "修改投票" : "查看投票"}
/>
<p className="survey-details-title">基本信息</p> <p className="survey-details-title">基本信息</p>
{this.state.isupdata == 1 ? ( {this.state.isupdata == 1 ? (
<Base <Base
......
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