This commit is contained in:
@@ -172,7 +172,10 @@
|
||||
v-model="item.tempFilterValue"
|
||||
></gz-date-time-picker>
|
||||
</div>
|
||||
<v-btn text v-if="item.tempFilterToken != null"
|
||||
<v-btn
|
||||
text
|
||||
v-if="item.tempFilterToken != null"
|
||||
@click="addFilterCondition(item)"
|
||||
><v-icon>fa-plus</v-icon></v-btn
|
||||
>
|
||||
{{ item }}
|
||||
@@ -378,6 +381,26 @@ export default {
|
||||
|
||||
this.obj.splice(newIndex, 0, this.obj.splice(index, 1)[0]);
|
||||
},
|
||||
addFilterCondition(item) {
|
||||
//push tempFilter item into item.filter.items array
|
||||
// tempFilterOperator: null
|
||||
//tempFilterToken: "*yesterday*"
|
||||
//tempFilterValue: null
|
||||
/*
|
||||
FilterItem.fld = "widgetstartdate";
|
||||
FilterItem.op = Util.OpEquality;
|
||||
FilterItem.value = TokenYesterday;
|
||||
|
||||
Dates have special values in tempFilterToken that must be handled specially
|
||||
if Date tempfiltertoken is *select* then no special value token is in use like YESTERDAY
|
||||
everything has special values in the tempfilterOperator of two choices *NOVALUE* or *HASVALUE*, otherwise it's a straight up filter operator
|
||||
|
||||
In all other cases than above tempfilterOperator is relevant and tempFilterValue is relevant
|
||||
TODO: sample fragment of each kind as are done I guess
|
||||
TODO: DataTAble needs to pre-process filter to substitute tokens on the fly before sending to the server
|
||||
*/
|
||||
console.log(item);
|
||||
},
|
||||
form() {
|
||||
return window.$gz.form;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user