problem description
vuetabletable
:table
related codes
the following is the method when the condition of Filter changes (filter-change):
fillFilter() {
this.dynamicTags= [];//dynamicTagswatchdynamicTags
var condition = {
page: this.page,
category:"",
effect:"",
timeScale:"",
state:""
};
for (let e of this.$refs.expandTable.columns) {//condition
if (e.filteredValue.length > 0) {
for (let v of e.filteredValue) {
if("category" == e.property)
{
condition.category += (condition.category === "" ? v : "," + v);
}
else if("effect" == e.property)
{
condition.effect += (condition.effect === "" ? v : "," + v);
}
else if("recording" == e.property)
{
condition.timeScale += (condition.timeScale === "" ? v : "," + v);
}
else if("state" == e.property)
{
condition.state += (condition.state === "" ? v : "," + v);
}
}
}
}
this.dynamicTags=(condition);
},
What is the error message that actually sees? What result do you expect?
there is a problem with Filter data in this way, that is, if you first use the chart linkage to update dynamicTags, and then click filter to trigger Filter Filter method, then the updated dynamicTags in the previous chart linkage will be overwritten.
and the way I expect to achieve it is to directly manipulate the Filter condition of table after clicking on something in the chart to make table trigger the Filter method itself. But after consulting the documents, I found no way to trigger Filter directly. Is there any other way to solve this problem
?