|
|
|
@ -2339,95 +2339,114 @@ class PollNew extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/*<Form {...formItemLayout} onSubmit={this.handleSubmit}>*/}
|
|
|
|
|
<div className="edu-back-white">
|
|
|
|
|
<div className="createPage bor-bottom-greyE">
|
|
|
|
|
<style>
|
|
|
|
|
{`
|
|
|
|
|
{
|
|
|
|
|
this.state.mysave === false ?
|
|
|
|
|
<div className="padding20-30" style={{ background: '#fff'}}>
|
|
|
|
|
<div className="displayTitle font-16">
|
|
|
|
|
<span>{this.state.polls_nametest}</span>
|
|
|
|
|
|
|
|
|
|
<a className="fr" onClick={() => { this.adddomeditit() }} style={{ lineHeight: '32px'}}>
|
|
|
|
|
<Tooltip title="编辑"><i className="iconfont icon-bianjidaibeijing font-20 color-green"></i></Tooltip>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="displayDescription color-grey-9" dangerouslySetInnerHTML={{__html: this.state.polls_descriptiontest}}
|
|
|
|
|
style={{whiteSpace: 'pre-wrap'}}
|
|
|
|
|
></div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
this.state.mysave === true ?
|
|
|
|
|
<div className="edu-back-white">
|
|
|
|
|
<div className="createPage bor-bottom-greyE">
|
|
|
|
|
<style>
|
|
|
|
|
{`
|
|
|
|
|
.ant-form-item-label{width:180px;}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<div style={{"color": "#212121", "font-size": "16px"}} className="fl"><span
|
|
|
|
|
style={{"color": "#f5222d"}}>*</span>问卷标题
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
this.props.match.params.news === undefined ? "" : this.props.match.params.news === "new" ?
|
|
|
|
|
(
|
|
|
|
|
this.state.mysave === false ?
|
|
|
|
|
<div className="fr">
|
|
|
|
|
<span><a onClick={() => this.adddomeditit()}><Tooltip title="编辑"><i
|
|
|
|
|
className="color-green font-18 iconfont icon-bianjidaibeijing"></i></Tooltip></a></span>
|
|
|
|
|
</div>
|
|
|
|
|
: "")
|
|
|
|
|
:
|
|
|
|
|
<div className="fr">
|
|
|
|
|
<div>
|
|
|
|
|
<div style={{"color": "#212121", "font-size": "16px"}} className="fl"><span
|
|
|
|
|
style={{"color": "#f5222d"}}>*</span>问卷标题
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
this.props.match.params.news === undefined ? "" : this.props.match.params.news === "new" ?
|
|
|
|
|
(
|
|
|
|
|
this.state.mysave === false ?
|
|
|
|
|
<div className="fr">
|
|
|
|
|
<span><a onClick={() => this.adddomeditit()}><Tooltip title="编辑"><i
|
|
|
|
|
className="color-green font-18 iconfont icon-bianjidaibeijing"></i></Tooltip></a></span>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
: "")
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<Input placeholder="请输入问卷标题,最大限制60个字符" maxLength="60"
|
|
|
|
|
style={{"margin-top": "15px", "text-align": "left"}}
|
|
|
|
|
onInput={this.changeTopicName}
|
|
|
|
|
readOnly={readOnlys}
|
|
|
|
|
autoComplete="off" addonAfter={String(addonAfter)}
|
|
|
|
|
value={this.state.polls_nametest}
|
|
|
|
|
className="searchViewAfter"></Input>
|
|
|
|
|
|
|
|
|
|
<Input placeholder="请输入问卷标题,最大限制60个字符" maxLength="60"
|
|
|
|
|
style={{"margin-top": "15px", "text-align": "left"}}
|
|
|
|
|
onInput={this.changeTopicName}
|
|
|
|
|
readOnly={readOnlys}
|
|
|
|
|
autoComplete="off" addonAfter={String(addonAfter)}
|
|
|
|
|
value={this.state.polls_nametest}
|
|
|
|
|
className="searchViewAfter"></Input>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div style={{
|
|
|
|
|
"padding": "20px 30px 50px",
|
|
|
|
|
"position": "relative",
|
|
|
|
|
"border-bottom": "1px solid #EDEDED",
|
|
|
|
|
"margin-bottom": " 0px"
|
|
|
|
|
}}>
|
|
|
|
|
<style>
|
|
|
|
|
{`
|
|
|
|
|
</div>
|
|
|
|
|
<div style={{
|
|
|
|
|
"padding": "20px 30px 50px",
|
|
|
|
|
"position": "relative",
|
|
|
|
|
"border-bottom": "1px solid #EDEDED",
|
|
|
|
|
"margin-bottom": " 0px"
|
|
|
|
|
}}>
|
|
|
|
|
<style>
|
|
|
|
|
{`
|
|
|
|
|
.ant-form-item-label{width:80px;}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<div style={{"color": "#212121", "font-size": "16px"}}>问卷须知</div>
|
|
|
|
|
<div style={{"color": "#212121", "font-size": "16px"}}>问卷须知</div>
|
|
|
|
|
|
|
|
|
|
<TextArea placeholder="请输入本次问卷答题的相关说明,最大限制100个字符"
|
|
|
|
|
style={{"height": "120px", "margin-top": "15px", "text-align": "left"}}
|
|
|
|
|
maxLength="100"
|
|
|
|
|
readOnly={readOnlys}
|
|
|
|
|
onInput={this.changeTopicNametwo}
|
|
|
|
|
value={this.state.polls_descriptiontest}
|
|
|
|
|
autoComplete="off" addonAfter={"100"}></TextArea>
|
|
|
|
|
{
|
|
|
|
|
this.state.Newedit === true || this.state.mysave === true ?
|
|
|
|
|
<div>
|
|
|
|
|
<Button type="primary" onClick={this.onSaveExercise} className=" fr "
|
|
|
|
|
style={{
|
|
|
|
|
"margin-top": "10px",
|
|
|
|
|
"height": "32px",
|
|
|
|
|
"width": " 70px",
|
|
|
|
|
"font-size": "14px",
|
|
|
|
|
"line-height": " 30px",
|
|
|
|
|
}}>保存</Button>
|
|
|
|
|
{cancellation === false ?
|
|
|
|
|
<Button onClick={this.onSaveExercisetwo} className="defalutCancelbtn fr mr20 "
|
|
|
|
|
style={{
|
|
|
|
|
"margin-top": "10px",
|
|
|
|
|
"height": "32px",
|
|
|
|
|
"width": " 70px",
|
|
|
|
|
"font-size": "14px",
|
|
|
|
|
"line-height": " 30px"
|
|
|
|
|
}}>取消</Button>
|
|
|
|
|
: ""}
|
|
|
|
|
<TextArea placeholder="请输入本次问卷答题的相关说明,最大限制100个字符"
|
|
|
|
|
style={{"height": "120px", "margin-top": "15px", "text-align": "left"}}
|
|
|
|
|
maxLength="100"
|
|
|
|
|
readOnly={readOnlys}
|
|
|
|
|
onInput={this.changeTopicNametwo}
|
|
|
|
|
value={this.state.polls_descriptiontest}
|
|
|
|
|
autoComplete="off" addonAfter={"100"}></TextArea>
|
|
|
|
|
{
|
|
|
|
|
this.state.Newedit === true || this.state.mysave === true ?
|
|
|
|
|
<div>
|
|
|
|
|
<Button type="primary" onClick={this.onSaveExercise} className=" fr "
|
|
|
|
|
style={{
|
|
|
|
|
"margin-top": "10px",
|
|
|
|
|
"height": "32px",
|
|
|
|
|
"width": " 70px",
|
|
|
|
|
"font-size": "14px",
|
|
|
|
|
"line-height": " 30px",
|
|
|
|
|
}}>保存</Button>
|
|
|
|
|
{cancellation === false ?
|
|
|
|
|
<Button onClick={this.onSaveExercisetwo} className="defalutCancelbtn fr mr20 "
|
|
|
|
|
style={{
|
|
|
|
|
"margin-top": "10px",
|
|
|
|
|
"height": "32px",
|
|
|
|
|
"width": " 70px",
|
|
|
|
|
"font-size": "14px",
|
|
|
|
|
"line-height": " 30px"
|
|
|
|
|
}}>取消</Button>
|
|
|
|
|
: ""}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
: ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
: ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<p className="clearfix padding20-30 color-grey-9">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2507,7 +2526,7 @@ class PollNew extends Component {
|
|
|
|
|
{item.question.answers === undefined ? "" : item.question.answers.map((items, i) => {
|
|
|
|
|
return (
|
|
|
|
|
<div className="h20 pt20" style={{"clear": "both"}}>
|
|
|
|
|
<Radio value={i} className={"fl"} style={{"text-align": "left"}}></Radio>
|
|
|
|
|
<Radio value={i} className={"fl"} style={{"text-align": "left",marginTop:"3px"}}></Radio>
|
|
|
|
|
{/*<pre className={"break_word flex1 fl"}*/}
|
|
|
|
|
{/* style={{"text-align": "left"}}>{items.answer_text}</pre>*/}
|
|
|
|
|
{/*<span className={"break_word flex1"}><pre className={"break_word flex1"}>{items.answer_text}</pre> </span>*/}
|
|
|
|
|