Commit 7ecd6c5f authored by zhengke's avatar zhengke

修改

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