This commit is contained in:
@@ -45,9 +45,6 @@ CURRENT TODOs
|
|||||||
@@@@@@@@@@@ ROADMAP STAGE 1 and 2:
|
@@@@@@@@@@@ ROADMAP STAGE 1 and 2:
|
||||||
|
|
||||||
|
|
||||||
todo: Tag picker a bit buggy, when you type to search it retains the typed text in the entry box after selecting, it shouldn't
|
|
||||||
- possibly when type then make selection the typed part sb cleared after selection
|
|
||||||
|
|
||||||
|
|
||||||
todo: Select in grid fuckery when changing formats or switching between Listviews seems to trigger selection for some reason
|
todo: Select in grid fuckery when changing formats or switching between Listviews seems to trigger selection for some reason
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,6 @@
|
|||||||
<v-checkbox
|
<v-checkbox
|
||||||
v-model="selected"
|
v-model="selected"
|
||||||
:value="item"
|
:value="item"
|
||||||
primary
|
|
||||||
hide-details
|
hide-details
|
||||||
></v-checkbox>
|
></v-checkbox>
|
||||||
</td>
|
</td>
|
||||||
@@ -171,6 +170,7 @@
|
|||||||
<template v-slot:header="props">
|
<template v-slot:header="props">
|
||||||
<!-- Mimic the full width data table select all toggle :no-data-text="lt('NoData')"-->
|
<!-- Mimic the full width data table select all toggle :no-data-text="lt('NoData')"-->
|
||||||
<div
|
<div
|
||||||
|
id="divSelectAll"
|
||||||
@click="props.toggleSelectAll(!props.everyItem)"
|
@click="props.toggleSelectAll(!props.everyItem)"
|
||||||
class="pl-2 pt-2"
|
class="pl-2 pt-2"
|
||||||
>
|
>
|
||||||
@@ -198,7 +198,6 @@
|
|||||||
<v-checkbox
|
<v-checkbox
|
||||||
v-model="selected"
|
v-model="selected"
|
||||||
:value="item"
|
:value="item"
|
||||||
primary
|
|
||||||
hide-details
|
hide-details
|
||||||
></v-checkbox>
|
></v-checkbox>
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
@@ -316,6 +315,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
loading: true,
|
loading: true,
|
||||||
dataTablePagingOptions: {},
|
dataTablePagingOptions: {},
|
||||||
|
lastDataTablePagingOptions: {},
|
||||||
listViewId: 0,
|
listViewId: 0,
|
||||||
listView: undefined,
|
listView: undefined,
|
||||||
pickLists: {
|
pickLists: {
|
||||||
@@ -348,11 +348,29 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
dataTablePagingOptions: {
|
dataTablePagingOptions: {
|
||||||
handler() {
|
handler() {
|
||||||
|
//{ "page": 1, "itemsPerPage": 10, "sortBy": [], "sortDesc": [], "groupBy": [], "groupDesc": [], "mustSort": false, "multiSort": false }
|
||||||
|
//this code works around some weird bug that causes visible items to be selected in grid (only, not in actual selected array, just a visual thing)
|
||||||
|
// when breakpoint is switched between wide and narrow either way. No idea why it happens but this fixes that issue and also ensures that there are no
|
||||||
|
//spurious fetches happening just because the view has changed
|
||||||
|
if (
|
||||||
|
this.lastDataTablePagingOptions.page ==
|
||||||
|
this.dataTablePagingOptions.page &&
|
||||||
|
this.lastDataTablePagingOptions.itemsPerPage ==
|
||||||
|
this.dataTablePagingOptions.itemsPerPage
|
||||||
|
) {
|
||||||
|
//no effective change, return
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//has changed something important so refetch and put a pin in last paging settings for next time
|
||||||
this.getDataFromApi();
|
this.getDataFromApi();
|
||||||
|
this.lastDataTablePagingOptions = this.dataTablePagingOptions;
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
},
|
},
|
||||||
selected: function(newValue, oldValue) {
|
selected: function(newValue, oldValue) {
|
||||||
|
if (!newValue) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (newValue.length != oldValue.length) {
|
if (newValue.length != oldValue.length) {
|
||||||
this.handleSelectChange();
|
this.handleSelectChange();
|
||||||
}
|
}
|
||||||
@@ -489,6 +507,7 @@ export default {
|
|||||||
//Make sure the locale keys are fetched
|
//Make sure the locale keys are fetched
|
||||||
await fetchLocalizedHeaderNames(res.columns); //Note can use await here because it's wrapped inside an async function call, it will wait then resume next stuff below
|
await fetchLocalizedHeaderNames(res.columns); //Note can use await here because it's wrapped inside an async function call, it will wait then resume next stuff below
|
||||||
await fetchEnums(res.columns);
|
await fetchEnums(res.columns);
|
||||||
|
|
||||||
//build vm.headers here
|
//build vm.headers here
|
||||||
vm.headers = buildHeaders(res.columns);
|
vm.headers = buildHeaders(res.columns);
|
||||||
//Post process data here and then set vm.records
|
//Post process data here and then set vm.records
|
||||||
|
|||||||
@@ -46,7 +46,9 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
//NOTE: I had some concerns about how the selection is made, but leving it for now
|
||||||
|
//basically the typed text stays after you select from dropdown, however, it clears as soon as you tab off
|
||||||
|
//and in theory it could help if picking more than one tag that have similar selection criteria
|
||||||
export default {
|
export default {
|
||||||
beforeUpdate() {
|
beforeUpdate() {
|
||||||
//Set the initial picklist items based on the record items, this only needs to be called once at init
|
//Set the initial picklist items based on the record items, this only needs to be called once at init
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ Vue.use(Vuex);
|
|||||||
export default new Vuex.Store({
|
export default new Vuex.Store({
|
||||||
plugins: [createPersistedState()],
|
plugins: [createPersistedState()],
|
||||||
state: {
|
state: {
|
||||||
lastClientVersion:"",
|
lastClientVersion: "",
|
||||||
authenticated: false,
|
authenticated: false,
|
||||||
apiUrl: "",
|
apiUrl: "",
|
||||||
helpUrl: "",
|
helpUrl: "",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
:dataListKey="dataListKey"
|
:dataListKey="dataListKey"
|
||||||
:dataListFilter="dataListFilter"
|
:dataListFilter="dataListFilter"
|
||||||
:dataListSort="dataListSort"
|
:dataListSort="dataListSort"
|
||||||
:showSelect="false"
|
:showSelect="true"
|
||||||
:singleSelect="false"
|
:singleSelect="false"
|
||||||
v-on:update:selected="handleSelected"
|
v-on:update:selected="handleSelected"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user