ocpview-pro 0.1.15 → 0.1.16

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.16",
4
4
  "title": "ocpviewPlus",
5
5
  "description": "A high quality Service UI components Library with Vue.js",
6
6
  "homepage": "",
@@ -239,6 +239,7 @@
239
239
  </template>
240
240
  <script>
241
241
  import simpleviewgrid from "../simpleviewgrid.vue";
242
+ import viewgridbase from "../../grid/viewgridbase.vue";
242
243
 
243
244
  export default {
244
245
  name: "BillListPanelTable",
@@ -251,16 +252,7 @@ export default {
251
252
  userShowSummary: undefined,
252
253
  };
253
254
  },
254
- watch: {
255
- /**
256
- * 列表页合计由前端计算,不清除 summaryColumn 会导致自动拼接 summary_fld 请求后端
257
- */
258
- summaryColumn(val) {
259
- if (val && val.length > 0) {
260
- this.summaryColumn = [];
261
- }
262
- },
263
- },
255
+ watch: {},
264
256
  computed: {
265
257
  /**
266
258
  * 表格列定义清洗
@@ -370,6 +362,18 @@ export default {
370
362
  },
371
363
  },
372
364
  methods: {
365
+ /**
366
+ * 【覆写】列表页合计不请求后端,拦截搜索参数移除 summary_fld
367
+ */
368
+ getSearchParam(obj, flag) {
369
+ // 调用父类 viewgridbase.getSearchParam 拼接完整参数
370
+ const result = viewgridbase.methods.getSearchParam.call(this, obj, flag);
371
+ // 移除 summary_fld — 列表页合计由前端从 tempData 计算
372
+ if (result && result.summary_fld) {
373
+ delete result.summary_fld;
374
+ }
375
+ return result;
376
+ },
373
377
  /**
374
378
  * 【覆写】列表页合计不由后端决定,恢复用户 showSummary 配置
375
379
  */