{"ast":null,"code":"import \"core-js/modules/es.array.filter.js\";\nimport \"core-js/modules/es.array.find.js\";\nimport \"core-js/modules/es.array.includes.js\";\nimport \"core-js/modules/es.iterator.constructor.js\";\nimport \"core-js/modules/es.iterator.filter.js\";\nimport \"core-js/modules/es.iterator.find.js\";\nimport \"core-js/modules/es.object.to-string.js\";\nimport \"core-js/modules/es.string.includes.js\";\nexport default {\n name: 'App',\n data: function data() {\n return {\n searchQuery: '',\n showSidebar: false,\n windowWidth: window.innerWidth,\n showProcessTypeSelector: false,\n selectedProcessType: 'employee',\n menuItems: [{\n path: '/process/employee',\n title: '员工入职业务流程',\n icon: 'el-icon-user',\n showProcessSelector: true\n }, {\n path: '/process/x6',\n title: 'X6员工入职流程图',\n icon: 'el-icon-position',\n showProcessSelector: false\n }, {\n path: '/process/sales',\n title: '销售订单业务流程',\n icon: 'el-icon-goods',\n showProcessSelector: true\n }, {\n path: '/process/shipping',\n title: '发货业务流程',\n icon: 'el-icon-truck',\n showProcessSelector: true\n }]\n };\n },\n computed: {\n currentRoute: function currentRoute() {\n return this.$route.path;\n },\n filteredMenuItems: function filteredMenuItems() {\n var _this = this;\n return this.menuItems.filter(function (item) {\n return item.title.toLowerCase().includes(_this.searchQuery.toLowerCase());\n });\n },\n isMobile: function isMobile() {\n return this.windowWidth < 768;\n }\n },\n methods: {\n handleSearch: function handleSearch() {\n // 这里可以添加额外的搜索逻辑\n },\n handleResize: function handleResize() {\n this.windowWidth = window.innerWidth;\n },\n handleMobileMenuSelect: function handleMobileMenuSelect() {\n // 在移动端选择菜单项后关闭侧边栏\n this.showSidebar = false;\n },\n handleMenuItemClick: function handleMenuItemClick(item) {\n // 显示或隐藏流程类型选择器\n this.showProcessTypeSelector = item.showProcessSelector || false;\n\n // 根据当前路径设置默认选中的流程类型\n if (item.path.includes('employee')) {\n this.selectedProcessType = 'employee';\n } else if (item.path.includes('sales')) {\n this.selectedProcessType = 'sales';\n } else if (item.path.includes('shipping')) {\n this.selectedProcessType = 'shipping';\n }\n },\n handleProcessTypeChange: function handleProcessTypeChange(value) {\n // 通知流程组件更新流程类型\n this.$root.$emit('change-process-type', value);\n }\n },\n mounted: function mounted() {\n window.addEventListener('resize', this.handleResize);\n\n // 根据当前路径初始化\n var currentPath = this.$route.path;\n var currentItem = this.menuItems.find(function (item) {\n return item.path === currentPath;\n });\n if (currentItem) {\n this.showProcessTypeSelector = currentItem.showProcessSelector || false;\n }\n },\n beforeDestroy: function beforeDestroy() {\n window.removeEventListener('resize', this.handleResize);\n }\n};","map":{"version":3,"names":["name","data","searchQuery","showSidebar","windowWidth","window","innerWidth","showProcessTypeSelector","selectedProcessType","menuItems","path","title","icon","showProcessSelector","computed","currentRoute","$route","filteredMenuItems","_this","filter","item","toLowerCase","includes","isMobile","methods","handleSearch","handleResize","handleMobileMenuSelect","handleMenuItemClick","handleProcessTypeChange","value","$root","$emit","mounted","addEventListener","currentPath","currentItem","find","beforeDestroy","removeEventListener"],"sources":["src/App.vue"],"sourcesContent":["\n \n \n \n \n \n \n 业务流程管理\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{ item.title }}\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 {{ item.title }}\n \n \n \n \n \n \n \n \n\n\n\n\n "],"mappings":";;;;;;;;AA4FA;EACAA,IAAA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAC,WAAA;MACAC,WAAA;MACAC,WAAA,EAAAC,MAAA,CAAAC,UAAA;MACAC,uBAAA;MACAC,mBAAA;MACAC,SAAA,GACA;QACAC,IAAA;QACAC,KAAA;QACAC,IAAA;QACAC,mBAAA;MACA,GACA;QACAH,IAAA;QACAC,KAAA;QACAC,IAAA;QACAC,mBAAA;MACA,GACA;QACAH,IAAA;QACAC,KAAA;QACAC,IAAA;QACAC,mBAAA;MACA,GACA;QACAH,IAAA;QACAC,KAAA;QACAC,IAAA;QACAC,mBAA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