{"remainingRequest":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cssc-fvue\\src\\components\\eipControl\\EipSubPagination.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cssc-fvue\\src\\components\\eipControl\\EipSubPagination.vue","mtime":1667804639118},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\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//\nimport utils from \"@/hotent-ui-util.js\";\nimport SubPagination from \"@/components/eipControl/bus/SubPagination.js\";\nexport default {\n name: \"eip-sub-pagination\",\n props: {\n currentPage: {\n type: Number,\n default: 1\n },\n layout: {\n type: String,\n default: \"total, sizes, prev, pager, next, jumper\"\n },\n pageSizes: {\n type: Array,\n default: function _default() {\n return [15, 50, 100, 200, 300];\n }\n },\n pageSize: {\n type: Number,\n default: 15\n },\n hideOnSinglePage: {\n type: Boolean,\n default: false\n },\n rows: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n dataSubname: {\n type: String,\n required: true\n }\n },\n data: function data() {\n return {\n myCurrentPage: 1,\n myPageSize: 100,\n total: 0\n };\n },\n watch: {\n currentPage: {\n handler: function handler(newVal) {\n this.myCurrentPage = newVal;\n },\n immediate: true\n },\n pageSize: {\n handler: function handler(newVal) {\n this.myPageSize = newVal;\n },\n immediate: true\n },\n rows: {\n handler: function handler(newVal, oldVal) {\n if (!newVal || newVal.constructor != Array) {\n throw \"EipSubPagination组件的rows属性只能传入数组\";\n } // 子表数据变化时更新分页总数\n\n\n this.total = newVal.length;\n },\n immediate: true\n }\n },\n mounted: function mounted() {\n this.paginationChange();\n },\n destroyed: function destroyed() {\n SubPagination.clear(this.dataSubname);\n },\n methods: {\n paginationChange: function paginationChange() {\n // 分页变化时,以dataPath为key设置到公共的js对象中\n SubPagination.set(this.dataSubname, {\n rows: this.rows,\n currentPage: this.myCurrentPage,\n pageSize: this.myPageSize\n });\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.myCurrentPage = val;\n this.paginationChange();\n },\n handleSizeChange: function handleSizeChange(val) {\n this.myPageSize = val;\n this.paginationChange();\n }\n }\n};",null]}