qj-common 4.3.16 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qj-common",
3
- "version": "4.3.16",
3
+ "version": "5.0.1",
4
4
  "description": "common files && template for qj-paas",
5
5
  "scripts": {
6
6
  "gulp": "gulp css"
@@ -1306,21 +1306,21 @@ export default {
1306
1306
  });
1307
1307
  }
1308
1308
  }
1309
- } else if (res && res.rows) {
1310
- this.tableData = res.rows;
1309
+ } else if (res && res.list) {
1310
+ this.tableData = res.list;
1311
1311
  if (this.temPage !== false) {
1312
1312
  this.pagenation.total = res.total;
1313
1313
  }
1314
- this.tableData = res.rows;
1315
- this.$emit('getData', res.rows);
1314
+ this.tableData = res.list;
1315
+ this.$emit('getData', res.list);
1316
1316
  this.$emit('getTotal', res.total);
1317
1317
  // 小计
1318
- if (res.rows.length > 0) {
1318
+ if (res.list.length > 0) {
1319
1319
  if (this.subtotal && this.subtotal.length > 0) {
1320
1320
  this.subtotal.forEach((el) => {
1321
1321
  el.value = 0;
1322
1322
  if (el.name) {
1323
- res.rows.forEach((res) => {
1323
+ res.list.forEach((res) => {
1324
1324
  el.value = this.accAdd(el.value, Number(res[el.name]));
1325
1325
  el.value = el.value.toFixed(2);
1326
1326
  });