This commit is contained in:
@@ -28,6 +28,10 @@ LISTVIEW REPLACE CURRENT <----HERE not THERE ---v
|
|||||||
filter:[{column:"PartPartNumber",any:true/false,items:[{op: "=",value: "400735"}]}],
|
filter:[{column:"PartPartNumber",any:true/false,items:[{op: "=",value: "400735"}]}],
|
||||||
clientCriteria:"2" //could be anything here that makes sense to the list, in this case an example customer id for customernotedatalist
|
clientCriteria:"2" //could be anything here that makes sense to the list, in this case an example customer id for customernotedatalist
|
||||||
|
|
||||||
|
CURRENTLY IN BUILDER:
|
||||||
|
editItemFilter:{ "any": true, "items": [ { "op": "=", "value": "*thisweek*", "display": "= Week - Current", "token": true }, { "op": "=", "value": "*lastmonth*", "display": "= Month - Previous", "token": true } ] }
|
||||||
|
|
||||||
|
|
||||||
columns are represented in a higher level object DataListTableOptions
|
columns are represented in a higher level object DataListTableOptions
|
||||||
sort and filter are in here
|
sort and filter are in here
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
<v-card-title>{{ tableColumnData.text }}</v-card-title>
|
<v-card-title>{{ tableColumnData.text }}</v-card-title>
|
||||||
<!-- <v-card-subtitle class="mt-1">sub title text</v-card-subtitle> -->
|
<!-- <v-card-subtitle class="mt-1">sub title text</v-card-subtitle> -->
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
activefilter:{{ activeFilter }} editItem:{{ editItem }}
|
activefilter:{{ activeFilter }} <br /><br />
|
||||||
|
editItemFilter:{{ editItem.filter }}
|
||||||
<!-- FILTER CONTROL -->
|
<!-- FILTER CONTROL -->
|
||||||
<template v-if="editItem.isFilterable">
|
<template v-if="editItem.isFilterable">
|
||||||
<div class="pt-6">
|
<div class="pt-6">
|
||||||
@@ -362,6 +363,21 @@ export default {
|
|||||||
//upsert conditions for this column
|
//upsert conditions for this column
|
||||||
//save filter
|
//save filter
|
||||||
//let grid do it's thing
|
//let grid do it's thing
|
||||||
|
|
||||||
|
/*
|
||||||
|
filter:[{column:"PartPartNumber",any:true/false,items:[{op: "=",value: "400735"}]}],
|
||||||
|
clientCriteria:"2" //could be anything here that makes sense to the list, in this case an example customer id for customernotedatalist
|
||||||
|
|
||||||
|
CURRENTLY IN BUILDER:
|
||||||
|
editItemFilter:{ "any": true, "items": [ { "op": "=", "value": "*thisweek*", "display": "= Week - Current", "token": true }, { "op": "=", "value": "*lastmonth*", "display": "= Month - Previous", "token": true } ] }
|
||||||
|
|
||||||
|
*/
|
||||||
|
//turn activeFilter into object json.parse
|
||||||
|
|
||||||
|
//todo: iterate this.activeFilter see if this.tableColumnData.fk is there, if it is, replace it with editItemFilter if it isn't then push it into collection
|
||||||
|
|
||||||
|
//turn activeFilter back into json and send back to server to save
|
||||||
|
|
||||||
this.close({ refresh: true });
|
this.close({ refresh: true });
|
||||||
},
|
},
|
||||||
addFilterCondition(editItem) {
|
addFilterCondition(editItem) {
|
||||||
|
|||||||
Reference in New Issue
Block a user