Former-commit-id: ff27d46edba89fcfa3054d87eb6ddf95a33bb563
This commit is contained in:
april
2023-08-24 09:46:39 +08:00
8 changed files with 45 additions and 25 deletions

View File

@@ -1,3 +1,9 @@
# 2.6.0 (2023/8/24)💥💥💥
### ✨ feat
- 导航顶部模式、混合模式支持author by [april-tong](https://april-tong.com/)
- 平台文档(内嵌)author by [april-tong](https://april-tong.com/)
# 2.5.0 (2023/8/8) # 2.5.0 (2023/8/8)
### ✨ feat ### ✨ feat

View File

@@ -1,7 +1,7 @@
{ {
"name": "vue3-element-admin", "name": "vue3-element-admin",
"private": true, "private": true,
"version": "2.5.0", "version": "2.6.0",
"scripts": { "scripts": {
"preinstall": "npx only-allow pnpm", "preinstall": "npx only-allow pnpm",
"dev": "vite serve --mode development", "dev": "vite serve --mode development",

View File

@@ -121,3 +121,9 @@ function resolvePath(routePath: string) {
</el-sub-menu> </el-sub-menu>
</div> </div>
</template> </template>
<style lang="scss" scoped>
:deep(.el-menu-item .el-menu-tooltip__trigger) {
width: auto !important;
}
</style>

View File

@@ -233,6 +233,7 @@ function toggleSideBar() {
.mix-wrap { .mix-wrap {
.el-menu { .el-menu {
width: $sideBarWidth; width: $sideBarWidth;
border: none;
} }
} }
} }

View File

@@ -47,7 +47,7 @@ const defaultSettings: DefaultSettings = {
tagsView: true, tagsView: true,
fixedHeader: false, fixedHeader: false,
sidebarLogo: true, sidebarLogo: true,
layout: "left", layout: "mix",
/** /**
* 主题模式 * 主题模式
* *

View File

@@ -47,7 +47,7 @@
} }
.svg-icon { .svg-icon {
margin-right: 16px; margin-right: 12px;
} }
.sub-el-icon { .sub-el-icon {
@@ -83,6 +83,13 @@
} }
} }
.left-wrap {
.svg-icon {
margin-top: -2px;
margin-right: 12px;
}
}
.hideSidebar { .hideSidebar {
.sidebar-container { .sidebar-container {
width: 54px !important; width: 54px !important;
@@ -174,7 +181,7 @@
.el-menu--vertical { .el-menu--vertical {
& > .el-menu { & > .el-menu {
.svg-icon { .svg-icon {
margin-right: 16px; margin-right: 12px;
} }
.sub-el-icon { .sub-el-icon {

View File

@@ -180,7 +180,7 @@ orderCount.value = 2000;
<!-- Echarts 图表 --> <!-- Echarts 图表 -->
<el-row :gutter="40"> <el-row :gutter="40">
<el-col :sm="24" :lg="8" class="mb-4"> <el-col :sm="24" :lg="8" class="mb-2">
<BarChart <BarChart
id="barChart" id="barChart"
height="400px" height="400px"
@@ -189,7 +189,7 @@ orderCount.value = 2000;
/> />
</el-col> </el-col>
<el-col :xs="24" :sm="12" :lg="8" class="mb-4"> <el-col :xs="24" :sm="12" :lg="8" class="mb-2">
<PieChart <PieChart
id="pieChart" id="pieChart"
height="400px" height="400px"
@@ -198,7 +198,7 @@ orderCount.value = 2000;
/> />
</el-col> </el-col>
<el-col :xs="24" :sm="12" :lg="8" class="mb-4"> <el-col :xs="24" :sm="12" :lg="8" class="mb-2">
<RadarChart <RadarChart
id="radarChart" id="radarChart"
height="400px" height="400px"

View File

@@ -294,13 +294,6 @@ function downloadTemplate() {
}); });
} }
/** 打开导入弹窗 */
async function openImportDialog() {
await getDeptOptions();
importDeptId.value = undefined;
importDialog.visible = true;
}
/** /**
* Excel文件change事件 * Excel文件change事件
* *
@@ -316,8 +309,22 @@ function handleExcelChange(file: UploadFile) {
excelFile.value = file.raw; excelFile.value = file.raw;
} }
/** 打开导入弹窗 */
async function openImportDialog() {
await getDeptOptions();
importDeptId.value = undefined;
importDialog.visible = true;
}
/** 关闭导入弹窗 */
function closeImportDialog() {
importDialog.visible = false;
excelFile.value = undefined;
excelFilelist.value = [];
}
/** 导入用户提交 */ /** 导入用户提交 */
function handleUserImport() { function handleImport() {
if (importDeptId.value) { if (importDeptId.value) {
if (!excelFile.value) { if (!excelFile.value) {
ElMessage.warning("上传Excel文件不能为空"); ElMessage.warning("上传Excel文件不能为空");
@@ -331,15 +338,8 @@ function handleUserImport() {
} }
} }
/** 关闭导入弹窗 */
function closeImportDialog() {
importDialog.visible = false;
excelFile.value = undefined;
excelFilelist.value = [];
}
/** 导出用户 */ /** 导出用户 */
function handleUserExport() { function handleExport() {
exportUser(queryParams).then((response: any) => { exportUser(queryParams).then((response: any) => {
const blob = new Blob([response.data], { const blob = new Blob([response.data], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8", type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8",
@@ -457,7 +457,7 @@ onMounted(() => {
</el-dropdown-menu> </el-dropdown-menu>
</template> </template>
</el-dropdown> </el-dropdown>
<el-button class="ml-3" @click="handleUserExport" <el-button class="ml-3" @click="handleExport"
><template #icon><i-ep-download /></template>导出</el-button ><template #icon><i-ep-download /></template>导出</el-button
> >
</div> </div>
@@ -695,7 +695,7 @@ onMounted(() => {
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button type="primary" @click="handleUserImport"> </el-button> <el-button type="primary" @click="handleImport"> </el-button>
<el-button @click="closeImportDialog"> </el-button> <el-button @click="closeImportDialog"> </el-button>
</div> </div>
</template> </template>