虚拟清单详情页;项目库列表页;未符合项跟踪列表页 表格排序问题
This commit is contained in:
@@ -154,6 +154,7 @@
|
|||||||
:scroll="{x: '100%',y:'calc(100vh - 356px)'}"
|
:scroll="{x: '100%',y:'calc(100vh - 356px)'}"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
|
@change="tableOnChange"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
>
|
>
|
||||||
@@ -293,6 +294,8 @@
|
|||||||
components: {},
|
components: {},
|
||||||
visibleFile: false,
|
visibleFile: false,
|
||||||
transferList: false,
|
transferList: false,
|
||||||
|
orderBy: '1',
|
||||||
|
orderByField: '',
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
dataSourceFile: [],
|
dataSourceFile: [],
|
||||||
@@ -334,6 +337,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'serialNumber',
|
dataIndex: 'serialNumber',
|
||||||
width: 180,
|
width: 180,
|
||||||
|
sorter:true,
|
||||||
fixed: 'left',
|
fixed: 'left',
|
||||||
scopedSlots: { customRender: 'standard' }
|
scopedSlots: { customRender: 'standard' }
|
||||||
},
|
},
|
||||||
@@ -364,6 +368,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
dataIndex: 'shi4Yong4Fan4Wei2_dictText'
|
dataIndex: 'shi4Yong4Fan4Wei2_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -371,6 +376,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 100,
|
width: 100,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
dataIndex: 'state_dictText'
|
dataIndex: 'state_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -392,6 +398,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 200,
|
width: 200,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
dataIndex: 'xin1Che1Xing2Shi2Shi1Ri4Qi1'
|
dataIndex: 'xin1Che1Xing2Shi2Shi1Ri4Qi1'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -399,6 +406,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 210,
|
width: 210,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
dataIndex: 'implementTime'
|
dataIndex: 'implementTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -406,6 +414,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'wvtaId',
|
dataIndex: 'wvtaId',
|
||||||
width: 180,
|
width: 180,
|
||||||
|
sorter:true,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -420,6 +429,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 200,
|
width: 200,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
dataIndex: 'attestationRank_dictText'
|
dataIndex: 'attestationRank_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -441,6 +451,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
dataIndex: 'dutyTerritory_dictText'
|
dataIndex: 'dutyTerritory_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -743,10 +754,31 @@
|
|||||||
this.$refs.transferListRef.handleCancel()
|
this.$refs.transferListRef.handleCancel()
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
tableOnChange(pagination, filters, sorter) {
|
||||||
|
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||||
|
if(sorter.columnKey == 'shi4Yong4Fan4Wei2_dictText'){
|
||||||
|
this.orderByField = 'shi4Yong4Fan4Wei2'
|
||||||
|
} else if(sorter.columnKey == 'state_dictText') {
|
||||||
|
this.orderByField = 'state'
|
||||||
|
} else if(sorter.columnKey == 'xin1Che1Xing2Shi2Shi1Ri4Qi1') {
|
||||||
|
this.orderByField = 'xin1_che1_xing2_shi2_shi1_ri4_qi1'
|
||||||
|
} else if(sorter.columnKey == 'implementTime') {
|
||||||
|
this.orderByField = 'implement_time'
|
||||||
|
} else if(sorter.columnKey == 'dutyTerritory_dictText') {
|
||||||
|
this.orderByField = 'dutyTerritory'
|
||||||
|
} else if(sorter.columnKey == 'attestationRank_dictText') {
|
||||||
|
this.orderByField = 'attestationRank'
|
||||||
|
} else{
|
||||||
|
this.orderByField = sorter.columnKey
|
||||||
|
}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
let query = {
|
let query = {
|
||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
...this.queryParamQuery,
|
...this.queryParamQuery,
|
||||||
|
orderBy: this.orderBy,
|
||||||
|
orderByField: this.orderByField,
|
||||||
dummyInventoryBaseId: this.$route.query.id
|
dummyInventoryBaseId: this.$route.query.id
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
|
@change="tableOnChange"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
>
|
>
|
||||||
@@ -246,6 +247,8 @@
|
|||||||
],
|
],
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
administrators:false,
|
administrators:false,
|
||||||
|
orderBy: '1',
|
||||||
|
orderByField: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -269,6 +272,11 @@
|
|||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
tableOnChange(pagination, filters, sorter) {
|
||||||
|
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||||
|
this.orderByField = sorter.columnKey
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
setCreatorClick() {
|
setCreatorClick() {
|
||||||
if (this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys.length > 0) {
|
||||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
@@ -415,6 +423,8 @@
|
|||||||
let query = {
|
let query = {
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
|
orderBy: this.orderBy,
|
||||||
|
orderByField: this.orderByField,
|
||||||
...this.queryParam
|
...this.queryParam
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|||||||
@@ -120,6 +120,7 @@
|
|||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
|
@change="tableOnChange"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
@@ -203,6 +204,7 @@
|
|||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'projectName',
|
dataIndex: 'projectName',
|
||||||
width: 180,
|
width: 180,
|
||||||
|
sorter:true,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
scopedSlots: { customRender: 'projectName' }
|
scopedSlots: { customRender: 'projectName' }
|
||||||
},
|
},
|
||||||
@@ -224,6 +226,7 @@
|
|||||||
title: this.$t('StudioEngineer'),
|
title: this.$t('StudioEngineer'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
|
sorter:true,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
dataIndex: 'studioEngineerName'
|
dataIndex: 'studioEngineerName'
|
||||||
},
|
},
|
||||||
@@ -246,6 +249,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
dataIndex: 'vehiclePlatform'
|
dataIndex: 'vehiclePlatform'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -253,6 +257,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
dataIndex: 'digitalPlatform'
|
dataIndex: 'digitalPlatform'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -265,6 +270,8 @@
|
|||||||
],
|
],
|
||||||
userInfoQuery: {},
|
userInfoQuery: {},
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
|
orderBy: '1',
|
||||||
|
orderByField: '',
|
||||||
administrators: false
|
administrators: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -396,10 +403,17 @@
|
|||||||
this.queryParam[value] = id
|
this.queryParam[value] = id
|
||||||
this.queryParam = { ...this.queryParam }
|
this.queryParam = { ...this.queryParam }
|
||||||
},
|
},
|
||||||
|
tableOnChange(pagination, filters, sorter) {
|
||||||
|
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||||
|
this.orderByField = sorter.columnKey
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
let query = {
|
let query = {
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
|
orderBy: this.orderBy,
|
||||||
|
orderByField: this.orderByField,
|
||||||
...this.queryParam
|
...this.queryParam
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|||||||
@@ -155,6 +155,7 @@
|
|||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
|
@change="tableOnChange"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
@@ -205,6 +206,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'serialNumber',
|
dataIndex: 'serialNumber',
|
||||||
width: 170,
|
width: 170,
|
||||||
|
sorter:true,
|
||||||
scopedSlots: { customRender: 'standard' }
|
scopedSlots: { customRender: 'standard' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -219,6 +221,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'flowType',
|
dataIndex: 'flowType',
|
||||||
width: 180,
|
width: 180,
|
||||||
|
sorter:true,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -226,6 +229,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'dutyTerritory',
|
dataIndex: 'dutyTerritory',
|
||||||
width: 180,
|
width: 180,
|
||||||
|
sorter:true,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -233,6 +237,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'projectName',
|
dataIndex: 'projectName',
|
||||||
width: 180,
|
width: 180,
|
||||||
|
sorter:true,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -240,24 +245,29 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'problemType',
|
dataIndex: 'problemType',
|
||||||
width: 140,
|
width: 140,
|
||||||
|
sorter:true,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('Sponsor'),
|
title: this.$t('Sponsor'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'initiator',
|
dataIndex: 'initiator',
|
||||||
|
sorter:true,
|
||||||
width: 140
|
width: 140
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('personLiable'),
|
title: this.$t('personLiable'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'duty',
|
dataIndex: 'duty',
|
||||||
|
sorter:true,
|
||||||
width: 140
|
width: 140
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
total: 0,
|
total: 0,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
|
orderBy: '1',
|
||||||
|
orderByField: '',
|
||||||
url: {
|
url: {
|
||||||
page: '/project/ncrTrackController/queryPage',
|
page: '/project/ncrTrackController/queryPage',
|
||||||
exportData: '/project/ncrTrackController/exportData'
|
exportData: '/project/ncrTrackController/exportData'
|
||||||
@@ -333,10 +343,17 @@
|
|||||||
this.pageSize = pageSize
|
this.pageSize = pageSize
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
tableOnChange(pagination, filters, sorter) {
|
||||||
|
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||||
|
this.orderByField = sorter.columnKey
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
let query = {
|
let query = {
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
|
orderBy: this.orderBy,
|
||||||
|
orderByField: this.orderByField,
|
||||||
...this.queryParam
|
...this.queryParam
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|||||||
Reference in New Issue
Block a user