|
|
|
@ -1318,8 +1318,21 @@ class DatasetControl {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
reload(prev) {
|
|
|
|
|
this._load(this.dataset.state, prev);
|
|
|
|
|
reload(option) {
|
|
|
|
|
let all = option ? option.all : false,
|
|
|
|
|
prev = option ? option.prev : false,
|
|
|
|
|
state = this.dataset.state;
|
|
|
|
|
|
|
|
|
|
if (!all) {
|
|
|
|
|
this._load(state, prev);
|
|
|
|
|
} else {
|
|
|
|
|
let query = Object.assign(this.query, {}),
|
|
|
|
|
state = this.dataset.state;
|
|
|
|
|
this.query.fetchSize = this.dataset.length;
|
|
|
|
|
this.query.pageNum = 1;
|
|
|
|
|
this._load(state);
|
|
|
|
|
this.query = query;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
download(type) {
|
|
|
|
@ -1455,7 +1468,7 @@ class DatasetControl {
|
|
|
|
|
|
|
|
|
|
onRemove(selected, resp) {
|
|
|
|
|
if (resp.saved)
|
|
|
|
|
this.reload(selected.length == this.dataset.length);
|
|
|
|
|
this.reload({prev: selected.length == this.dataset.length});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_selector(selector) {
|
|
|
|
|