|
@@ -993,15 +993,22 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- handLocation(item, type) {
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 定位到对应位置
|
|
|
|
|
+ * @param {Object} item - 位置对象
|
|
|
|
|
+ * @param {number} type - 定位类型(1: 笔记定位, 2: 收藏定位, 3: 资源定位)
|
|
|
|
|
+ */
|
|
|
|
|
+ handleLocation(item, type) {
|
|
|
if (type === 3) {
|
|
if (type === 3) {
|
|
|
let did = `${item.courseware_id}#${item.component_id}`;
|
|
let did = `${item.courseware_id}#${item.component_id}`;
|
|
|
this.handleNodeClick(did);
|
|
this.handleNodeClick(did);
|
|
|
|
|
+ this.curSelectId = item.courseware_id;
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (this.$refs.courserware && this.$refs.courserware.handLocation) {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (this.$refs.courserware && this.$refs.courserware.handleLocation) {
|
|
|
item.type = type;
|
|
item.type = type;
|
|
|
- this.$refs.courserware.handLocation(item);
|
|
|
|
|
|
|
+ this.$refs.courserware.handleLocation(item);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
async getNote(params) {
|
|
async getNote(params) {
|