Commit c91fc94f by end

修改投票bug

parent 7f08f57f
...@@ -344,11 +344,8 @@ class Details extends Component { ...@@ -344,11 +344,8 @@ 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 && (
<div>
<a onClick={() => this.handleTestView(record)}>编辑</a> <a onClick={() => this.handleTestView(record)}>编辑</a>
)}
{this.state.isupdata == 2 && (
<a onClick={() => this.handleTestView1(record)}>查看</a>
)}
<Popconfirm <Popconfirm
title="是否删除?" title="是否删除?"
onConfirm={() => this.onDelete(record.id)} onConfirm={() => this.onDelete(record.id)}
...@@ -356,6 +353,11 @@ class Details extends Component { ...@@ -356,6 +353,11 @@ class Details extends Component {
<a style={{ marginLeft: "10px" }}>删除</a> <a style={{ marginLeft: "10px" }}>删除</a>
</Popconfirm> </Popconfirm>
</div> </div>
)}
{this.state.isupdata == 2 && (
<a onClick={() => this.handleTestView1(record)}>查看</a>
)}
</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