Commit 3beeba04 by 李伟康

commit 修复BUG

1 parent f96a0e14
......@@ -173,7 +173,7 @@ export default {
tableTotal: 0,
page: {
pageSize: 10,
currentPage: 1
pageNum: 1
},
showFormData: [
{
......@@ -255,10 +255,10 @@ export default {
{
label: "序号",
prop: "num",
width: "50px"
width: "70px"
},
{
label: '录音日期',
label: '质检日期',
prop: 'searchdate',
width: '120px'
},
......@@ -529,10 +529,13 @@ export default {
},
restructureData (data) {
this.tableList = []
let dataList = this.setTableFinishFun(data)
let dataList = this.setTableFinishFun(data),
{ page } = this
if (dataList && dataList.length > 0) {
dataList = dataList.map((item, index) => {
item.num = index + 1
if (item.batchNum != null) item.batchNum = String(item.batchNum)
if (item.enterReceptionBatch != null) item.enterReceptionBatch = String(item.enterReceptionBatch)
item.num = (index + 1) + (page.pageSize * (page.pageNum - 1))
return item
})
this.tableList = dataList.reduce((prev, cur, index, arr) => {
......@@ -653,8 +656,9 @@ export default {
async exportTable () {
await this.beforeSearchFn()
const res = await this.$apis.quality.exportReclistList({
...this.page,
...this.searchFormSearch
...this.searchFormSearch,
pageNum: 1,
pageSize: 1000
})
if (res) window.open(res)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!