{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\components\\common\\HtLoadData.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\components\\common\\HtLoadData.vue","mtime":1667280203826},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/examine-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\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\n var response;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n 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\n case 3:\n response = _context.sent;\n this.$emit(\"update:url\", \"\");\n this.$emit(\"after-load-data\", response.data);\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function getData() {\n return _getData.apply(this, arguments);\n }\n\n return getData;\n }(),\n loadData: function () {\n var _loadData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(url) {\n var _this2 = this;\n\n var response;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n 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\n case 3:\n response = _context2.sent;\n return _context2.abrupt(\"return\", response.data);\n\n case 5:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function loadData(_x) {\n return _loadData.apply(this, arguments);\n }\n\n return loadData;\n }()\n }\n};",null]}