|
@@ -972,12 +972,10 @@ export default {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
if (content_group_row_list) this.content_group_row_list = JSON.parse(content_group_row_list) || [];
|
|
if (content_group_row_list) this.content_group_row_list = JSON.parse(content_group_row_list) || [];
|
|
|
-
|
|
|
|
|
- // 保留未缩放的原始组件数据,字号缩放时都从原始数据重新派生,避免多次缩放叠加
|
|
|
|
|
- this.raw_component_list = this.component_list;
|
|
|
|
|
- this.applyFontScale();
|
|
|
|
|
|
|
+ this.getCoursewareAuditRemarkList(id, requestConfig);
|
|
|
})
|
|
})
|
|
|
.catch((error) => {
|
|
.catch((error) => {
|
|
|
|
|
+ this.getCoursewareAuditRemarkList(id, requestConfig);
|
|
|
if (this.isCanceledRequest(error)) return null;
|
|
if (this.isCanceledRequest(error)) return null;
|
|
|
throw error;
|
|
throw error;
|
|
|
});
|
|
});
|
|
@@ -1052,7 +1050,6 @@ export default {
|
|
|
const requestConfig = { signal: requestController.signal };
|
|
const requestConfig = { signal: requestController.signal };
|
|
|
this.getCoursewareComponentContent_View(nodeId, requestConfig);
|
|
this.getCoursewareComponentContent_View(nodeId, requestConfig);
|
|
|
this.getBookCoursewareInfo(nodeId, requestConfig);
|
|
this.getBookCoursewareInfo(nodeId, requestConfig);
|
|
|
- this.getCoursewareAuditRemarkList(nodeId, requestConfig);
|
|
|
|
|
this.select_node = nodeId;
|
|
this.select_node = nodeId;
|
|
|
},
|
|
},
|
|
|
// 审核批注列表
|
|
// 审核批注列表
|
|
@@ -1082,6 +1079,15 @@ export default {
|
|
|
items.icon_type = 'file';
|
|
items.icon_type = 'file';
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ if (item.is_component_position === 'true' && item.component_id) {
|
|
|
|
|
+ let point = this.$refs.courseware.getComponentPosition(item.component_id);
|
|
|
|
|
+ if (point) {
|
|
|
|
|
+ item.position_x += point.x;
|
|
|
|
|
+ item.position_y += point.y;
|
|
|
|
|
+ item.position_br_x += point.x;
|
|
|
|
|
+ item.position_br_y += point.y;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
this.remark_list = remark_list;
|
|
this.remark_list = remark_list;
|
|
|
if (!remark_list) return;
|
|
if (!remark_list) return;
|
|
@@ -1099,7 +1105,7 @@ export default {
|
|
|
throw error;
|
|
throw error;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- addRemark(selectNode, x, y, br_x, br_y, componentId, content_select) {
|
|
|
|
|
|
|
+ addRemark(selectNode, x, y, br_x, br_y, componentId, content_select, flag) {
|
|
|
this.remark = {
|
|
this.remark = {
|
|
|
remark_content: '',
|
|
remark_content: '',
|
|
|
file_id_list: [],
|
|
file_id_list: [],
|
|
@@ -1113,6 +1119,7 @@ export default {
|
|
|
br_y,
|
|
br_y,
|
|
|
componentId,
|
|
componentId,
|
|
|
content_select,
|
|
content_select,
|
|
|
|
|
+ flag,
|
|
|
};
|
|
};
|
|
|
} else {
|
|
} else {
|
|
|
this.menuPosition = {
|
|
this.menuPosition = {
|
|
@@ -1141,6 +1148,7 @@ export default {
|
|
|
position_br_y: this.menuPosition.br_y,
|
|
position_br_y: this.menuPosition.br_y,
|
|
|
content_select: this.menuPosition.content_select,
|
|
content_select: this.menuPosition.content_select,
|
|
|
file_id_list: this.remark.file_id_list,
|
|
file_id_list: this.remark.file_id_list,
|
|
|
|
|
+ is_component_position: this.menuPosition.flag ? 'true' : 'false',
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
this.submit_loading = false;
|
|
this.submit_loading = false;
|