Commit 7ecd6c5f authored by zhengke's avatar zhengke

修改

parent 154b20e5
......@@ -146,7 +146,7 @@
}
.List-ul li:hover .exam_ListSHow {
display: block;
display: inline-block;
}
.left-btn-list {
......@@ -225,7 +225,7 @@
}
.exam_DetailList {
width: 80%;
width: 45%;
display: inline-block;
overflow: hidden;
white-space: nowrap;
......@@ -313,19 +313,19 @@
</div>
</div>
<ul class="List-ul" v-if="gItem.DetailsList&&gItem.DetailsList.length>0">
<li class="" style="cursor:pointer;" :class="{'checkUl':dIndex==ComCheckIndex&&gIndex==ComOneIndex}"
<li class="" style="cursor:pointer;position:relative;" :class="{'checkUl':dIndex==ComCheckIndex&&gIndex==ComOneIndex}"
v-for="(dItem,dIndex) in gItem.DetailsList" :key="dIndex" @click="ClickItem(dItem,gIndex,dIndex)">
({{dIndex+1}}) <span class="exam_DetailList" v-html="dItem.ShowTitle"></span>
<span>
<!-- <el-tag type="warning" size="mini" v-if="getRepeat(dItem.QuestionId)">与{{gIndex+1}}.1重复出现</el-tag> -->
</span>
<span class="exam_ListSHow">
<i class="iconfont icon-shangyi2" @click.stop="MoveChildItem(gIndex,dIndex,0)"
style="margin-right:5px;" v-if="dIndex!=0"></i>
<i class="iconfont icon-xiayi" @click.stop="MoveChildItem(gIndex,dIndex,1)"
v-if="dIndex!=gItem.DetailsList.length-1"></i>
<i class="iconfont icon-shanchu2" @click.stop="delExam(gItem.DetailsList,dItem,dIndex)"
style="margin-left:5px;font-size:17px;"></i>
<span style="position:absolute;right:5px;">
<el-tag type="warning" size="mini" style="margin-right:5px;" v-if="getRepeat(dItem.QuestionId,gItem.DetailsList)">与{{gIndex+1}}.1重复出现</el-tag>
<span class="exam_ListSHow">
<i class="iconfont icon-shangyi2" @click.stop="MoveChildItem(gIndex,dIndex,0)"
style="margin-right:5px;" v-if="dIndex!=0"></i>
<i class="iconfont icon-xiayi" style="margin-right:5px;" @click.stop="MoveChildItem(gIndex,dIndex,1)"
v-if="dIndex!=gItem.DetailsList.length-1"></i>
<i class="iconfont icon-shanchu2" @click.stop="delExam(gItem.DetailsList,dItem,dIndex)"
style="font-size:17px;"></i>
</span>
</span>
</li>
</ul>
......@@ -1338,16 +1338,18 @@
this.isShowQuestion = false;
},
//获取相同
getRepeat(QuestionId){
//console.log(QuestionId,'进入');
for(let i=0;i<this.DataObj.GroupList.length;i++){
for(let j=0;j<this.DataObj.GroupList[i].DetailsList.length;j++){
if(this.DataObj.GroupList[i].DetailsList[j].QuestionId==QuestionId){
return true;
}else{
return false;
}
getRepeat(QuestionId,Arr){
console.log(QuestionId,'进入');
console.log(this.DataObj,'this.DataObj');
console.log(Arr,'Arrrrrrrrr');
let Num=0;
Arr.forEach(x=>{
if (x.QuestionId == QuestionId) {
Num++;
}
})
if(Num>1){
return true
}
}
}
......
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