dev_aliyun_beta
杨树林 6 years ago
parent 7e54a2bf46
commit e1d59c9906

@ -407,7 +407,7 @@ class PollNewQuestbank extends Component {
} }
this.addMytopic(1, this.state.pollid, Insertposition, false, 0); this.addMytopic(1, this.state.pollid, Insertposition, false, 0);
// } this.scrollToAnchor("publishtimeid");
} }
//添加多选题目 //添加多选题目
@ -431,6 +431,7 @@ class PollNewQuestbank extends Component {
} }
this.addMytopic(2, this.state.pollid, Insertposition, false, 0); this.addMytopic(2, this.state.pollid, Insertposition, false, 0);
this.scrollToAnchor("publishtimeid");
// } // }
} }
@ -451,7 +452,7 @@ class PollNewQuestbank extends Component {
} }
this.addMytopic(3, this.state.pollid, Insertposition, false, 0); this.addMytopic(3, this.state.pollid, Insertposition, false, 0);
// } this.scrollToAnchor("publishtimeid");
} }
//编辑方法 //编辑方法
@ -2476,8 +2477,18 @@ class PollNewQuestbank extends Component {
// console.log("toWorkDetail"); // console.log("toWorkDetail");
this.props.history.push(`/banks/poll/${this.props.match.params.workid}`); this.props.history.push(`/banks/poll/${this.props.match.params.workid}`);
// this.props.initPublic(undefined); // this.props.initPublic(undefined);
};
//跳转道描点的地方
scrollToAnchor = (anchorName) => {
if (anchorName) {
// 找到锚点
let anchorElement = document.getElementById(anchorName);
// 如果对应id的锚点存在就跳转到锚点
if(anchorElement) { anchorElement.scrollIntoView(); }
}
} }
render() { render() {
let { let {
addonAfter, addonAfter,
@ -3473,17 +3484,17 @@ class PollNewQuestbank extends Component {
{/*新建单选多选2*/} {/*新建单选多选2*/}
<div className="myyslwidth"> <div className="myyslwidth" id={"publishtimeid"}>
{ {
this.state.Newdisplay === true ? this.state.Newdisplay === true ?
<div> <div>
{this.state.adddom === undefined ? "" : this.state.adddom.map((itemo, indexo) => { {this.state.adddom === undefined ? "": this.state.adddom.map((itemo, indexo) => {
// console.log('打印this.state.adddom') // console.log('打印this.state.adddom')
// console.log(this.state.adddom); // console.log(this.state.adddom);
let arrid = itemo.question.id; let arrid = itemo.question.id;
let resultDomtwo; let resultDomtwo;
resultDomtwo = resultDomtwo =
<div className="problemShow"> <div className="problemShow" >
<span className="color-grey-6">{itemo&&itemo.question&&itemo.question.question_number}</span> <span className="color-grey-6">{itemo&&itemo.question&&itemo.question.question_number}</span>
<span <span
id={"ceshiyong2"} id={"ceshiyong2"}
@ -3791,6 +3802,7 @@ class PollNewQuestbank extends Component {
</div> </div>
</div> </div>
<div <div
style={{ style={{
"width": "100%", "width": "100%",
@ -3804,7 +3816,7 @@ class PollNewQuestbank extends Component {
</div> </div>
{/*</Form>*/} {/*</Form>*/}
</div> </div>
<div ref='targetElement'></div> <div ref='targetElement' ></div>
</div> </div>
) )
} }

@ -862,19 +862,19 @@ class Trainingjobsetting extends Component {
var exams = parseFloat(Proportion.toFixed(1)); var exams = parseFloat(Proportion.toFixed(1));
var intk = srorelength*exams; var intk = srorelength*exams;
intkk=oushution - intk; intkk=oushution - intk;
console.log("奇数"); // console.log("奇数");
console.log(srorelength);//3 // console.log(srorelength);//3
console.log(oushution);//79 // console.log(oushution);//79
console.log(exams);//26.3 // console.log(exams);//26.3
console.log(intk);//78.9 // console.log(intk);//78.9
console.log(intkk); // console.log(intkk);
}else { }else {
// 偶数 // 偶数
var examsy =parseFloat(Proportion.toFixed(1)); var examsy =parseFloat(Proportion.toFixed(1));
intkks=oushution - (examsy*srorelength); intkks=oushution - (examsy*srorelength);
console.log("偶数"); // console.log("偶数");
console.log(oushution); // console.log(oushution);
console.log((examsy*srorelength)); // console.log((examsy*srorelength));
} }
var mact=0; var mact=0;

Loading…
Cancel
Save