Commit 0cca7a3e by zhangxw

bug修复

1 parent 233a6949
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
> >
</div> </div>
<d2-table <d2-table
:key="searchForm.sceneType == '0' ? tableParams.btnId : boutiqueTableParams.btnId" :key="searchForm.sceneType"
:has-num="false" :has-num="false"
:array-span-method="arraySpanMethod" :array-span-method="arraySpanMethod"
:table-params="searchForm.sceneType == '0' ? tableParams : boutiqueTableParams" :table-params="searchForm.sceneType == '0' ? tableParams : boutiqueTableParams"
...@@ -443,11 +443,13 @@ export default { ...@@ -443,11 +443,13 @@ export default {
let res = this.searchForm?.sceneType == 0 ? await permeabilityList(params) : await permeabilityBoutiqueList(params) let res = this.searchForm?.sceneType == 0 ? await permeabilityList(params) : await permeabilityBoutiqueList(params)
// permeabilityList(params).then((res) => { // permeabilityList(params).then((res) => {
let list = res?.list || [] let list = res?.list || []
let arr = []
list.forEach((i) => { list.forEach((i) => {
i.staffList.forEach((j) => { i.staffList.forEach((j) => {
this.tableData.push({ ...i, ...j, count: i.staffList.length }) arr.push({ ...i, ...j, count: i.staffList.length })
}) })
}) })
this.tableData = arr
this.tableTotal = res.total this.tableTotal = res.total
// }) // })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!