This commit is contained in:
2019-10-31 18:31:25 +00:00
parent ff15a9c7c0
commit 0c4f670410
3 changed files with 14 additions and 4 deletions

View File

@@ -58,6 +58,9 @@ move into Options object these things:
Errors are probably due to Options object missing some properties or not as expected, here is the code that is bombing that references this.options. object:
https://github.com/vuetifyjs/vuetify/blob/4a52142fd81f3c50ceb948ce5ba14a3d2ed25e32/packages/vuetify/src/components/VDataTable/VDataTableHeaderDesktop.ts
const sortIndex = this.options.sortBy.findIndex(k => k === header.value);\n const beingSorted
= sortIndex >= 0;\n const isDesc = this.options.sortDesc[sortIndex];\n classes.push('sortable');\n\n
if (beingSorted) {\n classes.push('active');\n classes.push(isDesc ? 'desc' : 'asc');\n

View File

@@ -127,16 +127,23 @@ export default {
descending: that.localFormSettings.pagination.descending
}
}
//NEW VUETIFY 2.x options object
source code is looking for these props
this.options.sortBy
this.options.sortDesc[sortIndex]
this.options.multiSort
*/
//set default values for form settings if they are not present yet
if (!formSettings.saved || !formSettings.saved.rowsPerPage) {
that.localFormSettings = {
pagination: {}
pagination: {}
};
} else {
that.localFormSettings.pagination = {
rowsPerPage: formSettings.saved.rowsPerPage,
sortBy: formSettings.saved.sortBy,///////<-----sb array?? something funky or incorrect here leading to the error TypeError: this.options.sortBy.findIndex is not a function sb array???
sortBy: [formSettings.saved.sortBy],
descending: formSettings.saved.descending
};
if (formSettings.temp && formSettings.temp.page) {

View File

@@ -42,7 +42,7 @@
</template>
<script>
/* eslint-disable */
/* Xeslint-disable */
import WidgetList from "../components/inventorywidgetlist";
import WarehouseTop from "../components/inventorywarehousetop";
import POTop from "../components/inventorypotop";
@@ -60,7 +60,7 @@ export default {
});
},
created() {
debugger;
// debugger;
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "fa-dolly",