vue2-client 1.5.4 → 1.5.5
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
|
@@ -215,16 +215,6 @@ export default {
|
|
|
215
215
|
},
|
|
216
216
|
mounted () {},
|
|
217
217
|
methods: {
|
|
218
|
-
/**
|
|
219
|
-
* 为表格附加查询条件
|
|
220
|
-
*/
|
|
221
|
-
setQueryForm (form = {}, refresh) {
|
|
222
|
-
this.form = form
|
|
223
|
-
if (refresh) {
|
|
224
|
-
this.refresh(true)
|
|
225
|
-
}
|
|
226
|
-
this.clearRowKeys()
|
|
227
|
-
},
|
|
228
218
|
/**
|
|
229
219
|
* 初始化表格参数
|
|
230
220
|
*/
|
|
@@ -271,7 +261,7 @@ export default {
|
|
|
271
261
|
this.scrollXWidth = totalWidth
|
|
272
262
|
// 加载筛选列完成
|
|
273
263
|
this.columnSelectLoaded = true
|
|
274
|
-
this.setQueryForm({}
|
|
264
|
+
this.setQueryForm({})
|
|
275
265
|
},
|
|
276
266
|
/**
|
|
277
267
|
* 加载表格数据
|
|
@@ -307,12 +297,20 @@ export default {
|
|
|
307
297
|
clearRowKeys () {
|
|
308
298
|
this.$refs.table.clearSelected()
|
|
309
299
|
},
|
|
300
|
+
/**
|
|
301
|
+
* 为表格附加查询条件
|
|
302
|
+
*/
|
|
303
|
+
setQueryForm (form = {}) {
|
|
304
|
+
this.form = form
|
|
305
|
+
this.refresh(true)
|
|
306
|
+
},
|
|
310
307
|
/**
|
|
311
308
|
* 表格重新加载方法
|
|
312
309
|
* 如果参数为 true, 则强制刷新到第一页
|
|
313
310
|
*/
|
|
314
311
|
refresh (bool) {
|
|
315
312
|
this.$refs.table.refresh(bool)
|
|
313
|
+
this.clearRowKeys()
|
|
316
314
|
},
|
|
317
315
|
format (date, format) {
|
|
318
316
|
return formatDate(date, format)
|