vue2-client 1.5.0 → 1.5.1

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/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.5.0 -2022-12-04 @江超**
4
+ **1.5.0 - 1.5.1 -2022-12-04 @江超**
5
5
  - 以下可能是不兼容更新:
6
6
  - 重构了XForm,XAddForm,XTable,XFormTable组件
7
7
  - 1.重新封装了XForm的状态,实现更加简洁了,并且修复了[更多条件]功能的BUG
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -162,21 +162,22 @@ export default {
162
162
  },
163
163
  getColumnsJsonBySource () {
164
164
  post(commonApi.getColumnsJson, { queryObject: this.queryParamsJson }).then(res => {
165
- this.updateComponents(res)
165
+ this.updateComponents(res, true)
166
166
  })
167
167
  },
168
168
  getColumnJsonByLogic () {
169
169
  indexedDB.getByWeb(`${this.logicName}_${JSON.stringify(this.logicParam)}`, commonApi.getColumnsJson, { logic: this.logicName, logicParam: this.logicParam }, (res) => {
170
- this.updateComponents(res)
170
+ this.updateComponents(res, true)
171
171
  })
172
172
  },
173
173
  /**
174
174
  * 更新子组件
175
175
  * @param res 参数
176
+ * @param setQueryParams 是否设置queryParams参数
176
177
  */
177
- updateComponents (res) {
178
+ updateComponents (res, setQueryParams) {
178
179
  this.$refs.xTable.init({
179
- queryParams: res,
180
+ queryParams: setQueryParams ? res : null,
180
181
  tableColumns: res.columnJson,
181
182
  buttonState: res.buttonState,
182
183
  title: this.title,