{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\components\\selector\\LoadSelect.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\components\\selector\\LoadSelect.vue","mtime":1709921676138},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.number.constructor\";\n//\n//\n//\n//\n//\n//\n//\n//\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 name: 'LoadSelect',\n props: {\n value: {\n type: String,\n default: ''\n },\n // 列表数据\n data: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n dictLabel: {\n type: String,\n default: 'label'\n },\n dictValue: {\n type: String,\n default: 'value'\n },\n // 调用页数的接口\n request: {\n type: Function,\n default: function _default() {}\n },\n page: {\n type: [Number, String],\n default: 1\n },\n // 是否还有更多数据\n isHasMore: {\n type: Boolean,\n default: true\n }\n },\n data: function data() {\n return {\n loading: false,\n keyword: '',\n loadingFull: false\n };\n },\n methods: {\n // 请求下一页的数据\n loadMore: function loadMore() {\n var _this = this;\n // 如果没有更多数据,则不请求\n if (!this.isHasMore) {\n return;\n }\n // 如果 intercept 属性为 true 则不请求数据\n if (this.loadMore.intercept) {\n return;\n }\n this.loadMore.intercept = true;\n this.loading = true;\n this.request({\n page: this.page + 1,\n keyword: this.keyword,\n more: true\n }).then(function () {\n _this.loading = false;\n // 接口响应之后才把 intercept 设置为 false\n _this.loadMore.intercept = false;\n });\n },\n // 选中下拉框没有数据时,自动请求第一页的数据\n focus: function focus() {\n var _this2 = this;\n if (!this.data.length) {\n this.loading = true;\n this.request({\n page: 1\n }).then(function () {\n _this2.loading = false;\n });\n }\n },\n // 关键字搜索\n handleSearch: function handleSearch(keyword) {\n var _this3 = this;\n this.keyword = keyword;\n this.loadingFull = true;\n this.request({\n page: 1,\n keyword: keyword\n }).then(function () {\n _this3.loadingFull = false;\n });\n },\n // 删除选中时,如果请求了关键字,则清除关键字再请求第一页的数据\n clear: function clear() {\n var _this4 = this;\n if (this.keyword) {\n this.loadingFull = true;\n this.keyword = '';\n this.request({\n page: 1\n }).then(function () {\n _this4.loadingFull = false;\n });\n }\n },\n handleChange: function handleChange(id) {\n var data = this.data;\n var value = data.filter(function (i) {\n return i.id === id;\n })[0];\n this.$emit('loadSelectChange', value);\n }\n }\n};",null]}