{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\components\\layout\\Layout.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\components\\layout\\Layout.vue","mtime":1696817248794},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-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\r\nimport Navigator from './Navigator.vue'\r\nimport SideMenu from './SideMenu.vue'\r\nimport menu from '@/api/menu.js'\r\nimport org from '@/api/org.js'\r\nimport utils from '@/utils.js'\r\nimport portal from '@/api/portal.js'\r\nexport default {\r\n components: {\r\n Navigator,\r\n SideMenu,\r\n Navigator,\r\n },\r\n data() {\r\n return {\r\n menuShow: true,\r\n currentMenuLabel: '',\r\n showHeader: true,\r\n menuStyle: 'topSide', // sideMenu topMenu topSide\r\n transitionName: 'fold-right',\r\n showPage: true,\r\n treeData: [],\r\n }\r\n },\r\n mounted() {\r\n window.onresize = () => {\r\n this.$root.$emit('resize')\r\n }\r\n menu.getMenuByAlias(this.$route.name, (m) => {\r\n if (m) {\r\n this.$emit('menuChange', m)\r\n }\r\n })\r\n org.getByParentAndDemToTree({\r\n orgKind: 'ogn',\r\n }).then((res) => {\r\n let data = res || []\r\n this.treeData = utils.tile2nest(data)\r\n sessionStorage.setItem(\r\n 'responsibilityTree',\r\n JSON.stringify(this.treeData)\r\n )\r\n })\r\n org.getDistrictList().then((res) => {\r\n let data = res.value\r\n sessionStorage.setItem('districtList', JSON.stringify(data))\r\n })\r\n },\r\n watch: {\r\n $route(to, from) {\r\n if (!to.hash) {\r\n this.showPage = !this.showPage\r\n const toDepth = to.path.split('/').length\r\n const fromDepth = from.path.split('/').length\r\n this.transitionName =\r\n toDepth < fromDepth ? 'fold-right' : 'fold-left'\r\n }\r\n },\r\n },\r\n methods: {\r\n getAllDict() {\r\n portal.getSysDict().then((data) => {\r\n if (data) {\r\n sessionStorage.setItem('dict_data', JSON.stringify(data))\r\n }\r\n })\r\n },\r\n handleMenuChange: function (menu) {\r\n this.currentMenuLabel = menu.name\r\n this.showHeader = !(menu.children && menu.children.length > 0)\r\n },\r\n },\r\n}\r\n",null]}