{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/main_processing.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/main_processing.vue","mtime":1740130327257},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n\nimport axios from \"axios\";\nexport default {\n inject: [\"reload\"],\n data() {\n return {\n Navigationlists: [],\n omniselector: [],\n slidingBlock: false, //开关的v-model\n motif: \"\", //主题框的v-model\n chkReadOnly: false, //复选框的v-model\n preservation: [] //保存获取的经办事项\n };\n },\n created() {\n this.navigation();\n this.avigraph();\n this.flowcenters();\n },\n methods: {\n navigation() {\n axios({\n url: \"obpm\" + \"/runtime/flowcenters/navs/processeds\",\n method: \"get\",\n params: {\n applicationId: \"HdPeBqYwJyFyjHkhZu3\"\n }\n })\n .then(res => {\n let newData = res.data.data.map(item => {\n return {\n id: item.id,\n name: item.name\n };\n });\n this.Navigationlists = newData;\n })\n .catch(() => {\n \n });\n },\n //获取经办导航\n avigraph() {\n axios({\n url: \"obpm\" + \"/runtime/flowcenters/navs/processeds\",\n method: \"get\",\n params: {\n applicationId: \"HdPeBqYwJyFyjHkhZu3\"\n }\n })\n .then(res => {\n let newData = res.data.data[0].processedFlowList.map(item => {\n return {\n id: item.id,\n name: item.name,\n num: item.num\n };\n });\n this.omniselector = newData;\n })\n .catch(() => {\n\n });\n },\n //获取经办事项\n flowcenters() {\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/flowcenters/processeds\",\n method: \"get\",\n params: {\n title: this.motif,\n linesPerPage: 7,\n pageNo: 1\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n docId: item.docId,\n initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: item.lastProcessTime.substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = \"流程\"),\n stateLabel: item.stateLabel\n };\n });\n this.preservation = newData;\n })\n .catch(() => {\n\n });\n },\n //数据分页\n algorithm(value) {\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/flowcenters/processeds\",\n method: \"get\",\n params: {\n linesPerPage: 7,\n pageNo: value\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n docId: item.docId,\n initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: item.lastProcessTime.substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = \"流程\"),\n stateLabel: item.stateLabel\n };\n });\n this.preservation = newData;\n })\n .catch(() => {\n\n });\n },\n //清除主题框里面的数据\n eliminate() {\n this.motif = \"\";\n },\n //当主题框的内容长度为null时重新刷新\n ToRefresh() {\n if (this.motif.length === 0) {\n this.reload();\n }\n },\n //触发复选框时刷新数据\n UpdatedValue() {\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/flowcenters/processeds\",\n method: \"get\",\n params: {\n isMyWorkFlow: this.chkReadOnly\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n docId: item.docId,\n initiatorDept: item.initiatorDept,\n initiator: item.initiator,\n lastProcessTime: item.lastProcessTime.substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = \"流程\"),\n stateLabel: item.stateLabel\n };\n });\n this.preservation = newData;\n })\n .catch(() => {\n\n });\n },\n //左侧导航重新加载数据\n MediaWikiSidebar(id) {\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/flowcenters/processeds\",\n method: \"get\",\n params: {\n flowId: id\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastFlowOperation: (item.lastFlowOperation = \"流程\"),\n lastProcessTime: item.lastProcessTime.substring(5, 10),\n stateLabel: item.stateLabel\n };\n });\n this.preservation = newData;\n })\n .catch(() => {\n\n });\n },\n //点击滑块触发回调刷新数据\n reluctance() {\n axios({\n url: \"obpm\" + \"/runtime/HdPeBqYwJyFyjHkhZu3/flowcenters/processeds\",\n method: \"get\",\n params: {\n isComplete: this.slidingBlock\n }\n })\n .then(res => {\n let newData = res.data.data.datas.map(item => {\n return {\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastFlowOperation: (item.lastFlowOperation = \"流程\"),\n lastProcessTime: item.lastProcessTime.substring(5, 10),\n stateLabel: item.stateLabel\n };\n });\n this.preservation = newData;\n })\n .catch(() => {\n\n });\n }\n }\n};\n",null]}