{"remainingRequest":"D:\\视频边缘1215\\TransFlow\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\视频边缘1215\\TransFlow\\src\\components\\common\\Whole.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\视频边缘1215\\TransFlow\\src\\components\\common\\Whole.vue","mtime":1675071365962},{"path":"D:\\视频边缘1215\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1671074740928},{"path":"D:\\视频边缘1215\\TransFlow\\node_modules\\babel-loader\\lib\\index.js","mtime":1671074740599},{"path":"D:\\视频边缘1215\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1671074740928},{"path":"D:\\视频边缘1215\\TransFlow\\node_modules\\vue-loader\\lib\\index.js","mtime":1671074747916}],"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\nimport SideMenu from '@/components/sidemenu/SideMenu';\nimport bus from \"@/utils/bus\";\nexport default {\n components: {\n SideMenu\n },\n data(){\n return{\n changeOpcity: 1,\n flag: 1,\n // 控制红灯闪烁\n changeOpcity1: 1,\n flag1: 1,\n stateNew:'outline',\n itemList: [ // 水平一级菜单栏的菜单\n // { path: '/Home', title: '首页' },\n { path: '/test1', title: '一级菜单1' },\n { path: '/test2', title: '一级菜单2' },\n { path: '/test3', title: '一级菜单3' },\n { path: '/permission', title: '管理员权限' },\n // { path: '/i18n', title: '国际化组件' }\n ],\n leftMenus: [\n {\n title : '分析',\n path: '/test1/AnalysisMain',\n icon : 'el-icon-data-line',\n // icon : require('@/assets/img/fenxi.png'),\n },\n {\n title : '控制中心',\n path: 'ControlCenter',\n icon:'el-icon-coin',\n children : [\n {\n title : '通用',\n path: 'test1-2',\n children : [\n {\n title : '关于本机',\n path: '/test1/AboutMachine',\n\n },\n {\n title : '网络',\n path: '/test1/network',\n\n },\n {\n title : 'VPN',\n path: '/test1/VPN',\n\n },\n {\n title : '自定义操作',\n path: '/test1/CustomOperations',\n\n },\n {\n title : '健康检测',\n path: '/test1/HealthCheck',\n\n }\n ]\n },{\n title : '运行状态',\n path: '/test1/StateOperation',\n // icon : 'el-icon-user-solid',\n },{\n title : '接口',\n path: '/test1/interface',\n // icon : 'el-icon-user-solid',\n },{\n title : 'IP设置',\n path: '/test1/IPSetting',\n // icon : 'el-icon-user-solid',\n },\n \n ]\n },{\n title : '系统设置',\n path: 'SystemSettings',\n icon : 'el-icon-s-tools',\n \n children : [\n {\n title : '全局设置',\n path: '/test1/globalSettings',\n // icon : 'bars',\n },\n {\n title : '关于本机——导出设置',\n path: '/test1/ExportingSettings',\n // icon : 'tool',\n },\n {\n title : '关于本机——导入设置',\n path: '/test1/ImportSettings',\n // icon : 'tool',\n },\n {\n title : '接口与服务器证书',\n path: '/test1/InterfaceServerCertificates',\n // icon : 'tool',\n },\n {\n title : 'UDP服务设置',\n path: '/test1/UDPServiceSettings',\n // icon : 'tool',\n }\n ]\n },{\n title : '用户管理',\n path: 'UserManagement',\n icon : 'el-icon-user-solid',\n children : [\n {\n title : '我的账号',\n path: '/test1/myId',\n // icon : 'bars',\n },\n {\n title : '账号管理',\n path: '/test1/IdManagement',\n // icon : 'tool',\n },\n ]\n },\n {\n title : '通知/日志',\n path: '/test1/logs',\n icon : 'el-icon-phone',\n },\n \n ],\n globalTheme: false,\n }\n },\n\n computed: {\n username(){\n return localStorage.getItem('ms_username') || '';\n },\n toIndex(){ // 根据路径绑定到对应的一级菜单,防止页面刷新重新跳回第一个\n return '/' + this.$route.path.split('/')[1];\n },\n },\n created() {\n this.globalTheme = JSON.parse(localStorage.getItem('global_theme'));\n bus.$emit('global_theme', this.globalTheme); // 将 globalTheme 的值传给父组件\n },\n mounted() {\n this.controlLight();\n },\n methods: {\n handleSelect(path){ // 切换菜单栏\n this.$router.push({\n path: path\n });\n },\n handleCommand(command){ // 用户名下拉菜单选择事件\n if(command == 'loginout'){\n localStorage.removeItem('ms_username');\n this.$router.push({\n path: '/Login'\n });\n }\n },\n handleChangeStyle(){ // 切换主题\n this.globalTheme = !this.globalTheme;\n localStorage.setItem('global_theme', this.globalTheme); // 本地存储选择的 globalTheme\n bus.$emit('global_theme', this.globalTheme); // 将 globalTheme 的值传给父组件\n },\n // 控制闪烁\n controlLight() {\n setInterval(() => {\n if (this.flag) {\n this.$nextTick(() => {\n this.changeOpcity = this.changeOpcity - 0.1;\n });\n } else {\n this.$nextTick(() => {\n this.changeOpcity = this.changeOpcity + 0.1;\n });\n }\n if (this.changeOpcity < 0.3) {\n this.flag = 0;\n } else if (this.changeOpcity > 0.99) {\n this.flag = 1;\n }\n }, 140);\n setInterval(() => {\n if (this.flag1) {\n this.$nextTick(() => {\n this.changeOpcity1 = this.changeOpcity1 - 0.1;\n });\n } else {\n this.$nextTick(() => {\n this.changeOpcity1 = this.changeOpcity1 + 0.1;\n });\n }\n if (this.changeOpcity1 < 0.5) {\n this.flag1 = 0;\n } else if (this.changeOpcity1 > 0.99) {\n this.flag1 = 1;\n }\n }, 150);\n },\n }\n}\n",{"version":3,"sources":["Whole.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA;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;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;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;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"Whole.vue","sourceRoot":"src/components/common","sourcesContent":["\n \n \n \n
\n \n \n \n \n
\n \n \n \n \n \n\n
\n\n\n\n\n"]}]}