Commit 3beeba04 by 李伟康

commit 修复BUG

1 parent f96a0e14
...@@ -173,7 +173,7 @@ export default { ...@@ -173,7 +173,7 @@ export default {
tableTotal: 0, tableTotal: 0,
page: { page: {
pageSize: 10, pageSize: 10,
currentPage: 1 pageNum: 1
}, },
showFormData: [ showFormData: [
{ {
...@@ -255,10 +255,10 @@ export default { ...@@ -255,10 +255,10 @@ export default {
{ {
label: "序号", label: "序号",
prop: "num", prop: "num",
width: "50px" width: "70px"
}, },
{ {
label: '录音日期', label: '质检日期',
prop: 'searchdate', prop: 'searchdate',
width: '120px' width: '120px'
}, },
...@@ -529,10 +529,13 @@ export default { ...@@ -529,10 +529,13 @@ export default {
}, },
restructureData (data) { restructureData (data) {
this.tableList = [] this.tableList = []
let dataList = this.setTableFinishFun(data) let dataList = this.setTableFinishFun(data),
{ page } = this
if (dataList && dataList.length > 0) { if (dataList && dataList.length > 0) {
dataList = dataList.map((item, index) => { 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 return item
}) })
this.tableList = dataList.reduce((prev, cur, index, arr) => { this.tableList = dataList.reduce((prev, cur, index, arr) => {
...@@ -653,8 +656,9 @@ export default { ...@@ -653,8 +656,9 @@ export default {
async exportTable () { async exportTable () {
await this.beforeSearchFn() await this.beforeSearchFn()
const res = await this.$apis.quality.exportReclistList({ const res = await this.$apis.quality.exportReclistList({
...this.page, ...this.searchFormSearch,
...this.searchFormSearch pageNum: 1,
pageSize: 1000
}) })
if (res) window.open(res) 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!