dev_jupyter
杨树林 5 years ago
parent 7cf6064ce8
commit 8c7be3c4d8

@ -403,8 +403,8 @@ class Itembankstop extends Component {
const _result =[]; const _result =[];
this.state.knowledgepoints.filter(item => { this.state.knowledgepoints.filter(item => {
if (this.state.Knowpoints.findIndex(t => t.id === item.id) === -1) { if (this.state.Knowpoints.findIndex(t => t.id === item.id) === -1) {
console.log("guonue"); // console.log("guonue");
console.log(item); // console.log(item);
_result.push(item); _result.push(item);
} }
}); });
@ -718,30 +718,30 @@ class Itembankstop extends Component {
</div> </div>
)} )}
</Form.Item> </Form.Item>
{
<div className="sortinxdirection huanhan w100s mt15" style={{ this.state.Knowpoints===undefined||this.state.Knowpoints===null?"":
minHeight: "33px", this.state.Knowpoints.length>0?
lineHeight: "28px", <div className="sortinxdirection huanhan w100s mt15" style={{
minHeight: "33px",
}}> lineHeight: "28px",
{this.state.Knowpoints === undefined ? "" : this.state.Knowpoints.map((object, index) => {
return (
<div key={index} className={index===0?"mytags mb20":"mytags"} style={{
position: "relative",
}}> }}>
<p className="w100s stestcen lh32">{object.name}</p> {this.state.Knowpoints === undefined ? "" : this.state.Knowpoints.map((object, index) => {
return (
<img className=" ml7 zjzsdian xiaoshou icondowncolorssy" onClick={() => this.deletesobject(object, index)} src={getImageUrl("images/educoder/bzucha.png")}/> <div key={index} className={index===0?"mytags mb20":"mytags"} style={{
position: "relative",
}}>
<p className="w100s stestcen lh32">{object.name}</p>
<img className=" ml7 zjzsdian xiaoshou icondowncolorssy" onClick={() => this.deletesobject(object, index)} src={getImageUrl("images/educoder/bzucha.png")}/>
</div>
)
})}
</div> </div>
) :
})} ""
}
</div>
<Form.Item <Form.Item
label="题型" label="题型"

@ -699,29 +699,29 @@ class Comthetestpaperst extends Component {
)} )}
</Form.Item> </Form.Item>
</div> </div>
<div className="sortinxdirection huanhan w100s mt15" style={{ {
height: "33px", this.state.Knowpoints===undefined||this.state.Knowpoints===null?"":
lineHeight: "28px", this.state.Knowpoints.length>0?
<div className="sortinxdirection huanhan w100s mt15" style={{
}}> minHeight: "33px",
lineHeight: "28px",
{this.state.Knowpoints === undefined ? "" : this.state.Knowpoints.map((object, index) => {
return (
<div key={index} className="mytags" style={{
position: "relative",
}}> }}>
<p className="w100s stestcen lh32">{object.name}</p> {this.state.Knowpoints === undefined ? "" : this.state.Knowpoints.map((object, index) => {
return (
<img className=" ml7 zjzsdian xiaoshou icondowncolorssy" onClick={() => this.deletesobject(object, index)} src={getImageUrl("/images/educoder/bzucha.png")}/> <div key={index} className={index===0?"mytags mb20":"mytags"} style={{
position: "relative",
}}>
<p className="w100s stestcen lh32">{object.name}</p>
<img className=" ml7 zjzsdian xiaoshou icondowncolorssy" onClick={() => this.deletesobject(object, index)} src={getImageUrl("images/educoder/bzucha.png")}/>
</div>
)
})}
</div> </div>
) :
})} ""
}
</div>
<style> <style>
{ {
` `

Loading…
Cancel
Save