{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/views/main_launch.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/views/main_launch.vue","mtime":1739760944329},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/babel.config.js","mtime":1739760943855},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nexport default {\n inject: [],\n provide: function provide() {\n return {\n refreshForm: this.refreshForm,\n setListViewDocIds: this.setListViewDocIds,\n openNewpage: this.doAction\n };\n },\n props: [\"openParams\"],\n data: function data() {\n return {\n menusData: [],\n saveMenusData: [],\n startmenus: [],\n searchValue: '',\n currentActive: 1,\n currentMenuId: '',\n softwareList: [],\n activeApp: 0,\n appId: '',\n contextPath: '',\n isRouterOpen: false\n };\n },\n created: function created() {\n var _this = this;\n if (!this.openParams) {\n //没有props参数,认定是路由打开\n this.isRouterOpen = true;\n }\n this.contextPath = obpmConfig.obpmFilePath;\n this.$api.getApplications({\n onSucess: function onSucess(res) {\n var arr = [];\n res.data.data.applications.forEach(function (app) {\n if (app.id != \"km\" && app.id != \"pm\" && app.id != \"qm\") {\n arr.push(app);\n }\n });\n _this.softwareList = arr;\n if (arr && arr.length > 0) {\n var appId = arr[0].id;\n _this.appId = appId;\n _this.$api.getStartMenus(appId, {\n onSucess: function onSucess(response) {\n var startmenus = response.data.data;\n _this.startmenus = startmenus;\n var modes = [];\n if (startmenus) {\n startmenus.forEach(function (menu) {\n if (menu.parent == appId) {\n modes.push({\n id: menu.id,\n description: menu.description\n });\n }\n });\n modes.forEach(function (item, index) {\n var dd = _this.findLaunchMenus(item.id);\n modes[index].child = dd;\n });\n _this.menusData = modes;\n _this.saveMenusData = JSON.parse(JSON.stringify(modes));\n }\n }\n });\n }\n }\n });\n },\n methods: {\n showCurrentApp: function showCurrentApp(index, appid) {\n var _this2 = this;\n this.appId = appid;\n this.activeApp = index;\n this.$api.getStartMenus(appid, {\n onSucess: function onSucess(response) {\n var startmenus = response.data.data;\n _this2.startmenus = startmenus;\n var modes = [];\n if (startmenus) {\n startmenus.forEach(function (menu) {\n if (menu.parent == appid) {\n modes.push({\n id: menu.id,\n description: menu.description\n });\n }\n });\n modes.forEach(function (item, index) {\n var dd = _this2.findLaunchMenus(item.id);\n modes[index].child = dd;\n });\n _this2.menusData = modes;\n _this2.saveMenusData = JSON.parse(JSON.stringify(modes));\n } else {\n _this2.saveMenusData = [];\n _this2.menusData = [];\n }\n }\n });\n },\n mouseOver: function mouseOver(val, item) {\n this.currentMenuId = item.id;\n },\n mouseLeave: function mouseLeave() {\n this.currentMenuId = '';\n },\n search: function search() {\n var searchVal = this.searchValue;\n //let data = this.startmenus.filter(value=>value.description.indexOf(searchVal)!==-1);\n var menusData = JSON.parse(JSON.stringify(this.saveMenusData));\n var data = menusData.filter(function (value) {\n return value.description.indexOf(searchVal) !== -1;\n });\n var arr = [];\n for (var i = 0; i < menusData.length; i++) {\n var obj = void 0;\n if (menusData[i].description && menusData[i].description.indexOf(searchVal) !== -1) {\n obj = menusData[i];\n }\n var list = menusData[i].child.filter(function (value) {\n return value.description.indexOf(searchVal) !== -1;\n });\n if (list && list.length > 0) {\n if (obj) {\n obj.child = list;\n arr.push(obj);\n } else {\n obj = {};\n obj.child = list;\n arr.push(obj);\n }\n }\n }\n this.menusData = arr;\n },\n nav_click: function nav_click(menu) {\n var params = {\n appId: this.appId,\n linkType: '00',\n actionContent: menu.formId,\n // docId:menu.id,\n name: menu.description,\n isFlowCenterCreate: true //与普通表单新建区分,表示流程中心发起新建\n };\n if (this.isRouterOpen) {\n params.isRouterOpen = true;\n this.$router.push({\n name: \"open\",\n query: params\n });\n } else {\n this.$emit(\"add-tab\", params);\n }\n //this.$emit(\"openNewpage\", params);\n },\n setActive: function setActive(val) {\n this.currentActive = val;\n },\n findLaunchMenus: function findLaunchMenus(modeid) {\n var menus = [];\n this.findSubMenus(modeid).forEach(function (menu) {\n if (menu.formId && menu.formId != \"\") {\n menus.push(menu);\n }\n });\n return menus;\n },\n findSubMenus: function findSubMenus(modeid) {\n var _this3 = this;\n var menus = [];\n if (this.startmenus) this.startmenus.forEach(function (menu) {\n if (menu.parent == modeid) {\n menus.push(menu);\n }\n });\n if (menus.length > 0) {\n menus.forEach(function (menu) {\n var submenus = _this3.findSubMenus(menu.id);\n menus = menus.concat(submenus);\n });\n }\n //console.log(\"modes-->\",menus)\n return menus;\n }\n }\n};",null]}