|
|
@@ -162,7 +162,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="" width="50">
|
|
|
<template #default="{ row }">
|
|
|
- <el-link type="primary" @click="handLocation(row, 3)">定位</el-link>
|
|
|
+ <el-link type="primary" @click="handleLocation(row, 3)">定位</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -220,7 +220,7 @@
|
|
|
<el-divider direction="vertical" />
|
|
|
<el-button type="text" class="el-icon-delete" @click="handDelNote(item.id)"> 删除</el-button>
|
|
|
<el-divider direction="vertical" />
|
|
|
- <el-button type="text" class="el-icon-place" @click="handLocation(item, 1)"> 定位</el-button>
|
|
|
+ <el-button type="text" class="el-icon-place" @click="handleLocation(item, 1)"> 定位</el-button>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -235,7 +235,7 @@
|
|
|
<div class="remark-bottom">
|
|
|
<el-button type="text" class="el-icon-delete" @click="handDelCollect(item.id)"> 删除</el-button>
|
|
|
<el-divider direction="vertical" />
|
|
|
- <el-button type="text" class="el-icon-place" @click="handLocation(item, 2)"> 定位</el-button>
|
|
|
+ <el-button type="text" class="el-icon-place" @click="handleLocation(item, 2)"> 定位</el-button>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -430,7 +430,7 @@ export default {
|
|
|
component_list: [],
|
|
|
content_group_row_list: [],
|
|
|
remark_list: [],
|
|
|
- remark_list_obj: {}, // 存放以组件为对象的数组
|
|
|
+ remark_list_obj: {}, // 存放以组件为对象的批注数组
|
|
|
searchList: [],
|
|
|
searchContent: '',
|
|
|
visible: false,
|
|
|
@@ -907,15 +907,15 @@ export default {
|
|
|
behavior: 'smooth',
|
|
|
});
|
|
|
},
|
|
|
- handLocation(item, type) {
|
|
|
- if (type == 3) {
|
|
|
- var did = item.courseware_id + '#' + item.component_id;
|
|
|
+ handleLocation(item, type) {
|
|
|
+ if (type === 3) {
|
|
|
+ let did = `${item.courseware_id}#${item.component_id}`;
|
|
|
this.handleNodeClick(did);
|
|
|
return;
|
|
|
}
|
|
|
- if (this.$refs.courserware && this.$refs.courserware.handLocation) {
|
|
|
+ if (this.$refs.courserware && this.$refs.courserware.handleLocation) {
|
|
|
item.type = type;
|
|
|
- this.$refs.courserware.handLocation(item);
|
|
|
+ this.$refs.courserware.handleLocation(item);
|
|
|
}
|
|
|
},
|
|
|
async getNote(params) {
|