mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-09 19:06:49 +08:00
feat(layout): 登录登出及菜单权限处理
- 重构了侧边栏菜单的渲染逻辑,支持多级菜单 -优化了菜单项的样式和布局,提高了可读性和美观性- 增加了菜单项的点击事件处理,实现了菜单的动态展开和收缩 -调整了菜单项的路径处理方式,支持动态生成菜单路径- 优化了菜单项的激活状态管理,提高了用户体验
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
<template>
|
||||
<el-dialog :visible.sync="visible" :title="title" :append-to-body="appendToBody" :destroy-on-close="destroyOnClose"
|
||||
:width="width" :before-close="handleBeforeClose">
|
||||
<el-dialog
|
||||
:visible.sync="visible"
|
||||
:title="title"
|
||||
:append-to-body="appendToBody"
|
||||
:destroy-on-close="destroyOnClose"
|
||||
:width="width"
|
||||
:before-close="handleBeforeClose"
|
||||
>
|
||||
<div class="render-dialog-body">
|
||||
<slot name="default"></slot>
|
||||
</div>
|
||||
<div slot="footer">
|
||||
<slot name="footer">
|
||||
<el-button size="medium" @click="cancel">{{ cancelButtonText }}</el-button>
|
||||
<el-button size="medium" type="primary" @click="confirm">{{ confirmButtonText }}</el-button>
|
||||
<el-button size="medium" @click="cancel">{{
|
||||
cancelButtonText
|
||||
}}</el-button>
|
||||
<el-button size="medium" type="primary" @click="confirm">{{
|
||||
confirmButtonText
|
||||
}}</el-button>
|
||||
</slot>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@@ -33,7 +43,7 @@ export default {
|
||||
},
|
||||
beforeClose: {
|
||||
type: Function,
|
||||
default: () => { }
|
||||
default: () => {}
|
||||
},
|
||||
visible: {
|
||||
type: Boolean,
|
||||
@@ -68,8 +78,8 @@ export default {
|
||||
this.beforeClose()
|
||||
}
|
||||
},
|
||||
created() { },
|
||||
mounted() { },
|
||||
created() {},
|
||||
mounted() {},
|
||||
computed: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -21,9 +21,17 @@ export default {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<iframe id="iframe" frameborder="0"
|
||||
:src="`${iframeSrc}/pdfjs-dist/web/viewer.html?file=${encodeURIComponent(getPdfUrl({ documentId: id }))}`"
|
||||
class="miner-u" style="width: 100%; height: 800px;"></iframe>
|
||||
<iframe
|
||||
id="iframe"
|
||||
frameborder="0"
|
||||
:src="
|
||||
`${iframeSrc}/pdfjs-dist/web/viewer.html?file=${encodeURIComponent(
|
||||
getPdfUrl({ documentId: id })
|
||||
)}`
|
||||
"
|
||||
class="miner-u"
|
||||
style="width: 100%; height: 800px;"
|
||||
></iframe>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user