vue2-client 1.18.25 → 1.18.26

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.18.25",
3
+ "version": "1.18.26",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -1002,6 +1002,21 @@ export default {
1002
1002
  }
1003
1003
  this.$refs.xTable.refresh(toFirstPage)
1004
1004
  },
1005
+ /**
1006
+ * 主动传递条件查询表格
1007
+ */
1008
+ queryTable (conditionParams) {
1009
+ if (this.tableShowMode === 'popup') {
1010
+ this.formQueryLoading = true
1011
+ }
1012
+ this.$refs.xTable.queryTable(conditionParams)
1013
+ },
1014
+ /**
1015
+ * 向外暴露 resetForm 函数
1016
+ */
1017
+ resetForm () {
1018
+ this.$refs.xForm.resetForm()
1019
+ },
1005
1020
  /**
1006
1021
  * 获取表格数据
1007
1022
  */
@@ -1201,6 +1201,18 @@ export default {
1201
1201
  this.createdQuery = true
1202
1202
  }
1203
1203
  },
1204
+ /**
1205
+ * 主动传递条件查询表格
1206
+ */
1207
+ async queryTable (conditionParams) {
1208
+ // 备份一下 form 这个函数传递的 condition 仅临时用一下
1209
+ // 如果要实质修改 form 需要在 x-form 中赋值
1210
+ const _from = JSON.parse(JSON.stringify(this.form))
1211
+ this.form = Object.assign(_from, conditionParams)
1212
+ await this.refresh(true).then(() => {
1213
+ this.form = _from
1214
+ })
1215
+ },
1204
1216
  /**
1205
1217
  * 表格重新加载方法
1206
1218
  * 如果参数为 true, 则强制刷新到第一页