{"remainingRequest":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cssc-fvue\\src\\views\\CrewIndex.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cssc-fvue\\src\\views\\CrewIndex.vue","mtime":1668071265581},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport utils from '@/hotent-ui-util.js'\r\nexport default {\r\n name: 'CrewIndex',\r\n data() {\r\n return {\r\n companyName: '',\r\n videoSrc: require('@/assets/img/bg.mp4'),\r\n crewImg: require('@/assets/img/crewDark22.png'),\r\n frontMenus: [\r\n {\r\n name: '',\r\n },\r\n ],\r\n date: '',\r\n day: '',\r\n timer: null,\r\n username: '',\r\n }\r\n },\r\n mounted() {\r\n if (!this.fullname) {\r\n this.username = JSON.parse(\r\n sessionStorage.getItem('currentUser')\r\n ).username\r\n }\r\n this.getSysInfo()\r\n this.getMenus()\r\n this.formatDate()\r\n },\r\n beforeDestroy() {\r\n clearInterval(this.timer)\r\n },\r\n methods: {\r\n getSysInfo() {\r\n let url = '${uc}/uc/tenantManage/v1/getTenantByCode?code=platform'\r\n this.$http.get(url).then((resp) => {\r\n if (resp.data) {\r\n let tenantManage = resp.data\r\n this.companyName = tenantManage.nameFront\r\n }\r\n })\r\n },\r\n formatDate() {\r\n this.timer = null\r\n setInterval(() => {\r\n let date = new Date().getTime()\r\n this.date = utils.formatDate(date, 'dateTime')\r\n }, 1000)\r\n if (new Date().getDay() == 0) {\r\n this.day = '星期日'\r\n } else if (new Date().getDay() == 1) {\r\n this.day = '星期一'\r\n } else if (new Date().getDay() == 2) {\r\n this.day = '星期二'\r\n } else if (new Date().getDay() == 3) {\r\n this.day = '星期三'\r\n } else if (new Date().getDay() == 4) {\r\n this.day = '星期四'\r\n } else if (new Date().getDay() == 5) {\r\n this.day = '星期五'\r\n } else if (new Date().getDay() == 6) {\r\n this.day = '星期六'\r\n }\r\n },\r\n getMenus() {\r\n let storageMenus = sessionStorage.getItem(\"currentFrontMenus\");\r\n if (storageMenus) {\r\n this.frontMenus = JSON.parse(storageMenus);\r\n }else{\r\n this.$store.dispatch('menu/actionFrontMenus').then(res=>{\r\n this.frontMenus = res\r\n })\r\n }\r\n },\r\n goPage(path) {\r\n this.$router.push({\r\n path: `/frontPlat/${path.alias}`,\r\n })\r\n },\r\n },\r\n}\r\n",null]}