ocpview-pro 0.1.15 → 0.1.17

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": "ocpview-pro",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "title": "ocpviewPlus",
5
5
  "description": "A high quality Service UI components Library with Vue.js",
6
6
  "homepage": "",
@@ -253,7 +253,8 @@ export default {
253
253
  },
254
254
  watch: {
255
255
  /**
256
- * 列表页合计由前端计算,不清除 summaryColumn 会导致自动拼接 summary_fld 请求后端
256
+ * summaryColumn 一被 basegrid 填充,立即清空
257
+ * 防止 viewgridbase.getSearchParam 据此拼出 summary_fld 发给后端
257
258
  */
258
259
  summaryColumn(val) {
259
260
  if (val && val.length > 0) {
@@ -361,11 +362,11 @@ export default {
361
362
  };
362
363
  },
363
364
  /**
364
- * 需要合计的字段列表
365
+ * 需要合计的字段列表(searchConfig 用 sum: true,非 summary)
365
366
  */
366
367
  sumFields() {
367
368
  return this.tableColumns
368
- .filter((item) => item.summary)
369
+ .filter((item) => item.sum)
369
370
  .map((item) => item.name);
370
371
  },
371
372
  },