update 流程表格分页调整

This commit is contained in:
danshihao
2024-01-19 15:52:49 +08:00
parent 1e0f2ca42a
commit 40792ad0a1
9 changed files with 29 additions and 52 deletions
@@ -22,7 +22,7 @@
:row-selection="null"
:pagination="ipagination"
:scroll="{x: '100%',y: '50vh'}"
@change="tableOnChange">
@change="handleTableChange">
<!-- 整改部门 -->
<template slot="rectificationDepartment" slot-scope="{text, record}">
@@ -143,9 +143,7 @@ export default {
this.index = -1
this.visible = false
},
tableOnChange (pagination, filters, sorter) {
this.orderBy = sorter.order === 'ascend' ? '1' : '2'
this.orderByField = sorter.columnKey
handleTableChange (pagination, filters, sorter) {
this.ipagination = pagination
},
handleAdd () {
@@ -26,7 +26,7 @@
:row-selection="null"
:pagination="ipagination"
:scroll="{x: '100%',y: '50vh'}"
@change="tableOnChange">
@change="handleTableChange">
<!-- 企标号企标名称 -->
<template v-slot:standard="{text, record}">
@@ -192,9 +192,7 @@ export default {
}
})
},
tableOnChange (pagination, filters, sorter) {
this.orderBy = sorter.order === 'ascend' ? '1' : '2'
this.orderByField = sorter.columnKey
handleTableChange (pagination, filters, sorter) {
this.ipagination = pagination
},
handleAdd () {
@@ -26,7 +26,7 @@
:row-selection="null"
:pagination="ipagination"
:scroll="{x: '100%',y: '50vh'}"
@change="tableOnChange">
@change="handleTableChange">
<!-- 附件 -->
<template v-slot:file="{text, record}">
@@ -175,11 +175,8 @@ export default {
this.$emit('close')
this.visible = false
},
tableOnChange (pagination, filters, sorter) {
this.orderBy = sorter.order === 'ascend' ? '1' : '2'
this.orderByField = sorter.columnKey
handleTableChange (pagination, filters, sorter) {
this.ipagination = pagination
this.getTableList()
},
handleAdd () {
this.$refs.modalForm.add(this.model)
@@ -13,8 +13,7 @@
:rowKey="(_, index) => index"
:loading="loading"
:pagination="false"
:scroll="{x: '100%',y: '50vh'}"
@change="tableOnChange">
:scroll="{x: '100%',y: '50vh'}">
<!-- 企标号企标名称 -->
<template v-slot:standard="{text, record}">
@@ -316,12 +315,6 @@ export default {
}
})
},
tableOnChange (pagination, filters, sorter) {
this.orderBy = sorter.order === 'ascend' ? '1' : '2'
this.orderByField = sorter.columnKey
this.ipagination = pagination
this.getTableList()
},
// 稽查报告
handleInspectionReport (record, index) {
this.$refs.inspectionProcessReport.show(record, index)
@@ -40,7 +40,7 @@
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:pagination="ipagination"
:scroll="{x: '100%',y: '50vh'}"
@change="tableOnChange">
@change="handleTableChange">
<!-- 企标号企标名称 -->
<template v-slot:standard="{text, record}">
<a-tooltip overlay-class-name="tooltip-style">
@@ -198,11 +198,8 @@ export default {
}
})
},
tableOnChange (pagination, filters, sorter) {
this.orderBy = sorter.order === 'ascend' ? '1' : '2'
this.orderByField = sorter.columnKey
handleTableChange (pagination, filters, sorter) {
this.ipagination = pagination
this.getTableList()
}
}
}