{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\flowList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\flowList.vue","mtime":1667327529403},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/es6.string.starts-with\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.search\";\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//\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 { mapState, mapActions } from \"vuex\";\nimport FlowTree from \"@/components/flow/flowTree.vue\";\nimport utils from \"@/utils.js\";\nimport process from \"@/api/process.js\";\nimport QRCode from \"qrcode\";\nexport default {\n name: \"flowList\",\n components: {\n FlowTree: FlowTree\n },\n data: function data() {\n return {\n isAsideShow: false,\n asideShow: false,\n tableData: \"\",\n date: \"\",\n currentTree: \"\",\n fullscreenLoading: true,\n QRCodeDialog: false,\n QRCodeShow: false,\n QRCodeurl: \"\",\n selectLeadId: \"0\",\n selectRowId: \"\"\n };\n },\n computed: mapState({\n rows: function rows(state) {\n return state.storeProcess.rows;\n },\n pagination: function pagination(state) {\n return state.storeProcess.pagination;\n },\n total: function total(state) {\n return state.storeProcess.total;\n },\n token: function token(state) {\n return state.login.currentUser.token;\n },\n currentSwitchValue: function currentSwitchValue() {\n return localStorage.flowListAsideShow === 'true' || localStorage.flowListAsideShow === true;\n }\n }),\n methods: {\n //将当前展开或者收起的值存在localStorage中\n handleSwitch: function handleSwitch(val) {\n localStorage.flowListAsideShow = val;\n },\n //Loading 加载中\n openFullScreen: function openFullScreen() {\n this.fullscreenLoading = true;\n },\n handleSizeChange: function handleSizeChange(size) {\n //每页下拉显示数据\n this.$store.dispatch(\"storeProcess/setPaginationSize\", size);\n this.search();\n },\n handleCurrentChange: function handleCurrentChange(currentPage) {\n //点击第几页\n this.$store.dispatch(\"storeProcess/setPaginationPageNum\", currentPage);\n this.search();\n },\n //回车查询\n searchEnterFun: function searchEnterFun(e) {\n var keyCode = window.event ? e.keyCode : e.which;\n\n if (keyCode == 13) {\n this.search(\"find\");\n }\n },\n // 查询\n search: function search(str) {\n var _this = this;\n\n this.openFullScreen();\n\n if (str == \"find\") {\n this.$store.dispatch(\"storeProcess/setPaginationPageNum\", 1);\n }\n\n var querys = []; //查询条件\n\n var queryFilter = {};\n var beginDate = \"\"; //开始时间\n\n var endDate = \"\"; //结束时间\n\n if (this.tableData) {\n querys = [{\n property: \"name\",\n value: this.tableData,\n group: \"main\",\n operation: \"LIKE\",\n relation: \"OR\"\n }];\n }\n\n if (this.currentTree) {\n querys.push({\n property: \"type_id_\",\n value: this.currentTree,\n group: \"typeId\",\n operation: \"IN\",\n relation: \"AND\"\n });\n }\n\n if (this.date) {\n beginDate = utils.formatDate(this.date[0].getTime());\n endDate = utils.formatDate(this.date[1].getTime());\n querys.push({\n property: \"create_time_\",\n value: [beginDate, endDate],\n group: \"time\",\n operation: \"BETWEEN\",\n relation: \"AND\"\n });\n }\n\n queryFilter = {\n pageBean: this.pagination,\n querys: querys\n };\n this.$store.dispatch(\"storeProcess/getFlowListByPagination\", queryFilter).then(function () {\n _this.fullscreenLoading = false;\n });\n },\n //重置\n reset: function reset() {\n this.tableData = \"\";\n this.date = \"\";\n this.search(\"find\");\n },\n handleRowClick: function handleRowClick(row, newWin) {\n if (!row.leaders || row.leaders.length == 0) {\n this.handleOpenUrl(\"/agentStart/\" + row.id + \"/0\", newWin);\n } else {\n var html = \"\";\n var this_ = this;\n this.$alert(html, \"选择发起人\", {\n dangerouslyUseHTMLString: true,\n beforeClose: function beforeClose(action, instance, done) {\n if (action == \"confirm\") {\n var se = document.getElementById(\"approvalLeaderSelect\");\n\n if (se.selectedIndex == 0) {\n this.$message.warning(\"请选择一个发起人\");\n } else {\n instance.close();\n this_.handleOpenUrl(\"/agentStart/\" + row.id + \"/\" + se[se.selectedIndex].value, newWin);\n }\n } else {\n instance.close();\n }\n }\n });\n }\n },\n handleOpenUrl: function handleOpenUrl(url, newWin) {\n if (!newWin) {\n this.$router.push(url);\n return;\n }\n\n if (!url) {\n return;\n }\n\n var token = this.$store.state.login.currentUser.token;\n\n if (!url.toLowerCase().startsWith(\"http\")) {\n url = window.context.front + url;\n }\n\n if (url.indexOf('?') == -1) {\n url = url + \"?token=\" + token;\n } else {\n url = url + \"&token=\" + token;\n }\n\n window.open(url, \"_blank\");\n },\n //子组件传值父组件(新建流程分类查询)\n getCurrent: function getCurrent(data) {\n var _this2 = this;\n\n if (data.id == 6) {\n this.currentTree = \"\";\n this.openFullScreen();\n var pageBean = {\n pageBean: this.pagination\n };\n this.currentTree = \"\";\n this.$store.dispatch(\"storeProcess/getFlowListByPagination\", pageBean).then(function () {\n _this2.fullscreenLoading = false;\n });\n } else {\n var ids = [];\n this.getFlowTrees(data, ids);\n this.currentTree = ids.join(\",\");\n this.search(\"find\");\n }\n },\n getFlowTrees: function getFlowTrees(data, ids) {\n ids.push(data.id);\n var arr = data.children;\n\n for (var i = 0; i < arr.length; i++) {\n this.getFlowTrees(arr[i], ids);\n }\n },\n loadCount: function loadCount() {\n var pageBean = {};\n return process.getNewProcessCount(pageBean);\n },\n showQRCodeDialog: function showQRCodeDialog(row) {\n this.selectRowId = row.defId;\n\n if (!row.leaders || row.leaders.length == 0) {\n //this.$router.push(\"/agentStart/\" + row.id + \"/0\");\n this.selectLeadId = \"0\";\n this.QRCodeDialog = true;\n } else {\n var html = \"\";\n var this_ = this;\n this.$alert(html, \"选择发起人\", {\n dangerouslyUseHTMLString: true,\n beforeClose: function beforeClose(action, instance, done) {\n if (action == \"confirm\") {\n var se = document.getElementById(\"approvalLeaderSelect\");\n\n if (se.selectedIndex == 0) {\n this.$message.warning(\"请选择一个发起人\");\n } else {\n instance.close(); // this_.$router.push(\n // \"/agentStart/\" + row.id + \"/\" + se[se.selectedIndex].value\n // );\n\n this.selectLeadId = se[se.selectedIndex].value;\n this.QRCodeDialog = true;\n }\n } else {\n instance.close();\n }\n }\n });\n }\n },\n QRCodeDialogClose: function QRCodeDialogClose() {\n this.QRCodeDialog = false;\n },\n foundQRCode: function foundQRCode() {\n this.QRCodeurl = window.context.mobile + \"/work/agentStart/\" + this.selectRowId + \"/0\";\n var loginRouthPath = localStorage.getItem(this.$store.state.login.currentUser.account + \"loginRoutePath\") || \"/login\";\n\n if (loginRouthPath.startsWith(\"/login/\")) {\n //租户模式\n var tenantCode = loginRouthPath.replace(\"/login/\", \"\");\n\n if (tenantCode && tenantCode != \"\") {\n this.QRCodeurl = window.context.mobile + \"/work/agentStart/\" + this.selectRowId + \"/0?tenantCode=\" + tenantCode;\n }\n }\n\n var msg = document.getElementById(\"QRCode\");\n QRCode.toCanvas(msg, this.QRCodeurl, function (error) {\n console.log(error);\n });\n this.QRCodeShow = true;\n },\n onCopy: function onCopy() {\n this.$message({\n type: \"success\",\n message: \"复制成功\"\n });\n },\n onError: function onError() {\n this.$message({\n type: \"error\",\n message: \"复制失败\"\n });\n },\n downloadQRCode: function downloadQRCode() {\n var canvas = document.getElementById(\"QRCode\");\n var a = document.createElement(\"a\");\n a.download = \"二维码.jpg\";\n a.href = canvas.toDataURL();\n a.dispatchEvent(new MouseEvent('click'));\n }\n },\n created: function created() {\n var _this3 = this;\n\n this.asideShow = this.currentSwitchValue;\n this.isAsideShow = this.currentSwitchValue;\n var pageBean = {\n pageBean: {\n page: \"1\",\n pageSize: \"10\",\n showTotal: \"true\"\n }\n }; //初次加载默认pageBean\n\n this.$store.dispatch(\"storeProcess/getFlowListByPagination\", pageBean).then(function () {\n //页面加载调用tudo.js里面的分页方法\n _this3.fullscreenLoading = false;\n });\n }\n};",null]}