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