@tripup-company/element-ui-extended 0.0.53 → 0.0.56
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/dist/element-ui-extended.common.js +13 -11
- package/dist/element-ui-extended.common.js.map +1 -1
- package/dist/element-ui-extended.umd.js +13 -11
- package/dist/element-ui-extended.umd.js.map +1 -1
- package/dist/element-ui-extended.umd.min.js +2 -2
- package/dist/element-ui-extended.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CompositeTable/index.vue +4 -2
- package/src/repositories/base-repository.ts +5 -5
package/package.json
CHANGED
|
@@ -244,7 +244,8 @@ export default {
|
|
|
244
244
|
handleFilterChange() {
|
|
245
245
|
this.handleCurrentChange(1);
|
|
246
246
|
},
|
|
247
|
-
handleApplyFilter() {
|
|
247
|
+
handleApplyFilter(search) {
|
|
248
|
+
this.search = search;
|
|
248
249
|
this.listQueryService.updateListQuery({ search: this.search });
|
|
249
250
|
this.handleFilterChange();
|
|
250
251
|
},
|
|
@@ -258,7 +259,8 @@ export default {
|
|
|
258
259
|
this.listQueryService.updateListQuery({ search: {} });
|
|
259
260
|
this.handleFilterChange({});
|
|
260
261
|
},
|
|
261
|
-
handleApplyTopFilter() {
|
|
262
|
+
handleApplyTopFilter(topSearch) {
|
|
263
|
+
this.topSearch = topSearch;
|
|
262
264
|
this.listQueryService.updateListQuery({ topSearch: this.topSearch });
|
|
263
265
|
this.handleFilterChange();
|
|
264
266
|
},
|
|
@@ -28,7 +28,7 @@ export default abstract class BaseRepository<T> implements Write<T>, Read<T> {
|
|
|
28
28
|
|
|
29
29
|
create(item: T): Promise<T> {
|
|
30
30
|
return new Promise<T>((resolve, reject) => {
|
|
31
|
-
this.request
|
|
31
|
+
this.request.request({
|
|
32
32
|
url: this.baseUrl,
|
|
33
33
|
method: 'post',
|
|
34
34
|
data: item,
|
|
@@ -42,7 +42,7 @@ export default abstract class BaseRepository<T> implements Write<T>, Read<T> {
|
|
|
42
42
|
|
|
43
43
|
update(id: string, item: T, include = "--"): Promise<T> {
|
|
44
44
|
return new Promise<T>((resolve, reject) => {
|
|
45
|
-
this.request
|
|
45
|
+
this.request.request({
|
|
46
46
|
url: this.baseUrl + "/" + id + "?include=" + include,
|
|
47
47
|
method: "patch",
|
|
48
48
|
data: item,
|
|
@@ -58,7 +58,7 @@ export default abstract class BaseRepository<T> implements Write<T>, Read<T> {
|
|
|
58
58
|
|
|
59
59
|
delete(id: string): Promise<boolean> {
|
|
60
60
|
return new Promise<boolean>((resolve, reject) => {
|
|
61
|
-
this.request
|
|
61
|
+
this.request.request({
|
|
62
62
|
url: this.baseUrl + "/" + id,
|
|
63
63
|
method: "delete",
|
|
64
64
|
})
|
|
@@ -73,7 +73,7 @@ export default abstract class BaseRepository<T> implements Write<T>, Read<T> {
|
|
|
73
73
|
|
|
74
74
|
findOne(id: string, include = "--"): Promise<T> {
|
|
75
75
|
return new Promise<T>((resolve, reject) => {
|
|
76
|
-
this.request
|
|
76
|
+
this.request.request({
|
|
77
77
|
url: this.baseUrl + "/" + id + "?include=" + include,
|
|
78
78
|
method: "get",
|
|
79
79
|
})
|
|
@@ -88,7 +88,7 @@ export default abstract class BaseRepository<T> implements Write<T>, Read<T> {
|
|
|
88
88
|
|
|
89
89
|
all(query: string, include = "--", filter = ""): Promise<Collection<T>> {
|
|
90
90
|
return new Promise<Collection<T>>((resolve, reject) => {
|
|
91
|
-
this.request
|
|
91
|
+
this.request.request({
|
|
92
92
|
url: this.baseUrl + "?include=" + include + (filter === "" ? '' : ('&selectFilter=' + filter)),
|
|
93
93
|
method: "get",
|
|
94
94
|
params: query,
|