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