|
|
|
@ -106,7 +106,18 @@ class Listjihe extends Component {
|
|
|
|
|
const quotess =items&&items.quotes&&items.quotes;
|
|
|
|
|
const authors=items&&items.author&&items.author.name;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let Periofters = false;
|
|
|
|
|
let Perioftersbols=false;
|
|
|
|
|
if (this.props) {
|
|
|
|
|
if (this.props.current_user) {
|
|
|
|
|
if (this.props.current_user.admin) {
|
|
|
|
|
Periofters = true;
|
|
|
|
|
}
|
|
|
|
|
else if (this.props.current_user.business) {
|
|
|
|
|
Perioftersbols = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return (
|
|
|
|
|
<div className={" borderwdsst pd20 mb20 intermediatecenter listjihecolor "} >
|
|
|
|
|
{
|
|
|
|
@ -206,7 +217,43 @@ class Listjihe extends Component {
|
|
|
|
|
</p>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
:""}
|
|
|
|
|
:Periofters===true?
|
|
|
|
|
<div className="w35s xaxisreverseorder">
|
|
|
|
|
<p className="viewparsings xiaoshou mr25 " onClick={()=>this.props.showmodelysl(items.id)}>
|
|
|
|
|
<i className="iconfont icon-shanchu1 font-17 lg ml7 lh30 icontianjiadaohangcolors mr5"></i>
|
|
|
|
|
<span>删除</span>
|
|
|
|
|
</p>
|
|
|
|
|
{
|
|
|
|
|
this.props.Isitapopup&&this.props.Isitapopup==="true"?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<a >
|
|
|
|
|
<p className="viewparsings xiaoshou mr25 " onClick={()=>this.props.Testpapereditor(items.id)}>
|
|
|
|
|
<i className="iconfont icon-bianji2 font-17 lg ml7 lh30 icontianjiadaohangcolors mr5"></i>
|
|
|
|
|
<span>编辑</span>
|
|
|
|
|
</p>
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
:Perioftersbols===true?
|
|
|
|
|
<div className="w35s xaxisreverseorder">
|
|
|
|
|
{
|
|
|
|
|
this.props.Isitapopup&&this.props.Isitapopup==="true"?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<a >
|
|
|
|
|
<p className="viewparsings xiaoshou mr25 " onClick={()=>this.props.Testpapereditor(items.id)}>
|
|
|
|
|
<i className="iconfont icon-bianji2 font-17 lg ml7 lh30 icontianjiadaohangcolors mr5"></i>
|
|
|
|
|
<span>编辑</span>
|
|
|
|
|
</p>
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|