{"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\\doneRead.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\doneRead.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\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: 'doneRead',\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 dialogFormVisible: false,\r\n opinion: '',\r\n id: ''\r\n }\r\n },\r\n computed: {\r\n ...mapState('storeProcess',['rows','pagination','total']),\r\n currentSwitchValue(){\r\n return localStorage.doneReadAsideShow === 'true' || localStorage.doneReadAsideShow === true\r\n }\r\n },\r\n methods: {\r\n //将当前展开或者收起的值存在localStorage中\r\n handleSwitch(val){\r\n localStorage.doneReadAsideShow = val\r\n },\r\n formatDate(value) {\r\n return utils.formatDate(value.createTime)\r\n },\r\n handleClose(done) {\r\n this.dialogFormVisible = true\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 beginDate = '' //开始时间\r\n let endDate = '' //结束时间\r\n let group = 'main1' //判断条件\r\n if (this.tableData == '' && (this.date == '' || this.date == null)) {\r\n if (this.currentTree != '') {\r\n querys = [\r\n {\r\n property: '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 } else {\r\n if (this.currentTree != '') {\r\n querys = [\r\n {\r\n property: '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 property: '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 property: '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: 'id_',\r\n value: this.tableData,\r\n group: 'main1',\r\n operation: 'LIKE',\r\n relation: 'OR'\r\n }\r\n ]\r\n } else {\r\n querys = [\r\n {\r\n property: '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 property: '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: 'id_',\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 if (this.date) {\r\n beginDate = utils.formatDate(this.date[0].getTime())\r\n endDate = utils.formatDate(this.date[1].getTime())\r\n querys.push({\r\n property: '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 }\r\n if (this.defKey) {\r\n querys.push({\r\n property: '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/getNoticeDoneReadList', 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('/sysModuleInstDone/' + row.procInstId + '/read/done/' + row.id+'/'+this.defKey,newWin)\r\n }else{\r\n this.handleOpenUrl('/inst/' + row.procInstId + '/read/done/' + row.id,newWin)\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/getNoticeDoneReadList', pageBean).then(() => {\r\n //页面加载调用done.js里面的分页方法\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.getNoticeDoneReadCount({})\r\n }\r\n },\r\n created() {\r\n this.asideShow = this.currentSwitchValue\r\n this.isAsideShow = this.currentSwitchValue\r\n\r\n let querys = []\r\n if (this.defKey) {\r\n querys.push({\r\n property: '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/getNoticeDoneReadList', pageBean).then(() => {\r\n //页面加载调用done.js里面的分页方法\r\n this.fullscreenLoading = false\r\n })\r\n }\r\n}\r\n",null]}