|
@@ -49,6 +49,18 @@
|
|
</ul>
|
|
</ul>
|
|
<p v-else style="text-align: center">暂无批注</p>
|
|
<p v-else style="text-align: center">暂无批注</p>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <div class="sidebar">
|
|
|
|
+ <div
|
|
|
|
+ v-for="{ icon, title, handle } in sidebarIconList"
|
|
|
|
+ :key="icon"
|
|
|
|
+ :title="title"
|
|
|
|
+ class="sidebar-icon"
|
|
|
|
+ @click="handleSidebarClick(handle)"
|
|
|
|
+ >
|
|
|
|
+ <SvgIcon :icon-class="`sidebar-${icon}`" size="24" />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<el-dialog
|
|
<el-dialog
|
|
@@ -158,6 +170,17 @@ export default {
|
|
y: -1,
|
|
y: -1,
|
|
componentId: 'WHOLE',
|
|
componentId: 'WHOLE',
|
|
},
|
|
},
|
|
|
|
+ sidebarIconList: [
|
|
|
|
+ { icon: 'search', title: '搜索', handle: '' },
|
|
|
|
+ { icon: 'mindmap', title: '思维导图', handle: 'openMindMap' },
|
|
|
|
+ { icon: 'connect', title: '连接', handle: '' },
|
|
|
|
+ { icon: 'audio', title: '音频', handle: '' },
|
|
|
|
+ { icon: 'image', title: '图片', handle: '' },
|
|
|
|
+ { icon: 'video', title: '视频', handle: '' },
|
|
|
|
+ { icon: 'text', title: '文本', handle: '' },
|
|
|
|
+ { icon: 'collect', title: '收藏', handle: '' },
|
|
|
|
+ { icon: 'setting', title: '设置', handle: '' },
|
|
|
|
+ ],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -313,6 +336,19 @@ export default {
|
|
this.select_node,
|
|
this.select_node,
|
|
);
|
|
);
|
|
},
|
|
},
|
|
|
|
+ /**
|
|
|
|
+ * 处理侧边栏图标点击事件
|
|
|
|
+ * @param {string} handle - 处理函数名
|
|
|
|
+ * @param {any} param - 处理函数参数
|
|
|
|
+ */
|
|
|
|
+ handleSidebarClick(handle, param) {
|
|
|
|
+ if (typeof handle === 'string' && handle && typeof this[handle] === 'function') {
|
|
|
|
+ this[handle](param);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ openMindMap() {
|
|
|
|
+ console.log('打开思维导图');
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -427,12 +463,12 @@ export default {
|
|
|
|
|
|
.audit-content {
|
|
.audit-content {
|
|
display: flex;
|
|
display: flex;
|
|
- column-gap: 20px;
|
|
|
|
min-width: 1400px;
|
|
min-width: 1400px;
|
|
height: calc(100vh - 175px);
|
|
height: calc(100vh - 175px);
|
|
|
|
|
|
.remark-list {
|
|
.remark-list {
|
|
width: 300px;
|
|
width: 300px;
|
|
|
|
+ margin-left: 20px;
|
|
overflow: auto;
|
|
overflow: auto;
|
|
border: 1px solid #e5e5e5;
|
|
border: 1px solid #e5e5e5;
|
|
|
|
|
|
@@ -477,6 +513,21 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .sidebar {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ row-gap: 16px;
|
|
|
|
+ align-items: center;
|
|
|
|
+ height: 100%;
|
|
|
|
+ padding: 12px 8px;
|
|
|
|
+ margin-left: 8px;
|
|
|
|
+ box-shadow: -4px 0 4px rgba(0, 0, 0, 10%);
|
|
|
|
+
|
|
|
|
+ &-icon {
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|