新增批量下载桌码

This commit is contained in:
gyq
2024-06-14 11:42:07 +08:00
parent 313ec6e6f9
commit 2026193f0f
8 changed files with 32 additions and 19 deletions

View File

@@ -63,7 +63,7 @@
</div>
<addEara ref="addEara" @success="tbShopAreaGet" />
<addTable ref="addTable" @success="tbShopTableGet" />
<downloadTableCode ref="downloadTableCode" />
<downloadTableCode :total="total" ref="downloadTableCode" />
</div>
</template>
@@ -83,6 +83,7 @@ export default {
tabVlaue: '',
tabs: [],
loading: false,
total: 0,
tableList: [],
status: {
subscribe: {
@@ -134,11 +135,12 @@ export default {
async tbShopTableGet() {
this.loading = true
try {
const { content } = await tbShopTableGet({
const { content, total } = await tbShopTableGet({
shopId: localStorage.getItem('shopId'),
areaId: this.tabVlaue
})
this.tableList = content
this.total = total
setTimeout(() => {
this.loading = false
}, 300)