参数导出模板管理--适用地区没有表头排序
参数模板管理-表头有两个适用地区
This commit is contained in:
@@ -181,12 +181,19 @@ export default {
|
|||||||
dataIndex: 'description',
|
dataIndex: 'description',
|
||||||
// scopedSlots: { customRender: 'titleName' }
|
// scopedSlots: { customRender: 'titleName' }
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// title: this.$t('zoneOfApplication'),
|
||||||
|
// align: 'center',
|
||||||
|
// width: 160,
|
||||||
|
// ellipsis: true,
|
||||||
|
// dataIndex: 'region_dictText',
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
title: this.$t('zoneOfApplication'),
|
title: this.$t('creater'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 160,
|
width: 120,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
dataIndex: 'region_dictText',
|
dataIndex: 'createBy'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('created'),
|
title: this.$t('created'),
|
||||||
|
|||||||
@@ -182,6 +182,7 @@ export default {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'region_dictText',
|
dataIndex: 'region_dictText',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
width: 200
|
width: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -363,6 +364,8 @@ export default {
|
|||||||
this.orderByField = 'template_name'
|
this.orderByField = 'template_name'
|
||||||
} else if(sorter.columnKey == 'updateTime') {
|
} else if(sorter.columnKey == 'updateTime') {
|
||||||
this.orderByField = 'update_time'
|
this.orderByField = 'update_time'
|
||||||
|
} else if(sorter.columnKey == 'region_dictText') {
|
||||||
|
this.orderByField = 'region'
|
||||||
} else{
|
} else{
|
||||||
this.orderByField = sorter.columnKey
|
this.orderByField = sorter.columnKey
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -237,6 +237,11 @@
|
|||||||
}
|
}
|
||||||
getAction(`params/report/pageForManifest`, params).then(res => {
|
getAction(`params/report/pageForManifest`, params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.loadData()
|
||||||
|
return
|
||||||
|
}
|
||||||
this.areaTable = [...res.result.records]
|
this.areaTable = [...res.result.records]
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user