u
This commit is contained in:
1 parent
11bcef03e1
commit
a4e59dd5d1
39 files changed
+2333
-459
No files matched your search
@@ -2,18 +2,17 @@
|
||||
import { loadDataApi } from "@/request/api";
|
||||
import MenuItem from "./menu-item.vue";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
const title = ref("G3后台管理系统");
|
||||
const title = ref("集装箱管理系统");
|
||||
const route = useRoute();
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
onMounted(() => {
|
||||
loadDataApi("s_keyvalue", `b_key='bodycaption'`, ``, ["b_value"]).then((res) => {
|
||||
if (res.success) {
|
||||
title.value = res.data[0].b_value;
|
||||
}
|
||||
});
|
||||
// loadDataApi("s_keyvalue", `b_key='bodycaption'`, ``, ["b_value"]).then((res) => {
|
||||
// if (res.success) {
|
||||
// title.value = res.data[0].b_value;
|
||||
// }
|
||||
// });
|
||||
});
|
||||
|
||||
const menuList = ref([
|
||||
@@ -32,17 +31,12 @@ const menuList = ref([
|
||||
icon: "lucide:settings",
|
||||
children: [
|
||||
{
|
||||
label: "办公管理",
|
||||
children: [
|
||||
{
|
||||
label: "企业公告",
|
||||
path: "/system/oa/notice",
|
||||
},
|
||||
{
|
||||
label: "用户提醒",
|
||||
path: "/system/oa/reminder",
|
||||
},
|
||||
],
|
||||
label: "企业公告",
|
||||
path: "/system/oa/notice",
|
||||
},
|
||||
{
|
||||
label: "用户提醒",
|
||||
path: "/system/oa/reminder",
|
||||
},
|
||||
{
|
||||
label: "字段配置",
|
||||
@@ -71,7 +65,7 @@ function handleMenuChange(val) {
|
||||
<div class="g3-menu">
|
||||
<div class="g3-logo">
|
||||
<div class="logo-inner">
|
||||
<img src="@/assets/logo.png" alt="logo" />
|
||||
<!-- <img src="@/assets/logo.png" alt="logo" /> -->
|
||||
<div class="title">{{ title }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -129,7 +123,6 @@ function handleMenuChange(val) {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: calc(100% - 90px);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import { useTabStore } from "@/store/tab";
|
||||
import { useRouter } from "vue-router";
|
||||
import { ElMessage } from "element-plus";
|
||||
import UpdatePassword from "./update-password.vue";
|
||||
import { usePermissionStore } from "@/store/permission";
|
||||
|
||||
const props = defineProps({
|
||||
collapse: {
|
||||
@@ -18,6 +19,7 @@ const router = useRouter();
|
||||
|
||||
const tabStore = useTabStore();
|
||||
const userStore = useUserStore();
|
||||
const permissionStore = usePermissionStore();
|
||||
|
||||
const showUpdatePassword = ref(false);
|
||||
|
||||
@@ -28,6 +30,7 @@ function onCollapse() {
|
||||
function logout() {
|
||||
userStore.resetUserInfo();
|
||||
tabStore.resetTabs();
|
||||
permissionStore.reset();
|
||||
|
||||
ElMessage.success("已成功退出");
|
||||
|
||||
@@ -40,11 +43,7 @@ function logout() {
|
||||
<div class="g3-topbar-left">
|
||||
<div class="g3-action-icon" @click="onCollapse()">
|
||||
<G3Icon
|
||||
:icon="
|
||||
props.collapse
|
||||
? 'lucide:list-indent-increase'
|
||||
: 'lucide:list-indent-decrease'
|
||||
"
|
||||
:icon="props.collapse ? 'lucide:list-indent-increase' : 'lucide:list-indent-decrease'"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -55,9 +54,7 @@ function logout() {
|
||||
<G3Icon icon="lucide:circle-user-round" size="18" />
|
||||
<div class="user-info">
|
||||
<span class="user-name">
|
||||
{{
|
||||
userStore.userInfo.username || userStore.userInfo.userid || "空"
|
||||
}}
|
||||
{{ userStore.userInfo.username || userStore.userInfo.userid || "空" }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user