|
|
@@ -2,7 +2,7 @@
|
|
|
<div class="ele-body">
|
|
|
|
|
|
<BOMSearch @search="reload" :statusOpt="statusOpt" />
|
|
|
- <ele-pro-table ref="table" :key="tableKey" :columns="columns" :header-cell-style="headerCellStyle" :datasource="datasource" class="dict-table"
|
|
|
+ <ele-pro-table ref="table" :key="tableKey" :columns="columns" :pagination="pagination" :header-cell-style="headerCellStyle" :datasource="datasource" class="dict-table"
|
|
|
tool-class="ele-toolbar-actions">
|
|
|
<template v-slot:toolbar>
|
|
|
<div class="toolbar_box">
|
|
|
@@ -143,6 +143,9 @@ export default {
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
+ pagination:{
|
|
|
+ tableTotal:0
|
|
|
+ },
|
|
|
// 表格列配置
|
|
|
columns: [
|
|
|
{
|
|
|
@@ -290,7 +293,6 @@ export default {
|
|
|
0: '草稿',
|
|
|
1: '已发布'
|
|
|
},
|
|
|
-
|
|
|
dictList: [
|
|
|
{
|
|
|
label: '加工',
|
|
|
@@ -473,7 +475,7 @@ export default {
|
|
|
this.list = [...list];
|
|
|
this.listTow = JSON.parse(JSON.stringify(this.list));
|
|
|
|
|
|
- console.log(this.listTow, 'listTowlistTowlistTowlistTow');
|
|
|
+
|
|
|
this.$refs.table.setData(this.list)
|
|
|
this.updateFn()
|
|
|
this.tableKey = Date.now();
|
|
|
@@ -666,7 +668,11 @@ export default {
|
|
|
})
|
|
|
|
|
|
this.list = [...data, ...this.$refs.table.getData()];
|
|
|
+
|
|
|
+ this.$refs.table._data.tableTotal = this.list.length;
|
|
|
+
|
|
|
|
|
|
+
|
|
|
this.$refs.table.setData(this.list)
|
|
|
})
|
|
|
|