{"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\\views\\projectManagent\\Merge.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\views\\projectManagent\\Merge.vue","mtime":1675214578105},{"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.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.array.from\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.to-string\";\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n  props: {\n    htTable: {\n      type: Object\n    },\n    row: {\n      type: Object\n    }\n  },\n  data: function data() {\n    return {\n      dialogVisible: false,\n      single: true,\n      merged: false,\n      fullscreenLoading: false,\n      selectedId: '',\n      activeRow: {},\n      pageBean: {\n        page: 1,\n        pageSize: 20,\n        total: 0\n      },\n      data: [],\n      elTable: null,\n      ids: []\n    };\n  },\n  methods: {\n    openDialog: function openDialog() {\n      this.ids = [];\n      this.elTable = this.htTable;\n      if (this.htTable.$refs && this.htTable.$refs.htTable) {\n        this.elTable = this.htTable.$refs.htTable;\n      }\n      console.log(this.elTable.selection, this.row);\n      if (this.elTable && this.elTable.selection && this.elTable.selection.length == 0 && !this.row) {\n        this.$message.error('请至少选择一条数据');\n        return;\n      }\n      if (this.row) {\n        this.ids.push(this.row.id);\n      } else {\n        var _iterator = _createForOfIteratorHelper(this.elTable.selection),\n          _step;\n        try {\n          for (_iterator.s(); !(_step = _iterator.n()).done;) {\n            var item = _step.value;\n            this.ids.push(item.id);\n          }\n        } catch (err) {\n          _iterator.e(err);\n        } finally {\n          _iterator.f();\n        }\n      }\n      this.dialogVisible = true;\n    },\n    cancelConfirm: function cancelConfirm() {\n      this.dialogVisible = false;\n      this.merged = false;\n    },\n    handleMerged: function handleMerged() {\n      this.merged = true;\n    },\n    submitMerge: function submitMerge() {\n      var _this = this;\n      this.fullscreenLoading = true;\n      var param = {\n        parentId: this.selectedId,\n        projectIds: this.ids.join(',')\n      };\n      this.$http.post('${cqxy}/biz/projectManagement/pm/v1/mergeItems', param).then(function (res) {\n        if (res.data.state) {\n          _this.$emit('load');\n          _this.dialogVisible = false;\n          _this.$message.success(res.data.message);\n        } else {\n          _this.$message.error(res.data.message);\n        }\n        _this.fullscreenLoading = false;\n      });\n    },\n    handleMergeNew: function handleMergeNew() {\n      this.$emit('mergeNewProject', this.ids.join(','));\n    },\n    rowClick: function rowClick(row) {\n      this.activeRow = row;\n      this.selectedId = row.id;\n    },\n    loadData: function loadData(param, cb) {\n      var _this2 = this;\n      this.$http.post('${cqxy}/biz/projectManagement/pm/v1/page', param).then(function (resp) {\n        var response = resp.data.value;\n        _this2.data = response.rows;\n        _this2.pageBean = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      }, function (error) {\n        reject(error);\n      }).finally(function () {\n        if (cb) {\n          cb();\n        }\n      });\n    }\n  }\n};",null]}