Commit 0189631b authored by zhengke's avatar zhengke

修改

parent 44168af2
...@@ -316,6 +316,9 @@ ...@@ -316,6 +316,9 @@
<li class="" style="cursor:pointer;" :class="{'checkUl':dIndex==ComCheckIndex&&gIndex==ComOneIndex}" <li class="" style="cursor:pointer;" :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>
<el-tag type="warning" size="mini" v-if="getRepeat(dItem.QuestionId)">与{{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>
...@@ -795,6 +798,7 @@ ...@@ -795,6 +798,7 @@
DetailsList: [], //问题列表 DetailsList: [], //问题列表
}); });
} }
console.log(this.DataObj,'Data');
this.DataObj.GroupList.forEach((gItem, gIndex) => { this.DataObj.GroupList.forEach((gItem, gIndex) => {
if (gItem.QuestionTypeId == qItem.QuestionTypeId) { if (gItem.QuestionTypeId == qItem.QuestionTypeId) {
if (!gItem.DetailsList) { if (!gItem.DetailsList) {
...@@ -1334,7 +1338,19 @@ ...@@ -1334,7 +1338,19 @@
this.AddQuestion(tempArray); this.AddQuestion(tempArray);
this.isShowQuestion = false; 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;
}
}
}
}
} }
} }
......
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