fix: 🐛 移除unplugin-icon插件,避免vue-template-compiler编译器在某些机器引发的报错
This commit is contained in:
@@ -13,11 +13,15 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleQuery">
|
||||
<i-ep-search />
|
||||
<template #icon>
|
||||
<Search />
|
||||
</template>
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button @click="handleResetQuery">
|
||||
<i-ep-refresh />
|
||||
<template #icon>
|
||||
<Refresh />
|
||||
</template>
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
@@ -31,7 +35,9 @@
|
||||
v-hasPerm="['sys:config:add']"
|
||||
@click="handleOpenDialog()"
|
||||
>
|
||||
<i-ep-plus />
|
||||
<template #icon>
|
||||
<Plus />
|
||||
</template>
|
||||
新增
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -85,7 +91,9 @@
|
||||
v-hasPerm="['sys:config:update']"
|
||||
@click="handleOpenDialog(scope.row.id)"
|
||||
>
|
||||
<i-ep-edit />
|
||||
<template #icon>
|
||||
<Edit />
|
||||
</template>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -95,7 +103,9 @@
|
||||
v-hasPerm="['sys:config:delete']"
|
||||
@click="handleDelete(scope.row.id)"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<template #icon>
|
||||
<Delete />
|
||||
</template>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
@@ -23,11 +23,15 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button class="filter-item" type="primary" @click="handleQuery">
|
||||
<i-ep-search />
|
||||
<template #icon>
|
||||
<Search />
|
||||
</template>
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button @click="handleResetQuery">
|
||||
<i-ep-refresh />
|
||||
<template #icon>
|
||||
<Refresh />
|
||||
</template>
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
@@ -41,7 +45,9 @@
|
||||
type="success"
|
||||
@click="handleOpenDialog(0, undefined)"
|
||||
>
|
||||
<i-ep-plus />
|
||||
<template #icon>
|
||||
<Plus />
|
||||
</template>
|
||||
新增
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -50,7 +56,9 @@
|
||||
:disabled="ids.length === 0"
|
||||
@click="handleDelete()"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<template #icon>
|
||||
<Delete />
|
||||
</template>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
@@ -84,7 +92,9 @@
|
||||
size="small"
|
||||
@click.stop="handleOpenDialog(scope.row.id, undefined)"
|
||||
>
|
||||
<i-ep-plus />
|
||||
<template #icon>
|
||||
<Plus />
|
||||
</template>
|
||||
新增
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -94,7 +104,9 @@
|
||||
size="small"
|
||||
@click.stop="handleOpenDialog(scope.row.parentId, scope.row.id)"
|
||||
>
|
||||
<i-ep-edit />
|
||||
<template #icon>
|
||||
<Edit />
|
||||
</template>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -104,7 +116,9 @@
|
||||
size="small"
|
||||
@click.stop="handleDelete(scope.row.id)"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<template #icon>
|
||||
<Delete />
|
||||
</template>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
@@ -19,11 +19,15 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleQuery()">
|
||||
<i-ep-search />
|
||||
<template #icon>
|
||||
<Search />
|
||||
</template>
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button @click="handleResetQuery()">
|
||||
<i-ep-refresh />
|
||||
<template #icon>
|
||||
<Refresh />
|
||||
</template>
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
@@ -33,7 +37,9 @@
|
||||
<el-card shadow="never">
|
||||
<div class="mb-[10px]">
|
||||
<el-button type="success" @click="handleOpenDialog()">
|
||||
<i-ep-plus />
|
||||
<template #icon>
|
||||
<Plus />
|
||||
</template>
|
||||
新增
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -41,7 +47,9 @@
|
||||
:disabled="ids.length === 0"
|
||||
@click="handleDelete()"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<template #icon>
|
||||
<Delete />
|
||||
</template>
|
||||
删除
|
||||
</el-button>
|
||||
</div>
|
||||
@@ -73,7 +81,9 @@
|
||||
size="small"
|
||||
@click.stop="handleOpenDialog(scope.row)"
|
||||
>
|
||||
<i-ep-edit />
|
||||
<template #icon>
|
||||
<Edit />
|
||||
</template>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -82,7 +92,9 @@
|
||||
size="small"
|
||||
@click.stop="handleDelete(scope.row.id)"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<template #icon>
|
||||
<Delete />
|
||||
</template>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
@@ -13,12 +13,16 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleQuery()">
|
||||
<i-ep-search />
|
||||
<template #icon>
|
||||
<Search />
|
||||
</template>
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button @click="handleResetQuery()">
|
||||
<i-ep-refresh />
|
||||
重置
|
||||
<template #icon>
|
||||
<Refresh />
|
||||
重置
|
||||
</template>
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -27,7 +31,9 @@
|
||||
<el-card shadow="never">
|
||||
<div class="mb-[10px]">
|
||||
<el-button type="success" @click="handleAddClick()">
|
||||
<i-ep-plus />
|
||||
<template #icon>
|
||||
<Plus />
|
||||
</template>
|
||||
新增
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -35,7 +41,9 @@
|
||||
:disabled="ids.length === 0"
|
||||
@click="handleDelete()"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<template #icon>
|
||||
<Delete />
|
||||
</template>
|
||||
删除
|
||||
</el-button>
|
||||
</div>
|
||||
@@ -65,7 +73,9 @@
|
||||
size="small"
|
||||
@click.stop="handleOpenDictData(scope.row)"
|
||||
>
|
||||
<i-ep-Collection />
|
||||
<template #icon>
|
||||
<Collection />
|
||||
</template>
|
||||
字典数据
|
||||
</el-button>
|
||||
|
||||
@@ -75,7 +85,9 @@
|
||||
size="small"
|
||||
@click.stop="handleEditClick(scope.row.id, scope.row.name)"
|
||||
>
|
||||
<i-ep-edit />
|
||||
<template #icon>
|
||||
<Edit />
|
||||
</template>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -84,7 +96,9 @@
|
||||
size="small"
|
||||
@click.stop="handleDelete(scope.row.id)"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<template #icon>
|
||||
<Delete />
|
||||
</template>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
@@ -25,11 +25,15 @@
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleQuery">
|
||||
<i-ep-search />
|
||||
<template #icon>
|
||||
<Search />
|
||||
</template>
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button @click="handleResetQuery">
|
||||
<i-ep-refresh />
|
||||
<template #icon>
|
||||
<Refresh />
|
||||
</template>
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleQuery">
|
||||
<template #icon><i-ep-search /></template>
|
||||
<template #icon><Search /></template>
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button @click="handleResetQuery">
|
||||
<template #icon><i-ep-refresh /></template>
|
||||
<template #icon><Refresh /></template>
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
@@ -30,7 +30,7 @@
|
||||
type="success"
|
||||
@click="handleOpenDialog(0)"
|
||||
>
|
||||
<template #icon><i-ep-plus /></template>
|
||||
<template #icon><Plus /></template>
|
||||
新增
|
||||
</el-button>
|
||||
</template>
|
||||
@@ -133,7 +133,7 @@
|
||||
size="small"
|
||||
@click.stop="handleOpenDialog(scope.row.id)"
|
||||
>
|
||||
<i-ep-plus />
|
||||
<template #icon><Plus /></template>
|
||||
新增
|
||||
</el-button>
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
size="small"
|
||||
@click.stop="handleOpenDialog(undefined, scope.row.id)"
|
||||
>
|
||||
<i-ep-edit />
|
||||
<template #icon><Edit /></template>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -154,7 +154,7 @@
|
||||
size="small"
|
||||
@click.stop="handleDelete(scope.row.id)"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<template #icon><Delete /></template>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
@@ -217,14 +217,17 @@
|
||||
prop="routeName"
|
||||
>
|
||||
<template #label>
|
||||
<div>
|
||||
<div class="flex-y-center">
|
||||
路由名称
|
||||
<el-tooltip placement="bottom" effect="light">
|
||||
<template #content>
|
||||
如果需要开启缓存,需保证页面 defineOptions 中的 name
|
||||
与此处一致,建议使用驼峰。
|
||||
</template>
|
||||
<i-ep-QuestionFilled class="inline-block" />
|
||||
|
||||
<el-icon class="ml-1 cursor-pointer">
|
||||
<QuestionFilled />
|
||||
</el-icon>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</template>
|
||||
@@ -239,7 +242,7 @@
|
||||
prop="routePath"
|
||||
>
|
||||
<template #label>
|
||||
<div>
|
||||
<div class="flex-y-center">
|
||||
路由路径
|
||||
<el-tooltip placement="bottom" effect="light">
|
||||
<template #content>
|
||||
@@ -247,7 +250,9 @@
|
||||
开头,菜单项不用。例如:系统管理目录
|
||||
/system,系统管理下的用户管理菜单 user。
|
||||
</template>
|
||||
<i-ep-QuestionFilled class="inline-block" />
|
||||
<el-icon class="ml-1 cursor-pointer">
|
||||
<QuestionFilled />
|
||||
</el-icon>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</template>
|
||||
@@ -264,14 +269,16 @@
|
||||
prop="component"
|
||||
>
|
||||
<template #label>
|
||||
<div>
|
||||
<div class="flex-y-center">
|
||||
组件路径
|
||||
<el-tooltip placement="bottom" effect="light">
|
||||
<template #content>
|
||||
组件页面完整路径,相对于 src/views/,如
|
||||
system/user/index,缺省后缀 .vue
|
||||
</template>
|
||||
<i-ep-QuestionFilled class="inline-block" />
|
||||
<el-icon class="ml-1 cursor-pointer">
|
||||
<QuestionFilled />
|
||||
</el-icon>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</template>
|
||||
@@ -292,13 +299,15 @@
|
||||
|
||||
<el-form-item v-if="formData.type == MenuTypeEnum.MENU">
|
||||
<template #label>
|
||||
<div>
|
||||
<div class="flex-y-center">
|
||||
路由参数
|
||||
<el-tooltip placement="bottom" effect="light">
|
||||
<template #content>
|
||||
组件页面使用 `useRoute().query.参数名` 获取路由参数值。
|
||||
</template>
|
||||
<i-ep-QuestionFilled class="inline-block" />
|
||||
<el-icon class="ml-1 cursor-pointer">
|
||||
<QuestionFilled />
|
||||
</el-icon>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</template>
|
||||
@@ -370,7 +379,7 @@
|
||||
"
|
||||
>
|
||||
<template #label>
|
||||
<div>
|
||||
<div class="flex-y-center">
|
||||
始终显示
|
||||
<el-tooltip placement="bottom" effect="light">
|
||||
<template #content>
|
||||
@@ -380,7 +389,9 @@
|
||||
<br />
|
||||
如果是叶子节点,请选择“否”。
|
||||
</template>
|
||||
<i-ep-QuestionFilled class="inline-block" />
|
||||
<el-icon class="ml-1 cursor-pointer">
|
||||
<QuestionFilled />
|
||||
</el-icon>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</template>
|
||||
@@ -393,7 +404,7 @@
|
||||
|
||||
<el-form-item
|
||||
v-if="formData.type === MenuTypeEnum.MENU"
|
||||
label="页面缓存"
|
||||
label="缓存页面"
|
||||
>
|
||||
<el-radio-group v-model="formData.keepAlive">
|
||||
<el-radio :value="1">开启</el-radio>
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
</el-button>
|
||||
<!-- 关闭按钮 -->
|
||||
<el-button @click="handleClose" circle>
|
||||
<i-ep-Close />
|
||||
<template #icon>
|
||||
<Close />
|
||||
</template>
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -29,11 +29,11 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleQuery()">
|
||||
<i-ep-search />
|
||||
<Search />
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button @click="handleResetQuery()">
|
||||
<i-ep-refresh />
|
||||
<Refresh />
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
@@ -47,7 +47,7 @@
|
||||
type="success"
|
||||
@click="handleOpenDialog()"
|
||||
>
|
||||
<i-ep-plus />
|
||||
<Plus />
|
||||
新增通知
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -56,7 +56,7 @@
|
||||
:disabled="ids.length === 0"
|
||||
@click="handleDelete()"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<Delete />
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
@@ -12,11 +12,15 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleQuery()">
|
||||
<i-ep-search />
|
||||
<template #icon>
|
||||
<Search />
|
||||
</template>
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button @click="handleResetQuery()">
|
||||
<i-ep-refresh />
|
||||
<template #icon>
|
||||
<Refresh />
|
||||
</template>
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleQuery">
|
||||
<i-ep-search />
|
||||
<Search />
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button @click="handleResetQuery">
|
||||
<i-ep-refresh />
|
||||
<Refresh />
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
@@ -27,7 +27,9 @@
|
||||
<el-card shadow="never" class="table-container">
|
||||
<template #header>
|
||||
<el-button type="success" @click="handleOpenDialog()">
|
||||
<i-ep-plus />
|
||||
<el-icon>
|
||||
<Plus />
|
||||
</el-icon>
|
||||
新增
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -35,7 +37,9 @@
|
||||
:disabled="ids.length === 0"
|
||||
@click="handleDelete()"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<el-icon>
|
||||
<Delete />
|
||||
</el-icon>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
@@ -69,7 +73,7 @@
|
||||
link
|
||||
@click="handleOpenAssignPermDialog(scope.row)"
|
||||
>
|
||||
<i-ep-position />
|
||||
<template #icon><Position /></template>
|
||||
分配权限
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -78,7 +82,7 @@
|
||||
link
|
||||
@click="handleOpenDialog(scope.row.id)"
|
||||
>
|
||||
<i-ep-edit />
|
||||
<template #icon><Edit /></template>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -87,7 +91,7 @@
|
||||
link
|
||||
@click="handleDelete(scope.row.id)"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<template #icon><Delete /></template>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
@@ -172,13 +176,15 @@
|
||||
placeholder="菜单权限名称"
|
||||
>
|
||||
<template #prefix>
|
||||
<i-ep-search />
|
||||
<Search />
|
||||
</template>
|
||||
</el-input>
|
||||
|
||||
<div class="flex-center ml-5">
|
||||
<el-button type="primary" size="small" plain @click="togglePermTree">
|
||||
<i-ep-switch />
|
||||
<template #icon>
|
||||
<Switch />
|
||||
</template>
|
||||
{{ isExpanded ? "收缩" : "展开" }}
|
||||
</el-button>
|
||||
<el-checkbox
|
||||
@@ -193,9 +199,11 @@
|
||||
<template #content>
|
||||
如果只需勾选菜单权限,不需要勾选子菜单或者按钮权限,请关闭父子联动
|
||||
</template>
|
||||
<i-ep-QuestionFilled
|
||||
<el-icon
|
||||
class="ml-1 color-[--el-color-primary] inline-block cursor-pointer"
|
||||
/>
|
||||
>
|
||||
<QuestionFilled />
|
||||
</el-icon>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<el-card shadow="never">
|
||||
<el-input v-model="deptName" placeholder="部门名称" clearable>
|
||||
<template #prefix>
|
||||
<i-ep-search />
|
||||
<Search />
|
||||
</template>
|
||||
</el-input>
|
||||
|
||||
|
||||
@@ -48,11 +48,11 @@
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleQuery">
|
||||
<i-ep-search />
|
||||
<Search />
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button @click="handleResetQuery">
|
||||
<i-ep-refresh />
|
||||
<Refresh />
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
@@ -68,7 +68,7 @@
|
||||
type="success"
|
||||
@click="handleOpenDialog()"
|
||||
>
|
||||
<i-ep-plus />
|
||||
<template #icon><Plus /></template>
|
||||
新增
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -77,18 +77,18 @@
|
||||
:disabled="removeIds.length === 0"
|
||||
@click="handleDelete()"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<template #icon><Delete /></template>
|
||||
删除
|
||||
</el-button>
|
||||
</div>
|
||||
<div>
|
||||
<el-button class="ml-3" @click="handleOpenImportDialog">
|
||||
<template #icon><i-ep-upload /></template>
|
||||
<template #icon><Upload /></template>
|
||||
导入
|
||||
</el-button>
|
||||
|
||||
<el-button class="ml-3" @click="handleExport">
|
||||
<template #icon><i-ep-download /></template>
|
||||
<template #icon><Download /></template>
|
||||
导出
|
||||
</el-button>
|
||||
</div>
|
||||
@@ -163,7 +163,7 @@
|
||||
link
|
||||
@click="hancleResetPassword(scope.row)"
|
||||
>
|
||||
<i-ep-refresh-left />
|
||||
<template #icon><RefreshLeft /></template>
|
||||
重置密码
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -173,7 +173,7 @@
|
||||
size="small"
|
||||
@click="handleOpenDialog(scope.row.id)"
|
||||
>
|
||||
<i-ep-edit />
|
||||
<template #icon><Edit /></template>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -183,7 +183,7 @@
|
||||
size="small"
|
||||
@click="handleDelete(scope.row.id)"
|
||||
>
|
||||
<i-ep-delete />
|
||||
<template #icon><Delete /></template>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user