refactor: ♻️ 组件命名统一
This commit is contained in:
@@ -65,7 +65,8 @@ export const constantRoutes: RouteRecordRaw[] = [
|
|||||||
{
|
{
|
||||||
path: "myNotice",
|
path: "myNotice",
|
||||||
name: "MyNotice",
|
name: "MyNotice",
|
||||||
component: () => import("@/views/system/notice/my-notice.vue"),
|
component: () =>
|
||||||
|
import("@/views/system/notice/components/MyNotice.vue"),
|
||||||
meta: { title: "我的通知", icon: "user", hidden: true },
|
meta: { title: "我的通知", icon: "user", hidden: true },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
12
src/types/components.d.ts
vendored
12
src/types/components.d.ts
vendored
@@ -60,18 +60,18 @@ declare module "vue" {
|
|||||||
ElUpload: (typeof import("element-plus/es"))["ElUpload"];
|
ElUpload: (typeof import("element-plus/es"))["ElUpload"];
|
||||||
ElWatermark: (typeof import("element-plus/es"))["ElWatermark"];
|
ElWatermark: (typeof import("element-plus/es"))["ElWatermark"];
|
||||||
ElSkeleton: (typeof import("element-plus/es"))["ElSkeleton"];
|
ElSkeleton: (typeof import("element-plus/es"))["ElSkeleton"];
|
||||||
|
FileUpload: (typeof import("./../components/Upload/FileUpload.vue"))["default"];
|
||||||
Form: (typeof import("./../components/CURD/Form.vue"))["default"];
|
Form: (typeof import("./../components/CURD/Form.vue"))["default"];
|
||||||
FunnelChart: (typeof import("./../views/dashboard/components/FunnelChart.vue"))["default"];
|
Fullscreen: (typeof import("./../components/Fullscreen/index.vue"))["default"];
|
||||||
GithubCorner: (typeof import("./../components/GithubCorner/index.vue"))["default"];
|
GithubCorner: (typeof import("./../components/GithubCorner/index.vue"))["default"];
|
||||||
Hamburger: (typeof import("./../components/Hamburger/index.vue"))["default"];
|
Hamburger: (typeof import("./../components/Hamburger/index.vue"))["default"];
|
||||||
IconSelect: (typeof import("./../components/IconSelect/index.vue"))["default"];
|
IconSelect: (typeof import("./../components/IconSelect/index.vue"))["default"];
|
||||||
LangSelect: (typeof import("./../components/LangSelect/index.vue"))["default"];
|
LangSelect: (typeof import("./../components/LangSelect/index.vue"))["default"];
|
||||||
MenuSearch: (typeof import("./../components/MenuSearch/index.vue"))["default"];
|
MenuSearch: (typeof import("./../components/MenuSearch/index.vue"))["default"];
|
||||||
Notice: (typeof import("./../components/Notice/index.vue"))["default"];
|
MultiImageUpload: (typeof import("./../components/Upload/MultiImageUpload.vue"))["default"];
|
||||||
NoticeDetail: (typeof import("../views/system/notice/notice-detail.vue"))["default"];
|
|
||||||
LayoutSelect: (typeof import("./../layout/components/Settings/components/LayoutSelect.vue"))["default"];
|
LayoutSelect: (typeof import("./../layout/components/Settings/components/LayoutSelect.vue"))["default"];
|
||||||
NavBar: (typeof import("./../layout/components/NavBar/index.vue"))["default"];
|
Navbar: (typeof import("./../layout/components/Navbar/index.vue"))["default"];
|
||||||
NavbarAction: (typeof import("./../layout/components/NavBar/components/NavbarAction.vue"))["default"];
|
NavbarRight: (typeof import("./../layout/components/Navbar/NavbarRight.vue"))["default"];
|
||||||
PageContent: (typeof import("./../components/CURD/PageContent.vue"))["default"];
|
PageContent: (typeof import("./../components/CURD/PageContent.vue"))["default"];
|
||||||
PageForm: (typeof import("./../components/CURD/PageForm.vue"))["default"];
|
PageForm: (typeof import("./../components/CURD/PageForm.vue"))["default"];
|
||||||
PageModal: (typeof import("./../components/CURD/PageModal.vue"))["default"];
|
PageModal: (typeof import("./../components/CURD/PageModal.vue"))["default"];
|
||||||
@@ -91,8 +91,6 @@ declare module "vue" {
|
|||||||
TableSelect: (typeof import("./../components/TableSelect/index.vue"))["default"];
|
TableSelect: (typeof import("./../components/TableSelect/index.vue"))["default"];
|
||||||
TagsView: (typeof import("./../layout/components/TagsView/index.vue"))["default"];
|
TagsView: (typeof import("./../layout/components/TagsView/index.vue"))["default"];
|
||||||
ThemeColorPicker: (typeof import("./../layout/components/Settings/components/ThemeColorPicker.vue"))["default"];
|
ThemeColorPicker: (typeof import("./../layout/components/Settings/components/ThemeColorPicker.vue"))["default"];
|
||||||
FileUpload: (typeof import("./../components/Upload/FileUpload.vue"))["default"];
|
|
||||||
MultiImageUpload: (typeof import("./../components/Upload/MultiImageUpload.vue"))["default"];
|
|
||||||
SingleImageUpload: (typeof import("./../components/Upload/SingleImageUpload.vue"))["default"];
|
SingleImageUpload: (typeof import("./../components/Upload/SingleImageUpload.vue"))["default"];
|
||||||
WangEditor: (typeof import("./../components/WangEditor/index.vue"))["default"];
|
WangEditor: (typeof import("./../components/WangEditor/index.vue"))["default"];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -188,6 +188,7 @@ import defaultSettings from "@/settings";
|
|||||||
import { ThemeEnum } from "@/enums/ThemeEnum";
|
import { ThemeEnum } from "@/enums/ThemeEnum";
|
||||||
|
|
||||||
import { useSettingsStore, useUserStore, useDictStore } from "@/store";
|
import { useSettingsStore, useUserStore, useDictStore } from "@/store";
|
||||||
|
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
const dictStore = useDictStore();
|
const dictStore = useDictStore();
|
||||||
@@ -351,7 +352,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
.title {
|
.title {
|
||||||
margin: auto 5px;
|
margin: auto 5px;
|
||||||
font-size: 26px;
|
font-size: 24px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: transparent;
|
color: transparent;
|
||||||
background: linear-gradient(to right, #3b82f6, #14b8a6);
|
background: linear-gradient(to right, #3b82f6, #14b8a6);
|
||||||
|
|||||||
@@ -307,11 +307,12 @@ import UserAPI, {
|
|||||||
UserPageQuery,
|
UserPageQuery,
|
||||||
UserPageVO,
|
UserPageVO,
|
||||||
} from "@/api/system/user";
|
} from "@/api/system/user";
|
||||||
|
|
||||||
import DeptAPI from "@/api/system/dept";
|
import DeptAPI from "@/api/system/dept";
|
||||||
import RoleAPI from "@/api/system/role";
|
import RoleAPI from "@/api/system/role";
|
||||||
|
|
||||||
import DeptTree from "./dept-tree.vue";
|
import DeptTree from "./components/DeptTree.vue";
|
||||||
import UserImport from "./import.vue";
|
import UserImport from "./components/UserImport.vue";
|
||||||
|
|
||||||
const queryFormRef = ref(ElForm);
|
const queryFormRef = ref(ElForm);
|
||||||
const userFormRef = ref(ElForm);
|
const userFormRef = ref(ElForm);
|
||||||
@@ -320,17 +321,17 @@ const loading = ref(false);
|
|||||||
const removeIds = ref([]);
|
const removeIds = ref([]);
|
||||||
const total = ref(0);
|
const total = ref(0);
|
||||||
const pageData = ref<UserPageVO[]>();
|
const pageData = ref<UserPageVO[]>();
|
||||||
/** 部门下拉选项 */
|
// 部门下拉数据源
|
||||||
const deptOptions = ref<OptionType[]>();
|
const deptOptions = ref<OptionType[]>();
|
||||||
/** 角色下拉选项 */
|
// 角色下拉数据源
|
||||||
const roleOptions = ref<OptionType[]>();
|
const roleOptions = ref<OptionType[]>();
|
||||||
/** 用户查询参数 */
|
// 用户查询参数
|
||||||
const queryParams = reactive<UserPageQuery>({
|
const queryParams = reactive<UserPageQuery>({
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
});
|
});
|
||||||
|
|
||||||
/** 用户弹窗对象 */
|
// 用户弹窗
|
||||||
const dialog = reactive({
|
const dialog = reactive({
|
||||||
visible: false,
|
visible: false,
|
||||||
title: "",
|
title: "",
|
||||||
@@ -393,7 +394,11 @@ function handleSelectionChange(selection: any) {
|
|||||||
removeIds.value = selection.map((item: any) => item.id);
|
removeIds.value = selection.map((item: any) => item.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 重置密码 */
|
/**
|
||||||
|
* 重置密码
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
function hancleResetPassword(row: { [key: string]: any }) {
|
function hancleResetPassword(row: { [key: string]: any }) {
|
||||||
ElMessageBox.prompt(
|
ElMessageBox.prompt(
|
||||||
"请输入用户「" + row.username + "」的新密码",
|
"请输入用户「" + row.username + "」的新密码",
|
||||||
|
|||||||
Reference in New Issue
Block a user