vue2-client 1.5.3 → 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
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
</a-col>
|
|
49
49
|
</a-row>
|
|
50
50
|
<s-table
|
|
51
|
-
v-if="loaded"
|
|
52
51
|
ref="table"
|
|
53
52
|
:alert="true"
|
|
54
53
|
:columns="tableColumns"
|
|
@@ -121,8 +120,6 @@ export default {
|
|
|
121
120
|
},
|
|
122
121
|
data () {
|
|
123
122
|
return {
|
|
124
|
-
// 内容加载是否完成
|
|
125
|
-
loaded: false,
|
|
126
123
|
// 筛选列加载状态
|
|
127
124
|
columnSelectLoaded: false,
|
|
128
125
|
// 预览模式
|
|
@@ -218,16 +215,6 @@ export default {
|
|
|
218
215
|
},
|
|
219
216
|
mounted () {},
|
|
220
217
|
methods: {
|
|
221
|
-
/**
|
|
222
|
-
* 为表格附加查询条件
|
|
223
|
-
*/
|
|
224
|
-
setQueryForm (form = {}, refresh) {
|
|
225
|
-
this.form = form
|
|
226
|
-
if (refresh) {
|
|
227
|
-
this.refresh(true)
|
|
228
|
-
}
|
|
229
|
-
this.clearRowKeys()
|
|
230
|
-
},
|
|
231
218
|
/**
|
|
232
219
|
* 初始化表格参数
|
|
233
220
|
*/
|
|
@@ -241,7 +228,6 @@ export default {
|
|
|
241
228
|
serviceName = 'af-system',
|
|
242
229
|
viewMode
|
|
243
230
|
} = params
|
|
244
|
-
this.loaded = false
|
|
245
231
|
this.queryParams = queryParams
|
|
246
232
|
this.tableColumns = JSON.parse(JSON.stringify(tableColumns))
|
|
247
233
|
this.buttonState = buttonState
|
|
@@ -275,10 +261,7 @@ export default {
|
|
|
275
261
|
this.scrollXWidth = totalWidth
|
|
276
262
|
// 加载筛选列完成
|
|
277
263
|
this.columnSelectLoaded = true
|
|
278
|
-
this.
|
|
279
|
-
this.$nextTick(() => {
|
|
280
|
-
this.setQueryForm({})
|
|
281
|
-
})
|
|
264
|
+
this.setQueryForm({})
|
|
282
265
|
},
|
|
283
266
|
/**
|
|
284
267
|
* 加载表格数据
|
|
@@ -314,12 +297,20 @@ export default {
|
|
|
314
297
|
clearRowKeys () {
|
|
315
298
|
this.$refs.table.clearSelected()
|
|
316
299
|
},
|
|
300
|
+
/**
|
|
301
|
+
* 为表格附加查询条件
|
|
302
|
+
*/
|
|
303
|
+
setQueryForm (form = {}) {
|
|
304
|
+
this.form = form
|
|
305
|
+
this.refresh(true)
|
|
306
|
+
},
|
|
317
307
|
/**
|
|
318
308
|
* 表格重新加载方法
|
|
319
309
|
* 如果参数为 true, 则强制刷新到第一页
|
|
320
310
|
*/
|
|
321
311
|
refresh (bool) {
|
|
322
312
|
this.$refs.table.refresh(bool)
|
|
313
|
+
this.clearRowKeys()
|
|
323
314
|
},
|
|
324
315
|
format (date, format) {
|
|
325
316
|
return formatDate(date, format)
|