diff --git a/src/components/selection/EnterprisePlanSelectionModal.vue b/src/components/selection/EnterprisePlanSelectionModal.vue index ab8641d4..8e79a809 100644 --- a/src/components/selection/EnterprisePlanSelectionModal.vue +++ b/src/components/selection/EnterprisePlanSelectionModal.vue @@ -366,7 +366,7 @@ export default { this.selectedRowList = row }, handleCancel () { - this.visible = false + this.close() }, handleSubmit () { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { @@ -374,10 +374,24 @@ export default { this.$emit('change', this.selectedRowKeys.join(',')) this.$emit('standardNumberChange', standardNumberList.join(',')) this.$emit('listChange', this.selectedRowList) - this.visible = false + this.close() } else { this.$message.warning(this.$t('selectLeastOne')) } + }, + close () { + this.visible = false + this.ipagination = { + current: 1, + pageSize: 10, + pageSizeOptions: ['10', '30', '50', '100', '150', '200'], + showTotal: (total, range) => { + return range[0] + '-' + range[1] + ' ' + this.$t('total') + ' ' + total + ' ' + this.$t('strip') + }, + showQuickJumper: true, + showSizeChanger: true, + total: 0 + } } } } diff --git a/src/components/selection/EnterpriseRecheckPlanSelectionModal.vue b/src/components/selection/EnterpriseRecheckPlanSelectionModal.vue index 3fb1ba1f..98866432 100644 --- a/src/components/selection/EnterpriseRecheckPlanSelectionModal.vue +++ b/src/components/selection/EnterpriseRecheckPlanSelectionModal.vue @@ -269,7 +269,7 @@ export default { this.selectedRowList = row }, handleCancel () { - this.visible = false + this.close() }, handleSubmit () { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { @@ -277,10 +277,24 @@ export default { this.$emit('change', this.selectedRowKeys.join(',')) this.$emit('standardNumberChange', standardNumberList.join(',')) this.$emit('listChange', this.selectedRowList) - this.visible = false + this.close() } else { this.$message.warning(this.$t('selectLeastOne')) } + }, + close () { + this.visible = false + this.ipagination = { + current: 1, + pageSize: 10, + pageSizeOptions: ['10', '30', '50', '100', '150', '200'], + showTotal: (total, range) => { + return range[0] + '-' + range[1] + ' ' + this.$t('total') + ' ' + total + ' ' + this.$t('strip') + }, + showQuickJumper: true, + showSizeChanger: true, + total: 0 + } } } } diff --git a/src/components/selection/StandardSelectionModal.vue b/src/components/selection/StandardSelectionModal.vue index 7cdcbabb..9229e776 100644 --- a/src/components/selection/StandardSelectionModal.vue +++ b/src/components/selection/StandardSelectionModal.vue @@ -263,7 +263,7 @@ export default { this.replacePage() }, handleCancel () { - this.visible = false + this.close() }, handleSubmit () { const serialNumber = [] @@ -276,11 +276,25 @@ export default { this.$emit('change', serialNumber.join(',')) this.$emit('nameChange', serialNameArr.join(',')) this.$emit('listChange', this.selectedRowList) - this.visible = false + this.close() } else { this.$message.warning(this.$t('selectLeastOne')) } }, + close () { + this.visible = false + this.ipagination = { + current: 1, + pageSize: 10, + pageSizeOptions: ['10', '30', '50', '100', '150', '200'], + showTotal: (total, range) => { + return range[0] + '-' + range[1] + ' ' + this.$t('total') + ' ' + total + ' ' + this.$t('strip') + }, + showQuickJumper: true, + showSizeChanger: true, + total: 0 + } + }, handleTypeChange () { this.$forceUpdate() },