-
+
@@ -198,7 +67,8 @@ const layoutHeader = defineComponent({
position: relative;
width: 100%;
height: 100%;
-
+ background-image: url("../assets/home/home_bg.png");
+ background-size: 100% 100%;
&::after {
display: table;
clear: both;
diff --git a/src/router/modules/home.ts b/src/router/modules/home.ts
index 52d1e6f..53de742 100644
--- a/src/router/modules/home.ts
+++ b/src/router/modules/home.ts
@@ -5,7 +5,7 @@ export default {
path: "/",
name: "Home",
component: Layout,
- redirect: "/welcome",
+ redirect: "/home",
meta: {
icon: HomeFill,
title: "首页",
@@ -14,9 +14,9 @@ export default {
},
children: [
{
- path: "/welcome",
- name: "Welcome",
- component: () => import("@/views/welcome/index.vue"),
+ path: "/home",
+ name: "Home",
+ component: () => import("@/views/home/index.vue"),
meta: {
title: "首页",
showLink: VITE_HIDE_HOME === "true" ? false : true
diff --git a/src/router/modules/systemManagement.ts b/src/router/modules/systemManagement.ts
new file mode 100644
index 0000000..4a6144f
--- /dev/null
+++ b/src/router/modules/systemManagement.ts
@@ -0,0 +1,23 @@
+export default {
+ path: "/systemManagement",
+ redirect: "/systemManagement/accountManagement",
+ meta: {
+ title: "系统管理",
+ icon: 3,
+ rank: 15
+ },
+ children: [
+ {
+ path: "/systemManagement/accountManagement",
+ name: "systemManagement",
+ component: () =>
+ import("@/views/systemManagement/accountManagement/index.vue"),
+ meta: {
+ title: "账号管理",
+ showLink: true,
+ showParent: true,
+ roles: ["admin", "common"]
+ }
+ }
+ ]
+} as RouteConfigsTable;
diff --git a/src/style/sidebar.scss b/src/style/sidebar.scss
index 27d7927..e3fba59 100644
--- a/src/style/sidebar.scss
+++ b/src/style/sidebar.scss
@@ -38,7 +38,6 @@
min-width: 1500px;
height: 100vh;
min-height: 100%;
- margin-left: $sideBarWidth;
background: #f0f2f5;
/* main-content 属性动画 */
@@ -50,17 +49,6 @@
}
}
- .fixed-header {
- position: fixed;
- top: 0;
- right: 0;
- z-index: 998;
- width: calc(100% - 210px);
-
- /* fixed-header 属性左上角动画 */
- transition: width var(--pure-transition-duration);
- }
-
.main-hidden {
margin-left: 0 !important;
diff --git a/src/views/welcome/index.vue b/src/views/home/index.vue
similarity index 72%
rename from src/views/welcome/index.vue
rename to src/views/home/index.vue
index 66538c9..9b5115e 100644
--- a/src/views/welcome/index.vue
+++ b/src/views/home/index.vue
@@ -1,11 +1,11 @@
-
算法管理
+ 首页
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 494c7dc..d2ca2c3 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -16,6 +16,7 @@ import Lock from "@iconify-icons/icon-park-outline/lock";
import User from "@iconify-icons/icon-park-outline/user";
import PreviewClose from "@iconify-icons/icon-park-outline/preview-close";
import PreviewOpen from "@iconify-icons/icon-park-outline/preview-open";
+import { setUserInfo } from "@/utils/auth";
defineOptions({
name: "Login"
@@ -42,31 +43,37 @@ const onLogin = async (formEl: FormInstance | undefined) => {
if (!formEl) return;
await formEl.validate((valid, fields) => {
if (valid) {
- useUserStoreHook()
- .loginByUsername({
- userAccount: ruleForm.username,
- password: ruleForm.password
- })
- .then((res: any) => {
- loading.value = false;
- if (res.code === 200) {
- if (res.data.roleCode === "1") {
- // initRouter().then(() => {
- // router.push("/selectCase");
- // });
- } else {
- // initRouter().then(() => {
- // router.push("/inquiryCase");
- // });
- }
+ setUserInfo({
+ roleCode: "1"
+ });
+ initRouter().then(() => {
+ router.push("/home");
+ });
+ // useUserStoreHook()
+ // .loginByUsername({
+ // userAccount: ruleForm.username,
+ // password: ruleForm.password
+ // })
+ // .then((res: any) => {
+ // loading.value = false;
+ // if (res.code === 200) {
+ // if (res.data.roleCode === "1") {
+ // // initRouter().then(() => {
+ // // router.push("/selectCase");
+ // // });
+ // } else {
+ // // initRouter().then(() => {
+ // // router.push("/inquiryCase");
+ // // });
+ // }
- message("登录成功", { type: "success" });
- }
- })
- .catch(() => {
- loading.value = false;
- message("登录失败", { type: "error" });
- });
+ // message("登录成功", { type: "success" });
+ // }
+ // })
+ // .catch(() => {
+ // loading.value = false;
+ // message("登录失败", { type: "error" });
+ // });
} else {
loading.value = false;
return fields;
diff --git a/src/views/systemManagement/accountManagement/index.vue b/src/views/systemManagement/accountManagement/index.vue
new file mode 100644
index 0000000..b6a64e1
--- /dev/null
+++ b/src/views/systemManagement/accountManagement/index.vue
@@ -0,0 +1,5 @@
+
+
+
+ 11111
+