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
package/package.json
CHANGED
|
@@ -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,
|