forked from zhurui/management
1 line
11 KiB
JSON
1 line
11 KiB
JSON
|
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\main-navbar.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\main-navbar.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\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\nimport { messages } from '@/i18n'\nimport screenfull from 'screenfull'\nimport UpdatePassword from './main-navbar-update-password'\nimport updateInfo from './main-navbar-update-info'\nimport { clearLoginInfo } from '@/utils'\nexport default {\n inject: ['refresh'],\n data () {\n return {\n i18nMessages: messages,\n updatePasswordVisible: false, \n updateInfoVisible:false,\n messageTip: false\n }\n },\n components: {\n UpdatePassword,\n updateInfo\n },\n created () {\n // 未读通知数\n this.getUnReadCount()\n },\n methods: {\n myNoticeRouter () {\n this.$router.replace('sys-notice-user')\n },\n getUnReadCount () {\n this.$http.get(`/sys/notice/mynotice/unread`).then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n if (res.data > 0) {\n this.messageTip = true\n }\n }).catch(() => {})\n },\n openindex(){\n if(this.$route.name == 'home'){\n\t\t\t\tlet dom=document.querySelectorAll(\".home\")[0];\n\t\t\t\t\t\t\tscreenfull.toggle(dom)\n\t\t\t\t}else{\n\t\t\t\t\tthis.$router.replace({name:'home'})\n\t\t\t\t}\n\t\t\t\tthis.$store.commit(\"SET_FULL_SCREEN\",true)\n },\n // 全屏\n fullscreenHandle () {\n if (!screenfull.enabled) {\n return this.$message({\n message: this.$t('fullscreen.prompt'),\n type: 'warning',\n duration: 500\n })\n }\n screenfull.toggle()\n },\n // 修改密码\n updatePasswordHandle () {\n this.updatePasswordVisible = true\n this.$nextTick(() => {\n this.$refs.updatePassword.init()\n })\n },\n updateSelfInfoHandle(){\n this.updateInfoVisible=true;\n this.$nextTick(() => {\n this.$refs.updateInfo.init()\n })\n },\n // 退出\n logoutHandle () {\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('logout') }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(() => {\n this.$http.post('/auth/oauth/logout').then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n clearLoginInfo()\n this.$router.push({ name: 'login' })\n }).catch(() => {})\n }).catch(() => {})\n }\n }\n}\n",{"version":3,"sources":["main-navbar.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA
|