@monoui/vuejs 1.1.33 → 1.1.34
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/main.js +2 -2
- package/package.json +1 -1
- package/src/components/Table/Table.vue +24 -24
package/package.json
CHANGED
|
@@ -884,40 +884,40 @@ export default {
|
|
|
884
884
|
},
|
|
885
885
|
loadHistoryFilters() {
|
|
886
886
|
const parameters = this.getHistoryParameters("f-");
|
|
887
|
+
if (!parameters) return;
|
|
888
|
+
|
|
887
889
|
const trimName = this.getHistoryName("f-");
|
|
888
890
|
const names = Object.keys(parameters);
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
});
|
|
899
|
-
}
|
|
891
|
+
this.filters.splice(0, this.filters.length);
|
|
892
|
+
for (const paramName of names) {
|
|
893
|
+
const value = parameters[paramName];
|
|
894
|
+
const column = paramName.replace(trimName, "");
|
|
895
|
+
if (value) {
|
|
896
|
+
this.filters.push({
|
|
897
|
+
Column: column,
|
|
898
|
+
Value: value
|
|
899
|
+
});
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
902
|
},
|
|
903
903
|
loadHistorySorting() {
|
|
904
904
|
const parameters = this.getHistoryParameters("s-");
|
|
905
|
+
if (!parameters) return;
|
|
906
|
+
|
|
905
907
|
const trimName = this.getHistoryName("s-");
|
|
906
908
|
const names = Object.keys(parameters);
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
const column = paramName.replace(trimName, "");
|
|
909
|
+
this.sorting.splice(0, this.sorting.length);
|
|
910
|
+
for (const paramName of names) {
|
|
911
|
+
var paramValue = parameters[paramName];
|
|
912
|
+
let value = undefined;
|
|
913
|
+
if (paramValue && paramValue === "1") value = true;
|
|
914
|
+
else if (paramValue && paramValue === "0") value = false;
|
|
915
|
+
const column = paramName.replace(trimName, "");
|
|
915
916
|
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
}
|
|
917
|
+
this.sorting.push({
|
|
918
|
+
Column: column,
|
|
919
|
+
Asc: value
|
|
920
|
+
});
|
|
921
921
|
}
|
|
922
922
|
},
|
|
923
923
|
replaceHistory(state, storage = this.historyStorage) {
|