{"remainingRequest":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\ljzc-fvue\\src\\components\\layout\\SideMenu\\components\\ServicePopupList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\src\\components\\layout\\SideMenu\\components\\ServicePopupList.vue","mtime":1702030575319},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.regexp.constructor\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"core-js/modules/es6.array.find\";\nimport _defineProperty from \"D:/jenkins/workspace/ljzc-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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 { mapState } from 'vuex';\nimport lodash from 'lodash';\nexport default {\n name: 'ServicePopupList',\n props: {\n // 是否展示弹层列表\n isShowPopupList: {\n default: false,\n type: Boolean\n },\n // 一级菜单别名\n currentMenu: {\n default: '',\n type: String\n },\n // 当前路由地址\n routerPath: {\n default: '',\n type: String\n },\n // 收藏的菜单\n swiftMenusData: {\n default: function _default(_) {\n return [];\n },\n type: Array\n }\n },\n data: function data() {\n return {\n searchVal: '',\n // currentMenuArr1: [],\n col: 4\n };\n },\n watch: {\n isShowPopupList: function isShowPopupList(val) {\n if (val) {\n this.open();\n } else {\n this.close();\n }\n },\n currentMenu: function currentMenu(val) {\n console.log(this.currentMenuArr);\n }\n },\n computed: _objectSpread(_objectSpread({}, mapState({\n // 重构菜单信息\n businessMenu: function businessMenu(state) {\n var menuTree = state.menu.frontMenus.find(function (i) {\n return i.alias === 'normal';\n }).children;\n\n var processRouting = function processRouting(treeData) {\n var routerPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n return treeData.map(function (item) {\n var children = [];\n\n if (Array.isArray(item.children) && item.children.length) {\n children = processRouting(item.children, routerPath + \"/\".concat(item.alias));\n }\n\n return _objectSpread(_objectSpread({}, item), {}, {\n children: children,\n routerPath: routerPath + \"/\".concat(item.alias)\n });\n });\n }; // 重新组合树数据(根据需要来重组树结构中的属性字段)\n\n\n return processRouting(menuTree, '/platLayout');\n }\n })), {}, {\n currentMenuArr: function currentMenuArr() {\n var _this = this;\n\n return this.businessMenu.find(function (i) {\n return i.alias === _this.currentMenu;\n }).children.filter(function (i) {\n return Array.isArray(i.children) && i.children.length;\n });\n },\n filterMenuArr: function filterMenuArr() {\n var _this2 = this;\n\n if (!this.searchVal) return this.currentMenuArr;\n return lodash.cloneDeep(this.currentMenuArr).filter(function (item) {\n item.children = item.children.filter(function (i) {\n return i.name.includes(_this2.searchVal) || _this2.searchVal.includes(i.name);\n });\n return item.children.length;\n });\n }\n }),\n created: function created() {},\n methods: {\n // 菜单弹层打开\n open: function open() {\n this.searchVal = '';\n },\n // 菜单弹层关闭\n close: function close() {},\n // 关闭弹层调用\n closePopup: function closePopup() {\n this.searchVal = '';\n this.$emit('close-popup');\n },\n // 菜单点击\n menuItemClick: function menuItemClick(item) {\n this.$router.push(item.routerPath);\n this.closePopup();\n },\n // 高亮搜索内容\n brightenKeyword: function brightenKeyword(val, keyword) {\n if (keyword.length) {\n var keywordArr = keyword.split('');\n val = val + '';\n keywordArr.forEach(function (item) {\n if (val.indexOf(item) !== -1 && item !== ' ') {\n val = val.replace(new RegExp(item, 'g'), '' + item + '');\n }\n });\n }\n\n return val;\n },\n // 收藏功能\n collect: function collect(item) {\n this.$emit('change-collect', item);\n }\n }\n};",null]}