This commit is contained in:
@@ -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:
|
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
|
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
|
= 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
|
if (beingSorted) {\n classes.push('active');\n classes.push(isDesc ? 'desc' : 'asc');\n
|
||||||
|
|||||||
@@ -127,6 +127,13 @@ export default {
|
|||||||
descending: that.localFormSettings.pagination.descending
|
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
|
//set default values for form settings if they are not present yet
|
||||||
if (!formSettings.saved || !formSettings.saved.rowsPerPage) {
|
if (!formSettings.saved || !formSettings.saved.rowsPerPage) {
|
||||||
@@ -136,7 +143,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
that.localFormSettings.pagination = {
|
that.localFormSettings.pagination = {
|
||||||
rowsPerPage: formSettings.saved.rowsPerPage,
|
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
|
descending: formSettings.saved.descending
|
||||||
};
|
};
|
||||||
if (formSettings.temp && formSettings.temp.page) {
|
if (formSettings.temp && formSettings.temp.page) {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/* eslint-disable */
|
/* Xeslint-disable */
|
||||||
import WidgetList from "../components/inventorywidgetlist";
|
import WidgetList from "../components/inventorywidgetlist";
|
||||||
import WarehouseTop from "../components/inventorywarehousetop";
|
import WarehouseTop from "../components/inventorywarehousetop";
|
||||||
import POTop from "../components/inventorypotop";
|
import POTop from "../components/inventorypotop";
|
||||||
@@ -60,7 +60,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
debugger;
|
// debugger;
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-dolly",
|
icon: "fa-dolly",
|
||||||
|
|||||||
Reference in New Issue
Block a user