收集清单 上报库 模板详情 表头排序

This commit is contained in:
zyx.net
2023-02-09 11:22:06 +08:00
parent e0af0f4f83
commit 5e13324ace
3 changed files with 19 additions and 6 deletions
@@ -10,10 +10,10 @@
:scroll="{x: '100%',y:'calc(100vh - 330px)'}"
:data-source="dataSource"
:loading="loading"
@change="tableOnChange"
sticky
:columns="columns"
:rowClassName="rowClassName"
@change="tableOnChange"
@onHeaderRow='onHeaderRow'
>
<span slot="titleName" slot-scope="text,record" :title="text">
@@ -840,9 +840,6 @@
}
})
},
tableOnChange(pagination, filters, sorter) {
console.log(pagination, filters, sorter, 'iiiiiiiiiiiiiiiii')
},
getTableListReset() {
this.formInline = {}
this.queryParamQuery = {}
@@ -915,6 +912,11 @@
cancleoperationFailed() {
this.selectedRowKeys = []
},
tableOnChange(pagination, filters, sorter) {
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
this.orderByField = sorter.columnKey
this.getTableList()
},
getTableList(currentPersonRole) {
let paramsManifestid
let url
@@ -935,6 +937,8 @@
pageSize: this.pageSize,
userTypes: this.currentPersonRole || currentPersonRole,
paramsManifestId: paramsManifestid,
orderBy: this.orderBy,
orderByField: this.orderByField,
...this.formInline,
...currentPersonRole,
...this.queryParamQuery
@@ -636,7 +636,9 @@
})
},
tableOnChange(pagination, filters, sorter) {
console.log(pagination, filters, sorter, 'iiiiiiiiiiiiiiiii')
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
this.orderByField = sorter.columnKey
this.getTableList()
},
getTableListReset() {
let params = {
@@ -709,6 +711,8 @@
let params = {
pageNo: this.pageNo,
pageSize: this.pageSize,
orderBy: this.orderBy,
orderByField: this.orderByField,
userTypes: this.currentPersonRole || currentPersonRole,
paramsManifestId: paramsManifestid,
...this.formInline
@@ -181,12 +181,14 @@ export default {
align: 'left',
dataIndex: 'dutyTerritory_dictText',
width: 150,
sorter: true,
ellipsis: true,
},
{
title: this.$t('created'),
align: 'left',
dataIndex: 'createTime',
sorter: true,
width: 180,
ellipsis: true,
},
@@ -210,8 +212,11 @@ export default {
},
handleTableChange(pagination, filters, sorter) {
let _i = sorter.order === 'descend' ? 'asc': 'desc'
if(sorter.columnKey == 'dutyTerritory_dictText'){
sorter.columnKey = 'dutyTerritory'
}
let _tt = {
orderByField: 'nioNumber',
orderByField: sorter.columnKey,
orderBy: _i
}
this.queryParam = {