{"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\\common\\HtLoadData.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\common\\HtLoadData.vue","mtime":1675214576620},{"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 \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/xypm-web/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\n//\n//\n//\n//\n\nimport req from \"@/request.js\";\nexport default {\n  name: \"ht-load-data\",\n  props: {\n    url: {\n      type: String,\n      default: \"\"\n    },\n    requestMethod: {\n      type: String,\n      default: \"GET\"\n    },\n    context: {\n      type: String,\n      default: \"\"\n    }\n  },\n  data: function data() {\n    return {\n      fullscreenLoading: false\n    };\n  },\n  watch: {\n    url: {\n      handler: function handler(newVal, oldValue) {\n        if (newVal && newVal != oldValue) {\n          this.getData();\n        }\n      },\n      immediate: true\n    }\n  },\n  mounted: function mounted() {},\n  methods: {\n    getData: function () {\n      var _getData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n        var _this = this;\n        var response;\n        return regeneratorRuntime.wrap(function _callee$(_context) {\n          while (1) switch (_context.prev = _context.next) {\n            case 0:\n              this.fullscreenLoading = true;\n              _context.next = 3;\n              return req.request({\n                url: \"\".concat(window.context[this.context]) + this.url,\n                method: this.requestMethod\n              }).finally(function () {\n                _this.fullscreenLoading = false;\n              });\n            case 3:\n              response = _context.sent;\n              this.$emit(\"update:url\", \"\");\n              this.$emit(\"after-load-data\", response.data);\n            case 6:\n            case \"end\":\n              return _context.stop();\n          }\n        }, _callee, this);\n      }));\n      function getData() {\n        return _getData.apply(this, arguments);\n      }\n      return getData;\n    }(),\n    loadData: function () {\n      var _loadData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(url) {\n        var _this2 = this;\n        var response;\n        return regeneratorRuntime.wrap(function _callee2$(_context2) {\n          while (1) switch (_context2.prev = _context2.next) {\n            case 0:\n              this.fullscreenLoading = true;\n              _context2.next = 3;\n              return req.request({\n                url: url,\n                method: this.requestMethod\n              }).finally(function () {\n                _this2.fullscreenLoading = false;\n              });\n            case 3:\n              response = _context2.sent;\n              return _context2.abrupt(\"return\", response.data);\n            case 5:\n            case \"end\":\n              return _context2.stop();\n          }\n        }, _callee2, this);\n      }));\n      function loadData(_x) {\n        return _loadData.apply(this, arguments);\n      }\n      return loadData;\n    }()\n  }\n};",null]}