|
@@ -26,6 +26,8 @@
|
|
|
:component-list="component_list"
|
|
|
:background="background"
|
|
|
:can-remark="isTrue(courseware_info.is_my_audit_task) && isTrue(courseware_info.is_can_add_audit_remark)"
|
|
|
+ :show-remark="isShowAudit"
|
|
|
+ :component-remark-obj="remark_list_obj"
|
|
|
@computeScroll="computeScroll"
|
|
|
@addRemark="addRemark"
|
|
|
ref="courserware"
|
|
@@ -146,6 +148,7 @@ export default {
|
|
|
data: { row_list: [] },
|
|
|
component_list: [],
|
|
|
remark_list: [],
|
|
|
+ remark_list_obj: {}, // 存放转为以组件为对象的数组
|
|
|
visible: false,
|
|
|
remark_content: '',
|
|
|
submit_loading: false,
|
|
@@ -232,10 +235,20 @@ export default {
|
|
|
// 审校批注列表
|
|
|
getCoursewareAuditRemarkList(id) {
|
|
|
this.remark_list = [];
|
|
|
+ this.remark_list_obj = {};
|
|
|
GetCoursewareAuditRemarkList({
|
|
|
courseware_id: id,
|
|
|
}).then(({ remark_list }) => {
|
|
|
this.remark_list = remark_list;
|
|
|
+ remark_list.forEach((item) => {
|
|
|
+ // 组件的审批
|
|
|
+ if (item.component_id !== 'WHOLE') {
|
|
|
+ if (!this.remark_list_obj[item.component_id]) {
|
|
|
+ this.remark_list_obj[item.component_id] = [];
|
|
|
+ }
|
|
|
+ this.remark_list_obj[item.component_id].push(item);
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
addRemark(selectNode, x, y, componentId) {
|