@@ -205,9 +205,7 @@ export default {
this.typeSelected = listType;
if (listType === "tasks") {
this.$root.$emit("dropdownSelectionTask", valueSelected);
- this.titleDropdown =
- valueSelected === "View All" ? this.viewAll : valueSelected;
- this.colorBadge();
+ this.titleDropdown = valueSelected;
} else {
if (listType === "requests_filter") {
this.optionRequest = valueSelected;
@@ -219,9 +217,7 @@ export default {
}
}
if (listType === "requests_dropdown") {
- this.titleDropdown =
- valueSelected === "View All" ? this.viewAll : valueSelected;
- this.colorBadge();
+ this.titleDropdown = valueSelected;
this.dropdownRequest = valueSelected;
}
combinedFilter.push(this.optionRequest);
@@ -318,8 +314,10 @@ export default {
background-color: #f9f9f9;
}
-.btn-outline-secondary {
+.btn-outline-secondary,
+.btn-outline-secondary:focus {
border: none;
+ box-shadow: none;
}
.item-text {
@@ -334,7 +332,7 @@ export default {
.dropdown-menu {
padding: 0px;
- width: 250px;
+ width: 180px;
box-shadow: 0px 4px 8px 0px #0000001A;
border-radius: 4px;
}
@@ -348,11 +346,23 @@ export default {
letter-spacing: -0.02em;
text-align: left;
}
+
+.btn-outline-secondary:hover,
+.btn-outline-secondary:not(:disabled):not(.disabled):active,
+.btn-outline-secondary:not(:disabled):not(.disabled).active,
+.show > .btn-outline-secondary.dropdown-toggle {
+ background: none;
+ color: #228fed;
+ border: none;
+ box-shadow: none;
+}
+
.head-filter {
display: flex;
align-items: baseline;
gap: 8px;
}
+
.badge {
display: inline-flex;
padding: 8px;
diff --git a/src/components/renderer/form-tasks.vue b/src/components/renderer/form-tasks.vue
index f6e9e43f2..58deda50e 100755
--- a/src/components/renderer/form-tasks.vue
+++ b/src/components/renderer/form-tasks.vue
@@ -298,7 +298,7 @@ export default {
: "text-dark";
},
fetchData(selectedOption) {
- if (selectedOption === "In Progress" || selectedOption === "all") {
+ if (selectedOption === "In Progress" || selectedOption === "View All") {
this.filterDropdowns = "";
this.pmql = `(user_id = ${ProcessMaker.user.id}) AND (status = "In Progress")`;
}
From 4a254af0cddcf7be32896e486037a2006008080d Mon Sep 17 00:00:00 2001
From: luNunezProcessmaker
Date: Wed, 29 May 2024 12:58:52 -0400
Subject: [PATCH 3/3] feature/FOUR-15535
---
src/components/renderer/form-requests.vue | 15 ++++++++++-----
src/components/renderer/form-tasks.vue | 21 +++++++++++++++------
2 files changed, 25 insertions(+), 11 deletions(-)
diff --git a/src/components/renderer/form-requests.vue b/src/components/renderer/form-requests.vue
index 527ee011b..5c6e194e5 100755
--- a/src/components/renderer/form-requests.vue
+++ b/src/components/renderer/form-requests.vue
@@ -85,6 +85,7 @@ export default {
orderDirection: "DESC",
additionalParams: "",
showTable: true,
+ pmqlSearch: "",
sortOrder: [
{
field: "id",
@@ -116,6 +117,10 @@ export default {
pmql = this.pmql;
}
+ if (this.pmqlSearch) {
+ pmql = pmql + "AND" + this.pmqlSearch;
+ }
+
let { filter } = this;
if (filter && filter.length) {
@@ -224,23 +229,23 @@ export default {
: "text-dark";
},
fetchData(selectedOptions) {
- if (selectedOptions[0] === "by_me" && selectedOptions[1] !== "all") {
+ if (selectedOptions[0] === "by_me" && selectedOptions[1] !== "View All") {
this.pmql = `(user_id = ${ProcessMaker.user.id}) AND (status = "${selectedOptions[1]}")`;
}
if (
selectedOptions[0] === "as_participant" &&
- selectedOptions[1] !== "all"
+ selectedOptions[1] !== "View All"
) {
this.pmql = `(status = "${selectedOptions[1]}") AND (participant = "${Processmaker.user.username}")`;
}
- if (selectedOptions[1] === "all") {
+ if (selectedOptions[1] === "View All") {
this.pmql = `(user_id = ${ProcessMaker.user.id}) AND ((status = "In Progress") OR (status = "Completed"))`;
}
this.fetch();
},
fetchSearch(searchData) {
- this.pmql = "";
- this.pmql = searchData;
+ this.pmqlSearch = "";
+ this.pmqlSearch = searchData;
this.fetch();
},
setupColumns() {
diff --git a/src/components/renderer/form-tasks.vue b/src/components/renderer/form-tasks.vue
index 58deda50e..17fec1d28 100755
--- a/src/components/renderer/form-tasks.vue
+++ b/src/components/renderer/form-tasks.vue
@@ -71,6 +71,7 @@ export default {
order_direction: "DESC",
status: "",
showTable: true,
+ pmqlSearch: "",
sortOrder: [
{
field: "ID",
@@ -89,7 +90,7 @@ export default {
},
mounted() {
this.setFields();
- this.pmql = `(user_id = ${ProcessMaker.user.id}) AND (status = "In Progress")`;
+ this.pmql = `(user_id = ${ProcessMaker.user.id})`;
this.fetch();
this.$root.$on("dropdownSelectionTask", this.fetchData);
this.$root.$on("searchTask", this.fetchSearch);
@@ -111,6 +112,10 @@ export default {
pmql = this.pmql;
}
+ if (this.pmqlSearch) {
+ pmql = pmql + "AND" + this.pmqlSearch;
+ }
+
if (this.filterDropdowns !== undefined) {
filterDropdowns = this.filterDropdowns;
}
@@ -298,9 +303,13 @@ export default {
: "text-dark";
},
fetchData(selectedOption) {
- if (selectedOption === "In Progress" || selectedOption === "View All") {
- this.filterDropdowns = "";
- this.pmql = `(user_id = ${ProcessMaker.user.id}) AND (status = "In Progress")`;
+ this.filterDropdowns = "";
+ this.pmql = `(user_id = ${ProcessMaker.user.id})`
+ if (selectedOption === "Self-service") {
+ this.pmql = this.pmql + `AND (status = "Self Service")`;
+ }
+ if (selectedOption === "In Progress") {
+ this.pmql = this.pmql + `AND (status = "In Progress")`;
}
if (selectedOption === "Overdue") {
this.filterDropdowns = "overdue=true";
@@ -308,8 +317,8 @@ export default {
this.fetch();
},
fetchSearch(searchData) {
- this.pmql = "";
- this.pmql = searchData;
+ this.pmqlSearch = "";
+ this.pmqlSearch = searchData;
this.fetch();
}
}