| | |
| | | > |
| | | <div> |
| | | <span style="color: rgb(255, 255, 255); font-size: 0.88rem" |
| | | >è§è²ï¼è¶
级管çå</span |
| | | >è§è²ï¼{{ acountInfo.roleName }}</span |
| | | > |
| | | </div> |
| | | <div style="margin-left: 2rem"> |
| | | <span style="color: rgb(255, 255, 255); font-size: 0.88rem" |
| | | >å§åï¼{{ userName }}</span |
| | | >å§åï¼{{ acountInfo.userTrueName }}</span |
| | | > |
| | | </div> |
| | | <img |
| | |
| | | <script> |
| | | // import { getTreeMenu } from "@/api/menu.js"; |
| | | import { baseUrl } from "../utils"; |
| | | |
| | | import loading from "@/components/basic/RouterLoading"; |
| | | import VolMenu from "@/components/basic/VolElementMenu.vue"; |
| | | import loading from "../components/basic/RouterLoading.vue"; |
| | | // import VolMenu from "@/components/basic/VolElementMenu.vue"; |
| | | import Message from "@/views/index/Message.vue"; |
| | | import MessageConfig from "@/views/index/MessageConfig.js"; |
| | | // import MessageConfig from "@/views/index/MessageConfig.js"; |
| | | |
| | | var imgUrl = require("@/assets/imgs/wms_x.png"); |
| | | var imgUrl = new URL("../assets/imgs/wms_x.png", import.meta.url).href; |
| | | var $this; |
| | | var $interval; |
| | | var $indexDate; |
| | |
| | | import { useRouter, useRoute } from "vue-router"; |
| | | import store from "../store/index"; |
| | | import http from "@/../src/api/http.js"; |
| | | import { GetUserInfo } from "@/api/user"; |
| | | |
| | | export default defineComponent({ |
| | | components: { |
| | | VolMenu, |
| | | // VolMenu, |
| | | loading, |
| | | Message, |
| | | }, |
| | |
| | | }, |
| | | ]); |
| | | const errorImg = ref( |
| | | 'this.src="' + require("@/assets/imgs/error-img.png") + '"' |
| | | 'this.src="' + |
| | | new URL("../assets/imgs/error-img.png", import.meta.url).href + |
| | | '"' |
| | | ); |
| | | const selectId = ref("1"); |
| | | // ãé¦é¡µãæ ç¾åºå·(å½åå³é®éä¸çèå) |
| | |
| | | } |
| | | } |
| | | Object.assign(_config.$tabs, { open: open, close: close }); |
| | | getUser(); |
| | | |
| | | //åå§åèå |
| | | // getTreeMenu().then((res) => { |
| | |
| | | // selectId.value = "1"; |
| | | // }); |
| | | }; |
| | | const acountInfo = ref({}); |
| | | const getUser = () => { |
| | | GetUserInfo({}).then((res) => { |
| | | acountInfo.value = res.data; |
| | | }); |
| | | }; |
| | | created(); |
| | | return { |
| | | menuWidth, |
| | |
| | | closeTabs, |
| | | currentMenuId, |
| | | router, |
| | | acountInfo, |
| | | }; |
| | | }, |
| | | /** |