Commit ff3de35e authored by 黄奎's avatar 黄奎

页面修改

parent e5d9a183
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<template> <template>
<div class="sortingProblemQuestion"> <div class="sortingProblemQuestion">
<table v-if="data&&data.length>0" class="common_TiTable"> <table v-if="data&&data.length>0" class="common_TiTable">
<tr v-for="(item,index) in data[0]"> <tr v-for="(item,index) in data[0]" :key="index">
<td style="width:40px;text-align:center;"> <td style="width:40px;text-align:center;">
{{item.Name}} {{item.Name}}
</td> </td>
......
...@@ -336,7 +336,8 @@ ...@@ -336,7 +336,8 @@
||ChooseItem.QuestionTypeKey=='calculation' || ChooseItem.QuestionTypeKey=='spoken'|| ChooseItem.QuestionTypeKey=='other' ||ChooseItem.QuestionTypeKey=='calculation' || ChooseItem.QuestionTypeKey=='spoken'|| ChooseItem.QuestionTypeKey=='other'
" :setOption="ChooseItem"> </short-answer> " :setOption="ChooseItem"> </short-answer>
<!--分录题、资料题--> <!--分录题、资料题-->
<entry-problem v-if="ChooseItem.QuestionTypeKey=='entry-problem'|| ChooseItem.Key=='data-question'" <entry-problem
v-if="ChooseItem.QuestionTypeKey=='entry-problem'|| ChooseItem.QuestionTypeKey=='data-question'"
:questionData="ChooseItem.QuestionContentObj" :setOption="ChooseItem" @getChild="getChildData"> :questionData="ChooseItem.QuestionContentObj" :setOption="ChooseItem" @getChild="getChildData">
</entry-problem> </entry-problem>
<!--连线题--> <!--连线题-->
...@@ -894,6 +895,19 @@ ...@@ -894,6 +895,19 @@
} }
} }
} }
if (this.DataObj.GroupList[k].DetailsList[j].QuestionContentObj.length > 0) {
for (let p = 0; p < this.DataObj.GroupList[k].DetailsList[j].QuestionContentObj[1].length; p++) {
if (this.DataObj.GroupList[k].DetailsList[j].QuestionContentObj[1][p].Content == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `${this.DataObj.GroupList[k].GroupName}${j+1}题第二组第${p+1}行数据内容为空!`
})
result = false;
return;
}
}
}
} }
} }
//单选题 多选题 //单选题 多选题
...@@ -1007,6 +1021,31 @@ ...@@ -1007,6 +1021,31 @@
} }
} }
} }
//排序题
if (this.DataObj.GroupList[k].QuestionTypeKey == 'sorting-problem') {
for (let i = 0; i < this.DataObj.GroupList[k].DetailsList.length; i++) {
if (this.DataObj.GroupList[k].DetailsList[i].Title == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `${this.DataObj.GroupList[k].GroupName}${i+1}题标题为空!`
})
result = false;
return;
}
for (let j = 0; j < this.DataObj.GroupList[k].DetailsList[i].QuestionContentObj[0].length; j++) {
if (this.DataObj.GroupList[k].DetailsList[i].QuestionContentObj[0][j].Content == '') {
this.$q.notify({
type: 'negative',
position: "top",
message: `请填写${this.DataObj.GroupList[k].GroupName}${i+1}题选项!`
})
result = false;
return;
}
}
}
}
} }
return result; return result;
}, },
......
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