vue2-client 1.5.0 → 1.5.2
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,
|
|
@@ -270,10 +271,11 @@ export default {
|
|
|
270
271
|
},
|
|
271
272
|
/**
|
|
272
273
|
* 选择列事件
|
|
273
|
-
* @param
|
|
274
|
+
* @param selectedRowKeys 选中列Key集合
|
|
275
|
+
* @param selectedRows 选中列
|
|
274
276
|
*/
|
|
275
|
-
selectRow (
|
|
276
|
-
this.$emit('selectRow',
|
|
277
|
+
selectRow (selectedRowKeys, selectedRows) {
|
|
278
|
+
this.$emit('selectRow', selectedRowKeys, selectedRows)
|
|
277
279
|
},
|
|
278
280
|
/**
|
|
279
281
|
* 临时表修改
|
|
@@ -299,10 +299,7 @@ export default {
|
|
|
299
299
|
this.selectedRows = selectedRows
|
|
300
300
|
this.isModify = this.selectedRowKeys.length === 1
|
|
301
301
|
this.isDelete = this.selectedRowKeys.length > 0
|
|
302
|
-
this.$emit('selectRow',
|
|
303
|
-
selectedRowKeys: selectedRowKeys,
|
|
304
|
-
selectedRows: selectedRows
|
|
305
|
-
})
|
|
302
|
+
this.$emit('selectRow', selectedRowKeys, selectedRows)
|
|
306
303
|
},
|
|
307
304
|
/**
|
|
308
305
|
* 清除表格选中项
|