{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\components\\flow\\myDelegate.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\flow\\myDelegate.vue","mtime":1675214577089},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.string.starts-with\";\nimport \"core-js/modules/es6.regexp.search\";\nimport _defineProperty from \"D:/jenkins/workspace/xypm-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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';\nexport default {\n  name: 'myDelegate',\n  components: {\n    FlowTree: FlowTree\n  },\n  props: {\n    defKey: {\n      type: String,\n      default: ''\n    }\n  },\n  data: function data() {\n    return {\n      isAsideShow: false,\n      asideShow: false,\n      tableData: '',\n      date: '',\n      currentTree: '',\n      fullscreenLoading: true\n    };\n  },\n  computed: _objectSpread(_objectSpread({}, mapState('storeProcess', ['rows', 'pagination', 'total'])), {}, {\n    currentSwitchValue: function currentSwitchValue() {\n      return localStorage.myDelegateAsideShow === 'true' || localStorage.myDelegateAsideShow === true;\n    }\n  }),\n  methods: {\n    //将当前展开或者收起的值存在localStorage中\n    handleSwitch: function handleSwitch(val) {\n      localStorage.myDelegateAsideShow = val;\n    },\n    //根据任务ID收回转办任务\n    delBpmTaskMyDelegateById: function delBpmTaskMyDelegateById(row) {\n      var _this = this;\n      this.$confirm('确认收回此任务?', '提示', {\n        cancelButtonText: '取消',\n        confirmButtonText: '确定',\n        type: 'warning',\n        closeOnClickModal: false\n      }).then(function () {\n        _this.$store.dispatch('storeProcess/retrieveBpmTask', row.taskId).then(function () {\n          _this.search();\n        });\n      });\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      if (keyCode == 13) {\n        this.search('find');\n      }\n    },\n    // 查询\n    search: function search(str) {\n      var _this2 = this;\n      this.openFullScreen();\n      if (str == 'find') {\n        this.$store.dispatch('storeProcess/setPaginationPageNum', 1);\n      }\n      var querys = []; //查询条件\n      var queryFilter = {};\n      var pageBean = {\n        pageBean: this.pagination\n      };\n      var beginDate = ''; //开始时间\n      var endDate = ''; //结束时间\n      var group = 'main1'; //判断条件\n      if (this.tableData == '' && (this.date == '' || this.date == null)) {\n        if (this.currentTree != '') {\n          querys = [{\n            property: 'a.type_id_',\n            value: this.currentTree,\n            group: 'typeId',\n            operation: 'IN',\n            relation: 'AND'\n          }];\n        }\n      } else {\n        if (this.currentTree != '') {\n          querys = [{\n            property: 'a.type_id_',\n            value: this.currentTree,\n            group: 'typeId',\n            operation: 'IN',\n            relation: 'AND'\n          }, {\n            property: 'a.task_subject_',\n            value: this.tableData,\n            group: 'main1',\n            operation: 'LIKE',\n            relation: 'OR'\n          }, {\n            property: 'a.proc_inst_id_',\n            value: this.tableData,\n            group: 'main1',\n            operation: 'LIKE',\n            relation: 'OR'\n          }, {\n            property: 'a.task_name_',\n            value: this.tableData,\n            group: 'main1',\n            operation: 'LIKE',\n            relation: 'OR'\n          }];\n        } else {\n          querys = [{\n            property: 'a.task_subject_',\n            value: this.tableData,\n            group: 'main1',\n            operation: 'LIKE',\n            relation: 'OR'\n          }, {\n            property: 'a.proc_inst_id_',\n            value: this.tableData,\n            group: 'main1',\n            operation: 'LIKE',\n            relation: 'OR'\n          }, {\n            property: 'a.task_name_',\n            value: this.tableData,\n            group: 'main1',\n            operation: 'LIKE',\n            relation: 'OR'\n          }];\n        }\n        if (this.tableData != '' && this.date != '' && this.date != null) {\n          group = 'time';\n        }\n        if (this.date != null && this.date != '') {\n          beginDate = utils.formatDate(this.date[0].getTime());\n          endDate = utils.formatDate(this.date[1].getTime());\n          querys.push({\n            property: 'a.create_time_',\n            value: [beginDate, endDate],\n            group: group,\n            operation: 'BETWEEN',\n            relation: 'AND'\n          });\n        }\n      }\n      if (this.defKey) {\n        querys.push({\n          property: 'hi.proc_def_key_',\n          value: this.defKey,\n          operation: 'EQUAL',\n          relation: 'AND'\n        });\n      }\n      queryFilter = {\n        pageBean: this.pagination,\n        querys: querys\n      };\n      this.$store.dispatch('storeProcess/getDelegate', queryFilter).then(function () {\n        _this2.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 (this.defKey) {\n        this.handleOpenUrl('/sysModuleInstRead/' + row.procInstId + '/delegate/' + this.defKey, newWin);\n      } else {\n        this.handleOpenUrl('/instRead/' + row.procInstId + '/delegate', newWin);\n      }\n    },\n    handleOpenUrl: function handleOpenUrl(url, newWin) {\n      if (!newWin) {\n        this.$router.push(url);\n        return;\n      }\n      if (!url) {\n        return;\n      }\n      var token = this.$store.state.login.currentUser.token;\n      if (!url.toLowerCase().startsWith(\"http\")) {\n        url = window.context.front + url;\n      }\n      if (url.indexOf('?') == -1) {\n        url = url + \"?token=\" + token;\n      } else {\n        url = url + \"&token=\" + token;\n      }\n      window.open(url, \"_blank\");\n    },\n    //子组件传值父组件(待办分类查询)\n    getCurrent: function getCurrent(data) {\n      var _this3 = this;\n      if (data.id == 6) {\n        this.currentTree = '';\n        this.openFullScreen();\n        var pageBean = {\n          pageBean: this.pagination\n        };\n        this.$store.dispatch('storeProcess/getDelegate', pageBean).then(function () {\n          _this3.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      for (var i = 0; i < arr.length; i++) {\n        this.getFlowTrees(arr[i], ids);\n      }\n    },\n    loadCount: function loadCount() {\n      return process.getDelegateCount({});\n    }\n  },\n  created: function created() {\n    var _this4 = this;\n    this.asideShow = this.currentSwitchValue;\n    this.isAsideShow = this.currentSwitchValue;\n    var querys = [];\n    if (this.defKey) {\n      querys.push({\n        property: 'hi.proc_def_key_',\n        value: this.defKey,\n        operation: 'EQUAL',\n        relation: 'AND'\n      });\n    }\n    var pageBean = {\n      pageBean: {\n        page: '1',\n        pageSize: '10',\n        showTotal: 'true'\n      },\n      querys: querys\n    }; //初次加载默认pageBean\n    this.$store.dispatch('storeProcess/getDelegate', pageBean).then(function () {\n      //页面加载调用tudo.js里面的分页方法\n      _this4.fullscreenLoading = false;\n    });\n  }\n};",null]}