diff --git a/src/views/workCenter/projectComplianceEvaluationProcess/modules/SelectStandardListDrawer.vue b/src/views/workCenter/projectComplianceEvaluationProcess/modules/SelectStandardListDrawer.vue index 28562142..65bb4c5b 100644 --- a/src/views/workCenter/projectComplianceEvaluationProcess/modules/SelectStandardListDrawer.vue +++ b/src/views/workCenter/projectComplianceEvaluationProcess/modules/SelectStandardListDrawer.vue @@ -150,7 +150,10 @@ export default { }) }, // 获取表格数据 - replacePage () { + replacePage (arg) { + if (arg === 1) { + this.ipagination.current = 1 + } const query = { ...this.queryParam, ...this.filters, @@ -177,7 +180,7 @@ export default { }) }, searchQuery () { - this.replacePage() + this.replacePage(1) }, searchReset () { // 如果禁用来源,就不重置来源 @@ -186,7 +189,7 @@ export default { } else { this.queryParam = {} } - this.replacePage() + this.replacePage(1) }, // 表格选择改变 onSelectChange (value, row) { @@ -199,6 +202,17 @@ export default { this.replacePage() }, handleCancel () { + 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 + } this.visible = false }, handleSubmit () { @@ -212,7 +226,7 @@ export default { this.$emit('change', serialNumber.join(',')) this.$emit('nameChange', serialNameArr.join(',')) this.$emit('listChange', this.selectedRowList) - this.visible = false + this.handleCancel() } else { this.$message.warning(this.$t('selectLeastOne')) }