|
@@ -199,8 +199,6 @@ pageManager.prototype._mergeData = function () {
|
|
|
// 计数器
|
|
|
i++;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
|
|
|
}
|
|
|
return mergeArr;
|
|
@@ -315,8 +313,9 @@ pageManager.prototype.renderToDom = function () {
|
|
|
this.refreshToolBar('none');
|
|
|
});
|
|
|
this.refreshToolBar();
|
|
|
- $('body').on('getQuestion', (e,pageNum,domId) => {
|
|
|
- this.refreshToolBar(...[pageNum,domId]);
|
|
|
+ // 这个触发事件是获取所操作的小题号并且动态改变
|
|
|
+ $('body').on('getQuestion', (e,pageNum,content) => {
|
|
|
+ this.refreshToolBar(...[pageNum,content]);
|
|
|
});
|
|
|
console.log(pages);
|
|
|
};
|
|
@@ -339,6 +338,7 @@ pageManager.prototype._refreshPage = function () {
|
|
|
questions: doms[j].questions,
|
|
|
rectNo: doms[j].rectNo,
|
|
|
minHeight: doms[j].minHeight,
|
|
|
+ content: doms[j].content,
|
|
|
cdelete: 0
|
|
|
};
|
|
|
if(parseInt(item.rectNo) === nowRectNo) {
|
|
@@ -365,10 +365,10 @@ pageManager.prototype._refreshPage = function () {
|
|
|
/*
|
|
|
* function 刷新顶部菜单栏
|
|
|
*/
|
|
|
-pageManager.prototype.refreshToolBar = function(pNum = null,id) {
|
|
|
+pageManager.prototype.refreshToolBar = function(pNum = null, content) {
|
|
|
// 如果有参数说明要编辑题目
|
|
|
if(pNum){
|
|
|
- this.toolBar.setSubjectTitle(pNum,id);
|
|
|
+ this.toolBar.setSubjectTitle(pNum, content);
|
|
|
$('#toolbar').remove();
|
|
|
}
|
|
|
this.domBody.append(this.toolBar.toolbarContent());
|