Merged in bugfix/PMCORE-2853-A (pull request #7860)
PMCORE-2853 Approved-by: Rodrigo Quelca
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
3dff8069e2
@@ -188,6 +188,16 @@ export default {
|
|||||||
itemModel: {},
|
itemModel: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
// Force to load filters when mounted the component
|
||||||
|
let fils= this.filters;
|
||||||
|
if(_.isArray(this.filters)){
|
||||||
|
_.forEach(fils,(o)=>{
|
||||||
|
o.autoShow = false;
|
||||||
|
});
|
||||||
|
this.setFilters(fils);
|
||||||
|
}
|
||||||
|
},
|
||||||
watch: {
|
watch: {
|
||||||
filters: function (filters) {
|
filters: function (filters) {
|
||||||
this.searchTags = [];
|
this.searchTags = [];
|
||||||
|
|||||||
@@ -230,6 +230,16 @@ export default {
|
|||||||
itemModel: {}
|
itemModel: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
// Force to load filters when mounted the component
|
||||||
|
let fils= this.filters;
|
||||||
|
if(_.isArray(this.filters)){
|
||||||
|
_.forEach(fils,(o)=>{
|
||||||
|
o.autoShow = false;
|
||||||
|
});
|
||||||
|
this.setFilters(fils);
|
||||||
|
}
|
||||||
|
},
|
||||||
watch: {
|
watch: {
|
||||||
filters: function (filters) {
|
filters: function (filters) {
|
||||||
this.searchTags = [];
|
this.searchTags = [];
|
||||||
@@ -276,6 +286,7 @@ export default {
|
|||||||
self.searchTags.push(component.id);
|
self.searchTags.push(component.id);
|
||||||
self.selected = component.id;
|
self.selected = component.id;
|
||||||
self.itemModel[component.id] = component;
|
self.itemModel[component.id] = component;
|
||||||
|
self.itemModel[component.id].autoShow = typeof item.autoShow !== "undefined" ? item.autoShow : true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export default {
|
|||||||
TaskCell,
|
TaskCell,
|
||||||
CasesFilter,
|
CasesFilter,
|
||||||
},
|
},
|
||||||
props: ["defaultOption"],
|
props: ["defaultOption", "filters"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
newCase: {
|
newCase: {
|
||||||
@@ -80,7 +80,6 @@ export default {
|
|||||||
"actions"
|
"actions"
|
||||||
],
|
],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
filters: {},
|
|
||||||
options: {
|
options: {
|
||||||
filterable: false,
|
filterable: false,
|
||||||
headings: {
|
headings: {
|
||||||
@@ -140,7 +139,7 @@ export default {
|
|||||||
if(this.defaultOption) {
|
if(this.defaultOption) {
|
||||||
params = utils.getAllUrlParams(this.defaultOption);
|
params = utils.getAllUrlParams(this.defaultOption);
|
||||||
if (params && params.openapplicationuid) {
|
if (params && params.openapplicationuid) {
|
||||||
this.filters = [
|
this.$emit("onUpdateFilters",[
|
||||||
{
|
{
|
||||||
fieldId: "caseNumber",
|
fieldId: "caseNumber",
|
||||||
filterVar: "caseNumber",
|
filterVar: "caseNumber",
|
||||||
@@ -149,7 +148,7 @@ export default {
|
|||||||
value: params.openapplicationuid,
|
value: params.openapplicationuid,
|
||||||
autoShow: false
|
autoShow: false
|
||||||
}
|
}
|
||||||
];
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -302,7 +301,7 @@ export default {
|
|||||||
},
|
},
|
||||||
onRemoveFilter(data) {},
|
onRemoveFilter(data) {},
|
||||||
onUpdateFilters(data) {
|
onUpdateFilters(data) {
|
||||||
this.filters = data.params;
|
this.$emit("onUpdateFilters", data.params);
|
||||||
if (data.refresh) {
|
if (data.refresh) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs["vueTable"].getData();
|
this.$refs["vueTable"].getData();
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ export default {
|
|||||||
ModalUnpauseCase,
|
ModalUnpauseCase,
|
||||||
CasesFilter,
|
CasesFilter,
|
||||||
},
|
},
|
||||||
props: ["defaultOption"],
|
props: ["defaultOption", "filters"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
newCase: {
|
newCase: {
|
||||||
@@ -98,7 +98,6 @@ export default {
|
|||||||
"actions",
|
"actions",
|
||||||
],
|
],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
filters: {},
|
|
||||||
options: {
|
options: {
|
||||||
filterable: false,
|
filterable: false,
|
||||||
headings: {
|
headings: {
|
||||||
@@ -164,7 +163,7 @@ export default {
|
|||||||
if(this.defaultOption) {
|
if(this.defaultOption) {
|
||||||
params = utils.getAllUrlParams(this.defaultOption);
|
params = utils.getAllUrlParams(this.defaultOption);
|
||||||
if (params && params.openapplicationuid) {
|
if (params && params.openapplicationuid) {
|
||||||
this.filters = [
|
this.$emit("onUpdateFilters",[
|
||||||
{
|
{
|
||||||
fieldId: "caseNumber",
|
fieldId: "caseNumber",
|
||||||
filterVar: "caseNumber",
|
filterVar: "caseNumber",
|
||||||
@@ -173,7 +172,7 @@ export default {
|
|||||||
value: params.openapplicationuid,
|
value: params.openapplicationuid,
|
||||||
autoShow: false
|
autoShow: false
|
||||||
}
|
}
|
||||||
];
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -337,7 +336,7 @@ export default {
|
|||||||
},
|
},
|
||||||
onRemoveFilter(data) {},
|
onRemoveFilter(data) {},
|
||||||
onUpdateFilters(data) {
|
onUpdateFilters(data) {
|
||||||
this.filters = data.params;
|
this.$emit("onUpdateFilters", data.params);
|
||||||
if (data.refresh) {
|
if (data.refresh) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs["vueTable"].getData();
|
this.$refs["vueTable"].getData();
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export default {
|
|||||||
TaskCell,
|
TaskCell,
|
||||||
CasesFilter,
|
CasesFilter,
|
||||||
},
|
},
|
||||||
props: ["defaultOption"],
|
props: ["defaultOption", "filters"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
newCase: {
|
newCase: {
|
||||||
@@ -92,7 +92,6 @@ export default {
|
|||||||
"actions",
|
"actions",
|
||||||
],
|
],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
filters: {},
|
|
||||||
options: {
|
options: {
|
||||||
filterable: false,
|
filterable: false,
|
||||||
headings: {
|
headings: {
|
||||||
@@ -157,7 +156,7 @@ export default {
|
|||||||
if(this.defaultOption) {
|
if(this.defaultOption) {
|
||||||
params = utils.getAllUrlParams(this.defaultOption);
|
params = utils.getAllUrlParams(this.defaultOption);
|
||||||
if (params && params.openapplicationuid) {
|
if (params && params.openapplicationuid) {
|
||||||
this.filters = [
|
this.$emit("onUpdateFilters", [
|
||||||
{
|
{
|
||||||
fieldId: "caseNumber",
|
fieldId: "caseNumber",
|
||||||
filterVar: "caseNumber",
|
filterVar: "caseNumber",
|
||||||
@@ -166,7 +165,7 @@ export default {
|
|||||||
value: params.openapplicationuid,
|
value: params.openapplicationuid,
|
||||||
autoShow: false
|
autoShow: false
|
||||||
}
|
}
|
||||||
];
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -327,7 +326,7 @@ export default {
|
|||||||
},
|
},
|
||||||
onRemoveFilter(data) {},
|
onRemoveFilter(data) {},
|
||||||
onUpdateFilters(data) {
|
onUpdateFilters(data) {
|
||||||
this.filters = data.params;
|
this.$emit("onUpdateFilters", data.params);
|
||||||
if (data.refresh) {
|
if (data.refresh) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs["vueTable"].getData();
|
this.$refs["vueTable"].getData();
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export default {
|
|||||||
ModalClaimCase,
|
ModalClaimCase,
|
||||||
CasesFilter,
|
CasesFilter,
|
||||||
},
|
},
|
||||||
props: ["defaultOption"],
|
props: ["defaultOption", "filters"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
newCase: {
|
newCase: {
|
||||||
@@ -92,7 +92,6 @@ export default {
|
|||||||
"actions",
|
"actions",
|
||||||
],
|
],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
filters: {},
|
|
||||||
options: {
|
options: {
|
||||||
filterable: false,
|
filterable: false,
|
||||||
headings: {
|
headings: {
|
||||||
@@ -158,7 +157,7 @@ export default {
|
|||||||
if(this.defaultOption) {
|
if(this.defaultOption) {
|
||||||
params = utils.getAllUrlParams(this.defaultOption);
|
params = utils.getAllUrlParams(this.defaultOption);
|
||||||
if (params && params.openapplicationuid) {
|
if (params && params.openapplicationuid) {
|
||||||
this.filters = [
|
this.$emit("onUpdateFilters",[
|
||||||
{
|
{
|
||||||
fieldId: "caseNumber",
|
fieldId: "caseNumber",
|
||||||
filterVar: "caseNumber",
|
filterVar: "caseNumber",
|
||||||
@@ -167,7 +166,7 @@ export default {
|
|||||||
value: params.openapplicationuid,
|
value: params.openapplicationuid,
|
||||||
autoShow: false
|
autoShow: false
|
||||||
}
|
}
|
||||||
];
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -335,7 +334,7 @@ export default {
|
|||||||
},
|
},
|
||||||
onRemoveFilter(data) {},
|
onRemoveFilter(data) {},
|
||||||
onUpdateFilters(data) {
|
onUpdateFilters(data) {
|
||||||
this.filters = data.params;
|
this.$emit("onUpdateFilters", data.params);
|
||||||
if (data.refresh) {
|
if (data.refresh) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs["vueTable"].getData();
|
this.$refs["vueTable"].getData();
|
||||||
|
|||||||
Reference in New Issue
Block a user