vue2-client 1.8.155 → 1.8.156

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.155",
3
+ "version": "1.8.156",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -229,6 +229,12 @@ export default {
229
229
  updateComponents (res, setQueryParams) {
230
230
  this.realQueryConfig = res
231
231
  if (this.$refs.xTable && this.$refs.xForm && this.$refs.xAddForm) {
232
+ this.$refs.xForm.init({
233
+ formItems: res.formJson,
234
+ serviceName: this.serviceName,
235
+ getDataParams: this.getDataParams,
236
+ env: this.env
237
+ })
232
238
  this.$refs.xTable.init({
233
239
  queryParams: setQueryParams ? res : null,
234
240
  tableColumns: res.columnJson,
@@ -237,14 +243,9 @@ export default {
237
243
  viewMode: this.viewMode,
238
244
  isTableTemp: this.isTableTemp,
239
245
  serviceName: this.serviceName,
240
- env: this.env
241
- })
242
- this.$refs.xForm.init({
243
- formItems: res.formJson,
244
- serviceName: this.serviceName,
245
- getDataParams: this.getDataParams,
246
- env: this.env
247
- })
246
+ env: this.env,
247
+ form: this.$refs.xForm.form
248
+ })
248
249
  }
249
250
  this.loading = false
250
251
  },
@@ -244,6 +244,7 @@ export default {
244
244
  tableColumns,
245
245
  buttonState,
246
246
  title,
247
+ form,
247
248
  serviceName,
248
249
  viewMode,
249
250
  env = 'prod'
@@ -280,7 +281,7 @@ export default {
280
281
  this.scrollXWidth = totalWidth
281
282
  // 加载筛选列完成
282
283
  this.columnSelectLoaded = true
283
- this.setQueryForm({})
284
+ this.setQueryForm(form || {})
284
285
  },
285
286
  /**
286
287
  * 加载表格数据