This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<gz-error :error-box-message="formState.errorBoxMessage"></gz-error>
|
||||
<!-- cols:{{ serverColumns }} filt:{{ serverFilter }} srt:{{ serverSort }} -->
|
||||
<gz-data-table-filter
|
||||
:data-list-key="dataListKey"
|
||||
:active-filter-id="activeFilterId"
|
||||
@@ -612,7 +613,9 @@ export default {
|
||||
if (rsort != null) {
|
||||
Object.keys(rsort).forEach((key, index) => {
|
||||
//Pull column header name "value" from "fk"matching "key" here from this.headers columns.c0 etc here from this.headers see above method
|
||||
sortBy.push(this.headers.find(z => z.fk == key).value);
|
||||
let found = this.headers.find(z => z.fk == key);
|
||||
if (found != null) {
|
||||
sortBy.push(found.value);
|
||||
|
||||
//if not null then push into the sortBy array
|
||||
let sort = rsort[key];
|
||||
@@ -621,6 +624,7 @@ export default {
|
||||
} else {
|
||||
sortDesc.push(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user