{"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\\views\\statisticalReport\\components\\TableConfig.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\statisticalReport\\components\\TableConfig.vue","mtime":1679940839653},{"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":315532800000},{"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.regexp.to-string\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 CascaderCompany from '@/components/selector/CascaderCompany_.vue';\nexport default {\n name: 'tableConfig',\n components: {\n CascaderCompany: CascaderCompany\n },\n props: {\n configData: {\n type: Object,\n default: function _default() {}\n }\n },\n data: function data() {\n return {\n tableData: [],\n searchForm: {\n year: new Date().getFullYear().toString(),\n orgId: ['1419863231459102720']\n },\n loading: false,\n tableMaxHeight: 400\n };\n },\n created: function created() {\n this.findinfo();\n },\n mounted: function mounted() {\n var _this = this;\n\n this.calcTableHeight();\n this.$root.$on(\"resize\", function () {\n _this.calcTableHeight(500);\n });\n },\n methods: {\n findinfo: function findinfo() {\n var obj = this.searchForm;\n\n if (!obj.orgId || !obj.year) {\n this.$message.error('请选择年份或组织!');\n return;\n }\n\n var arr = [];\n\n for (var i in obj) {\n if (obj[i]) {\n var str = null;\n\n if (i == 'orgId') {\n str = i + '=' + obj[i][obj[i].length - 1];\n } else {\n str = i + '=' + obj[i];\n }\n\n arr.push(str);\n }\n }\n\n var querys = arr.join('&');\n this.loadData(querys);\n },\n loadData: function loadData(querys) {\n var _this2 = this;\n\n this.loading = true;\n var method = 'get';\n\n if (this.configData.method) {\n method = this.configData.method;\n }\n\n this.$http[method]('${yhxt}/' + this.configData.api + '?' + querys).then(function (res) {\n _this2.loading = false;\n _this2.tableData = res && res.data || [];\n }).catch(function () {\n _this2.loading = false;\n });\n },\n calcTableHeight: function calcTableHeight(delay) {\n var _this3 = this;\n\n // 动态计算表格的高度,自适应当前容器\n setTimeout(function () {\n if (!_this3.$refs.content) {\n return;\n }\n\n var contentHeight = _this3.$refs.content.clientHeight;\n var serchTopHeight = _this3.$refs.serchTop.clientHeight;\n _this3.tableMaxHeight = contentHeight - serchTopHeight;\n }, delay || 0);\n }\n }\n};",null]}