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
|
@@ -1306,21 +1306,21 @@ export default {
|
|
|
1306
1306
|
});
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
|
-
} else if (res && res.
|
|
1310
|
-
this.tableData = res.
|
|
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.
|
|
1315
|
-
this.$emit('getData', res.
|
|
1314
|
+
this.tableData = res.list;
|
|
1315
|
+
this.$emit('getData', res.list);
|
|
1316
1316
|
this.$emit('getTotal', res.total);
|
|
1317
1317
|
// 小计
|
|
1318
|
-
if (res.
|
|
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.
|
|
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
|
});
|