修改禅道已知bug
This commit is contained in:
@@ -39,6 +39,12 @@
|
|||||||
</span>
|
</span>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="table-operator">
|
||||||
|
<div @click="handleExport" class="operator-text">
|
||||||
|
<a-icon type="export" :rotate="-90"/>
|
||||||
|
{{ $t('export') }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a-table
|
<a-table
|
||||||
ref="table"
|
ref="table"
|
||||||
@@ -116,7 +122,8 @@
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
url: {
|
url: {
|
||||||
page: '/project/ncrTrackController/queryPageInfo'
|
page: '/project/ncrTrackController/queryPageInfo',
|
||||||
|
exportData: '/project/ncrTrackController/exportData'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -142,11 +149,20 @@
|
|||||||
this.pageSize = pageSize
|
this.pageSize = pageSize
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
handleExport() {
|
||||||
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
|
let query = {
|
||||||
|
...this.queryParam,
|
||||||
|
ids: selectedRowKeys.join(','),
|
||||||
|
projectLibraryId: this.$route.query.id
|
||||||
|
}
|
||||||
|
downloadFile(this.url.exportData, this.$t('NonConformance') + '.xls', query, this.Deselect)
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
let query = {
|
let query = {
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
projectLibraryId:this.$route.query.id,
|
projectLibraryId: this.$route.query.id,
|
||||||
...this.queryParam
|
...this.queryParam
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|||||||
@@ -203,18 +203,18 @@
|
|||||||
dataIndex: 'title',
|
dataIndex: 'title',
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: this.$t('areaOfResponsibility'),
|
|
||||||
align: 'center',
|
|
||||||
dataIndex: 'dutyTerritory_dictText',
|
|
||||||
ellipsis: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: this.$t('ProcessType'),
|
title: this.$t('ProcessType'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'flowType',
|
dataIndex: 'flowType',
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('areaOfResponsibility'),
|
||||||
|
align: 'center',
|
||||||
|
dataIndex: 'dutyTerritory_dictText',
|
||||||
|
ellipsis: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('RelatedItems'),
|
title: this.$t('RelatedItems'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
|||||||
Reference in New Issue
Block a user