{"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":1706175429381},{"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.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//\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// import CascaderCompany from '@/components/selector/CascaderCompany_.vue'\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 roadId: '',\n orgId: ['1419863231459102720']\n },\n cissueDate: '',\n loading: false,\n tableMaxHeight: 400,\n pickerOption: {\n disabledDate: function disabledDate(time) {\n return time.getTime() > Date.now();\n }\n },\n yearPickerOption: {\n disabledDate: function disabledDate(time) {\n return time.getFullYear() > new Date().getFullYear();\n }\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n property: 'ascriptionYear',\n relation: 'AND',\n value: ''\n }]\n };\n },\n created: function created() {\n if (this.configData.params) {\n this.load();\n } else {\n this.findinfo();\n }\n },\n mounted: function mounted() {\n var _this = this;\n this.calcTableHeight();\n this.$root.$on('resize', function () {\n _this.calcTableHeight(500);\n });\n },\n methods: {\n handleReset: function handleReset() {\n this.searchForm = {\n year: new Date().getFullYear().toString(),\n roadId: '',\n orgId: ['1419863231459102720']\n };\n this.findinfo();\n },\n handleYearChange: function handleYearChange() {\n this.cissueDate = '';\n },\n handleTimeChange: function handleTimeChange(time) {\n this.searchForm.startDate = time[0];\n this.searchForm.endDate = time[1];\n },\n findinfo: function findinfo() {\n var obj = JSON.stringify(this.searchForm);\n obj = JSON.parse(obj);\n var _obj = obj,\n roadId = _obj.roadId;\n if (roadId) {\n delete obj.orgId;\n }\n // if (!obj.orgId || !obj.year) {\n // this.$message.error('请选择年份或组织!')\n // return\n // }\n var arr = [];\n for (var i in obj) {\n if (obj[i]) {\n // if (i == 'cissueDate' && obj[i] && obj[i].length !== 0) {\n // this.querys.push({\n // group: 'main',\n // operation: 'GREAT_EQUAL',\n // property: 'startDate',\n // relation: 'AND',\n // value: obj[i][0],\n // })\n // this.querys.push({\n // group: 'main',\n // operation: 'LESS_EQUAL',\n // property: 'endDate',\n // relation: 'AND',\n // value: obj[i][1],\n // })\n // }\n var str = null;\n if (i == 'orgId') {\n str = i + '=' + obj[i][obj[i].length - 1];\n } else {\n str = i + '=' + obj[i];\n }\n arr.push(str);\n }\n }\n var querys = arr.join('&');\n if (this.configData.params) {\n this.load(querys);\n } else {\n this.loadData(querys);\n }\n },\n loadData: function loadData(querys) {\n var _this2 = this;\n this.loading = true;\n var method = 'get';\n if (this.configData.method) {\n method = this.configData.method;\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 load: function load(querys) {\n var _this3 = this;\n this.loading = true;\n this.querys[0].value = this.searchForm.year;\n this.configData.params.querys = this.querys;\n this.$http.post('${yhxt}/' + this.configData.api, this.configData.params).then(function (res) {\n _this3.loading = false;\n _this3.tableData = res && res.data && res.data.rows || [];\n }).catch(function () {\n _this3.loading = false;\n });\n },\n calcTableHeight: function calcTableHeight(delay) {\n var _this4 = this;\n // 动态计算表格的高度,自适应当前容器\n setTimeout(function () {\n if (!_this4.$refs.content) {\n return;\n }\n var contentHeight = _this4.$refs.content.clientHeight;\n var serchTopHeight = _this4.$refs.serchTop.clientHeight;\n _this4.tableMaxHeight = contentHeight - serchTopHeight;\n }, delay || 0);\n }\n }\n};",null]}