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,8 +22,7 @@
:loading="loading"
:pagination="false"
:row-selection="hasTableOperator ? { selectedRowKeys: selectedRowKeys, onChange: onSelectChange, getCheckboxProps } : null"
:scroll="{x: '100%', y: '50vh'}"
@change="tableOnChange">
:scroll="{x: '100%', y: '50vh'}">
<!-- 企标号企标名称 -->
<template v-slot:standard="{text, record}">
@@ -377,12 +376,6 @@ export default {
}
})
},
tableOnChange (pagination, filters, sorter) {
this.orderBy = sorter.order === 'ascend' ? '1' : '2'
this.orderByField = sorter.columnKey
this.ipagination = pagination
this.getTableList()
},
// 填写意见
handleWriteOpinion (record, index) {
this.$refs.writeOpinionModal.show(record, index)
@@ -15,8 +15,9 @@
:dataSource="dataSource"
:can-drag="true"
rowKey="id"
:pagination="false"
:scroll="{x: '100%',y: '50vh'}">
:pagination="ipagination"
:scroll="{x: '100%',y: '50vh'}"
@change="handleTableChange">
</j-table>
</a-spin>
</j-modal>
@@ -37,6 +38,18 @@ export default {
url: {
list: ''
},
/* 分页参数 */
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
},
dataSource: [],
columns: [
{ // 征求意见对象
@@ -75,9 +88,7 @@ export default {
this.dataSource = []
this.visible = false
},
tableOnChange (pagination, filters, sorter) {
this.orderBy = sorter.order === 'ascend' ? '1' : '2'
this.orderByField = sorter.columnKey
handleTableChange (pagination) {
this.ipagination = pagination
}
}
@@ -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()
}
}
}
@@ -13,8 +13,7 @@
rowKey="id"
:loading="loading"
:pagination="false"
:scroll="{x: '100%'}"
@change="tableOnChange">
:scroll="{x: '100%'}">
<!-- 企标号企标名称 -->
<template v-slot:standard="{text, record}">
@@ -280,12 +279,6 @@ export default {
}
})
},
tableOnChange (pagination, filters, sorter) {
this.orderBy = sorter.order === 'ascend' ? '1' : '2'
this.orderByField = sorter.columnKey
this.ipagination = pagination
this.getTableList()
},
// 获取向上第n个父节点
getNumParentNode (el, n) {
if (n < 1 || el === document.body) {
@@ -15,7 +15,7 @@
:row-selection="null"
:pagination="false"
:scroll="{x: '100%'}"
@change="tableOnChange">
@change="handleTableChange">
<!-- 企标号企标名称 -->
<template v-slot:standard="{text, record}">
@@ -133,11 +133,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()
},
// 获取所有标准号
getStandardNumbers () {