vue2-client 1.8.376 → 1.8.377

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": "vue2-client",
3
- "version": "1.8.376",
3
+ "version": "1.8.377",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -298,9 +298,7 @@ export default {
298
298
  // 汇总更新标志
299
299
  summaryUpdate: false,
300
300
  // 定义主键
301
- primaryKey: '',
302
- // 是否进行初始化查询
303
- createdQuery: true
301
+ primaryKey: ''
304
302
  }
305
303
  },
306
304
  props: {
@@ -420,7 +418,6 @@ export default {
420
418
  env = 'prod'
421
419
  } = params
422
420
  this.primaryKey = primaryKey
423
- this.createdQuery = createdQuery
424
421
  this.showSummary = Object.keys(tableSummaryMap).length > 0
425
422
  this.queryParams = queryParams
426
423
  this.tableColumns = JSON.parse(JSON.stringify(tableColumns))
@@ -452,7 +449,7 @@ export default {
452
449
  this.scrollXWidth = totalWidth
453
450
  // 加载筛选列完成
454
451
  this.columnSelectLoaded = true
455
- this.setQueryForm(form || {})
452
+ this.setQueryForm(form || {}, createdQuery)
456
453
  },
457
454
  /**
458
455
  * 加载表格数据
@@ -509,9 +506,11 @@ export default {
509
506
  /**
510
507
  * 为表格附加查询条件
511
508
  */
512
- setQueryForm (form = {}) {
509
+ setQueryForm (form = {}, createdQuery = true) {
513
510
  this.form = form
514
- this.refresh(true)
511
+ if (createdQuery) {
512
+ this.refresh(true)
513
+ }
515
514
  },
516
515
  /**
517
516
  * 表格重新加载方法