|
@@ -200,10 +200,12 @@ function createBasicQuestion(dataList) {
|
|
// 大题结构特征
|
|
// 大题结构特征
|
|
function createBasicMainQuestion(dataList) {
|
|
function createBasicMainQuestion(dataList) {
|
|
var hTmpl = $("#basic-main-question-table").html();
|
|
var hTmpl = $("#basic-main-question-table").html();
|
|
- var $dom = tmpl(hTmpl, {
|
|
|
|
- dataList: dataList
|
|
|
|
|
|
+ sectionArr(dataList, 33).forEach(function (item) {
|
|
|
|
+ var $dom = tmpl(hTmpl, {
|
|
|
|
+ dataList: item
|
|
|
|
+ });
|
|
|
|
+ $bodyMain.append(createNewBox($dom));
|
|
});
|
|
});
|
|
- $bodyMain.append(createNewBox($dom));
|
|
|
|
}
|
|
}
|
|
// 选项分析
|
|
// 选项分析
|
|
function createBasicQuestionOption(data) {
|
|
function createBasicQuestionOption(data) {
|
|
@@ -433,6 +435,7 @@ function groupSectionArrDynamic(arrayList, sectionMaxItemLength) {
|
|
var splitArr = [];
|
|
var splitArr = [];
|
|
var splitSectionItemLen = 0;
|
|
var splitSectionItemLen = 0;
|
|
var splitSectionArr = [];
|
|
var splitSectionArr = [];
|
|
|
|
+
|
|
arrayList.map(function (item) {
|
|
arrayList.map(function (item) {
|
|
var groupsList = [];
|
|
var groupsList = [];
|
|
item.groups.map(function (elem) {
|
|
item.groups.map(function (elem) {
|
|
@@ -454,8 +457,12 @@ function groupSectionArrDynamic(arrayList, sectionMaxItemLength) {
|
|
splitSectionArr.push({
|
|
splitSectionArr.push({
|
|
name: item.name,
|
|
name: item.name,
|
|
groups: groupsList
|
|
groups: groupsList
|
|
- })
|
|
|
|
|
|
+ });
|
|
|
|
+
|
|
});
|
|
});
|
|
|
|
+ if (splitSectionArr.length)
|
|
|
|
+ splitArr.push(splitSectionArr);
|
|
|
|
+
|
|
return splitArr;
|
|
return splitArr;
|
|
}
|
|
}
|
|
|
|
|