{"remainingRequest":"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\\myRead.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\myRead.vue","mtime":1667327529403},{"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":["//\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//\n\r\nimport {mapState, mapActions} from 'vuex'\r\nimport FlowTree from '@/components/flow/flowTree.vue'\r\nimport utils from '@/utils.js'\r\nimport process from '@/api/process.js'\r\n\r\nexport default {\r\n name: 'myRead',\r\n components: {\r\n FlowTree\r\n },\r\n props: {\r\n defKey: {\r\n type: String,\r\n default: ''\r\n }\r\n },\r\n data() {\r\n return {\r\n isAsideShow:false,\r\n asideShow:false,\r\n tableData: '',\r\n date: '',\r\n currentTree: '',\r\n fullscreenLoading: true\r\n }\r\n },\r\n computed: {\r\n ...mapState('storeProcess',['rows','pagination','total']),\r\n currentSwitchValue(){\r\n return localStorage.myReadAsideShow === 'true' || localStorage.myReadAsideShow === true\r\n }\r\n },\r\n methods: {\r\n //将当前展开或者收起的值存在localStorage中\r\n handleSwitch(val){\r\n localStorage.myReadAsideShow = val\r\n },\r\n //根据ID主键ID删除传阅任务\r\n delBpmTaskNoticeById(row) {\r\n this.$confirm('确认撤回此任务?', '提示', {\r\n cancelButtonText: '取消',\r\n confirmButtonText: '确定',\r\n type: 'warning',\r\n closeOnClickModal: false\r\n }).then(() => {\r\n this.$store.dispatch('storeProcess/delBpmTaskNoticeById', row.id).then(() => {\r\n this.search()\r\n })\r\n })\r\n },\r\n //Loading 加载中\r\n openFullScreen() {\r\n this.fullscreenLoading = true\r\n },\r\n handleSizeChange: function(size) {\r\n //每页下拉显示数据\r\n this.$store.dispatch('storeProcess/setPaginationSize', size)\r\n this.search()\r\n },\r\n handleCurrentChange: function(currentPage) {\r\n //点击第几页\r\n this.$store.dispatch('storeProcess/setPaginationPageNum', currentPage)\r\n this.search()\r\n },\r\n //回车查询\r\n searchEnterFun: function(e) {\r\n var keyCode = window.event ? e.keyCode : e.which\r\n if (keyCode == 13) {\r\n this.search('find')\r\n }\r\n },\r\n // 查询\r\n search(str) {\r\n this.openFullScreen()\r\n if (str == 'find') {\r\n this.$store.dispatch('storeProcess/setPaginationPageNum', 1)\r\n }\r\n let querys = [] //查询条件\r\n let queryFilter = {}\r\n let pageBean = {pageBean: this.pagination}\r\n let group = 'main1' //判断条件\r\n if (this.tableData) {\r\n querys = [\r\n {\r\n property: 'bpm_pro_inst.subject_',\r\n value: this.tableData,\r\n group: 'main1',\r\n operation: 'LIKE',\r\n relation: 'OR'\r\n },\r\n {\r\n property: 'bpm_task_notice.proc_inst_id_',\r\n value: this.tableData,\r\n group: 'main1',\r\n operation: 'LIKE',\r\n relation: 'OR'\r\n },\r\n {\r\n property: 'bpm_pro_inst.proc_def_name_',\r\n value: this.tableData,\r\n group: 'main1',\r\n operation: 'LIKE',\r\n relation: 'OR'\r\n }\r\n ]\r\n }\r\n\r\n if (this.currentTree) {\r\n querys.push({\r\n property: 'bpm_pro_inst.type_id_',\r\n value: this.currentTree,\r\n group: 'typeId',\r\n operation: 'IN',\r\n relation: 'AND'\r\n })\r\n }\r\n\r\n if (this.date) {\r\n let beginDate = utils.formatDate(this.date[0].getTime()) //开始时间\r\n let endDate = utils.formatDate(this.date[1].getTime()) //结束时间\r\n querys.push({\r\n property: 'bpm_task_notice.create_time_',\r\n value: [beginDate, endDate],\r\n group: 'time',\r\n operation: 'BETWEEN',\r\n relation: 'AND'\r\n })\r\n }\r\n if (this.defKey) {\r\n querys.push({\r\n property: 'bpm_pro_inst.proc_def_key_',\r\n value: this.defKey,\r\n operation: 'EQUAL',\r\n relation: 'AND'\r\n })\r\n }\r\n queryFilter = {pageBean: this.pagination, querys}\r\n this.$store.dispatch('storeProcess/getMyNoticeReadList', queryFilter).then(() => {\r\n this.fullscreenLoading = false\r\n })\r\n },\r\n //重置\r\n reset() {\r\n this.tableData = ''\r\n this.date = ''\r\n this.search('find')\r\n },\r\n handleRowClick(row,newWin) {\r\n if (this.defKey){\r\n this.handleOpenUrl('/sysModuleInstMyRead/' + row.procInstId + '/' + row.id + '/myRead/'+this.defKey,newWin)\r\n } else{\r\n this.handleOpenUrl('/myRead/' + row.procInstId + '/' + row.id + '/myRead',newWin)\r\n }\r\n\r\n },\r\n handleOpenUrl(url,newWin){\r\n if(!newWin){\r\n this.$router.push(url);\r\n return ;\r\n }\r\n if(!url){\r\n return ;\r\n }\r\n let token = this.$store.state.login.currentUser.token;\r\n if(!url.toLowerCase().startsWith(\"http\")){\r\n url = window.context.front + url;\r\n }\r\n if(url.indexOf('?') == -1){\r\n url = url + \"?token=\" + token;\r\n }else{\r\n url = url + \"&token=\" + token;\r\n }\r\n window.open(url,\"_blank\");\r\n },\r\n //子组件传值父组件(待办分类查询)\r\n getCurrent(data) {\r\n if (data.id == 6) {\r\n this.currentTree = ''\r\n this.openFullScreen()\r\n let pageBean = {pageBean: this.pagination}\r\n this.$store.dispatch('storeProcess/getMyNoticeReadList', pageBean).then(() => {\r\n this.fullscreenLoading = false\r\n })\r\n } else {\r\n let ids = []\r\n this.getFlowTrees(data, ids)\r\n this.currentTree = ids.join(',')\r\n this.search('find')\r\n }\r\n },\r\n getFlowTrees(data, ids) {\r\n ids.push(data.id)\r\n let arr = data.children\r\n for (var i = 0; i < arr.length; i++) {\r\n this.getFlowTrees(arr[i], ids)\r\n }\r\n },\r\n loadCount() {\r\n return process.getMyNoticeReadCount({})\r\n }\r\n },\r\n created() {\r\n this.asideShow = this.currentSwitchValue\r\n this.isAsideShow = this.currentSwitchValue\r\n let querys = []\r\n if (this.defKey) {\r\n querys.push({\r\n property: 'bpm_pro_inst.proc_def_key_',\r\n value: this.defKey,\r\n operation: 'EQUAL',\r\n relation: 'AND'\r\n })\r\n }\r\n let pageBean = {\r\n pageBean: {page: '1', pageSize: '10', showTotal: 'true'},\r\n querys\r\n } //初次加载默认pageBean\r\n this.$store.dispatch('storeProcess/getMyNoticeReadList', pageBean).then(() => {\r\n //页面加载调用tudo.js里面的分页方法\r\n this.fullscreenLoading = false\r\n })\r\n }\r\n}\r\n",null]}