PMCORE-3328
This commit is contained in:
@@ -366,6 +366,9 @@ export default {
|
|||||||
id: this.id
|
id: this.id
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Event.$on('inbox::update-filters', (data) => {
|
||||||
|
that.updateSettings(data);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
columns: function (val) {
|
columns: function (val) {
|
||||||
@@ -645,6 +648,7 @@ export default {
|
|||||||
* @param {object} data
|
* @param {object} data
|
||||||
*/
|
*/
|
||||||
onUpdateFilters(data) {
|
onUpdateFilters(data) {
|
||||||
|
console.log("jonas");
|
||||||
this.filters = data.params;
|
this.filters = data.params;
|
||||||
this.prepareAndUpdate(data);
|
this.prepareAndUpdate(data);
|
||||||
if (data.refresh) {
|
if (data.refresh) {
|
||||||
|
|||||||
@@ -28,9 +28,7 @@
|
|||||||
@select="changeOption"
|
@select="changeOption"
|
||||||
></multiselect>
|
></multiselect>
|
||||||
</div>
|
</div>
|
||||||
<label class="vp-inline-block vp-padding-l20">{{
|
<label class="vp-inline-block vp-padding-l20">{{ $t("ID_TOP") }}</label>
|
||||||
$t("ID_TOP")
|
|
||||||
}}</label>
|
|
||||||
<div class="vp-inline-block">
|
<div class="vp-inline-block">
|
||||||
<b-form-checkbox
|
<b-form-checkbox
|
||||||
v-model="top"
|
v-model="top"
|
||||||
@@ -40,6 +38,35 @@
|
|||||||
>
|
>
|
||||||
</b-form-checkbox>
|
</b-form-checkbox>
|
||||||
</div>
|
</div>
|
||||||
|
<b-popover
|
||||||
|
ref="popover"
|
||||||
|
:target="popoverTarget"
|
||||||
|
variant="secondary"
|
||||||
|
placement="right"
|
||||||
|
>
|
||||||
|
<div class="vp-chart-minipopover">
|
||||||
|
<div class="vp-align-right vp-flex1">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn btn-link btn-sm"
|
||||||
|
@click="onClickDrillDown"
|
||||||
|
>
|
||||||
|
<i class="fas fa-chart-line"></i>
|
||||||
|
{{ $t("ID_DRILL") }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="vp-flex1">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn btn-link btn-sm"
|
||||||
|
@click="onClickData"
|
||||||
|
>
|
||||||
|
<i class="fas fa-th"></i>
|
||||||
|
{{ $t("ID_DATA") }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</b-popover>
|
||||||
<div class="vp-inline-block vp-right vp-padding-r40">
|
<div class="vp-inline-block vp-right vp-padding-r40">
|
||||||
<h4
|
<h4
|
||||||
class="v-search-title"
|
class="v-search-title"
|
||||||
@@ -62,10 +89,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
|
import jquery from "jquery";
|
||||||
import Api from "../../api/index";
|
import Api from "../../api/index";
|
||||||
import BreadCrumb from "../../components/utils/BreadCrumb.vue";
|
import BreadCrumb from "../../components/utils/BreadCrumb.vue";
|
||||||
import ProcessPopover from "./ProcessPopover.vue";
|
import ProcessPopover from "./ProcessPopover.vue";
|
||||||
import Multiselect from "vue-multiselect";
|
import Multiselect from "vue-multiselect";
|
||||||
|
import eventBus from "./../EventBus/eventBus";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "VueChartLvOne",
|
name: "VueChartLvOne",
|
||||||
@@ -79,6 +108,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
let that = this;
|
let that = this;
|
||||||
return {
|
return {
|
||||||
|
popoverTarget: "",
|
||||||
|
showPopover: false,
|
||||||
category: null,
|
category: null,
|
||||||
dataProcesses: null, //Data API processes
|
dataProcesses: null, //Data API processes
|
||||||
settingsBreadcrumbs: [
|
settingsBreadcrumbs: [
|
||||||
@@ -108,14 +139,15 @@ export default {
|
|||||||
show: false,
|
show: false,
|
||||||
},
|
},
|
||||||
events: {
|
events: {
|
||||||
legendClick: function (chartContext, seriesIndex, config) {
|
click: function (event, chartContext, config) {
|
||||||
that.currentSelection = that.totalCases[seriesIndex];
|
that.$refs.popover.$emit("close");
|
||||||
that.$emit("updateDataLevel", {
|
if (config.dataPointIndex != -1) {
|
||||||
id: that.currentSelection["PRO_ID"],
|
that.currentSelection = that.totalCases[config.dataPointIndex];
|
||||||
name: that.currentSelection["PRO_TITLE"],
|
that.onShowDrillDownOptions(
|
||||||
level: 1,
|
event.currentTarget,
|
||||||
data: that.currentSelection,
|
config.dataPointIndex
|
||||||
});
|
);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -126,9 +158,6 @@ export default {
|
|||||||
horizontal: true,
|
horizontal: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
legend: {
|
|
||||||
position: "top",
|
|
||||||
},
|
|
||||||
colors: ["#33b2df", "#546E7A", "#d4526e", "#13d8aa"],
|
colors: ["#33b2df", "#546E7A", "#d4526e", "#13d8aa"],
|
||||||
dataLabels: {
|
dataLabels: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
@@ -255,7 +284,7 @@ export default {
|
|||||||
processes: this.selectedProcesses,
|
processes: this.selectedProcesses,
|
||||||
top: this.top,
|
top: this.top,
|
||||||
};
|
};
|
||||||
option.id == "all"? delete dt.category:null;
|
option.id == "all" ? delete dt.category : null;
|
||||||
Api.process
|
Api.process
|
||||||
.totalCasesByProcess(dt)
|
.totalCasesByProcess(dt)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
@@ -345,9 +374,60 @@ export default {
|
|||||||
* Event handler change input search popover
|
* Event handler change input search popover
|
||||||
* @param {string} query - value in popover search input
|
* @param {string} query - value in popover search input
|
||||||
*/
|
*/
|
||||||
onChangeSearchPopover(query){
|
onChangeSearchPopover(query) {
|
||||||
this.getProcesses(query);
|
this.getProcesses(query);
|
||||||
}
|
},
|
||||||
|
/**
|
||||||
|
* Show popover drill down options
|
||||||
|
* @param {objHtml} target
|
||||||
|
* @param {number} index
|
||||||
|
*/
|
||||||
|
onShowDrillDownOptions(target, index) {
|
||||||
|
let obj,
|
||||||
|
dt,
|
||||||
|
that = this;
|
||||||
|
if (index != -1) {
|
||||||
|
obj = jquery(target).find("path")[index];
|
||||||
|
dt = this.dataProcesses[index];
|
||||||
|
this.popoverTarget = obj.id;
|
||||||
|
setTimeout(() => {
|
||||||
|
that.$refs.popover.$emit("open");
|
||||||
|
}, 200);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Show popover drill down options
|
||||||
|
*/
|
||||||
|
onClickDrillDown() {
|
||||||
|
this.$emit("updateDataLevel", {
|
||||||
|
id: this.currentSelection["PRO_ID"],
|
||||||
|
name: this.currentSelection["PRO_TITLE"],
|
||||||
|
level: 1,
|
||||||
|
data: this.currentSelection,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Show popover data options
|
||||||
|
*/
|
||||||
|
onClickData() {
|
||||||
|
let taskList = this.data[0].id.toLowerCase(),
|
||||||
|
obj = {
|
||||||
|
autoshow: false,
|
||||||
|
fieldId: "processName",
|
||||||
|
filterVar: "process",
|
||||||
|
label: "",
|
||||||
|
options: {
|
||||||
|
label: this.currentSelection["PRO_TITLE"],
|
||||||
|
value: this.currentSelection["PRO_ID"],
|
||||||
|
},
|
||||||
|
value: this.currentSelection["PRO_ID"],
|
||||||
|
};
|
||||||
|
eventBus.$emit("inbox::update-filters", {
|
||||||
|
params: [obj],
|
||||||
|
refresh: false,
|
||||||
|
});
|
||||||
|
eventBus.$emit("home-update-page", taskList);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@@ -375,5 +455,13 @@ export default {
|
|||||||
.vp-right {
|
.vp-right {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vp-chart-minipopover {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vp-flex1 {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style src="vue-multiselect/dist/vue-multiselect.min.css"></style>
|
<style src="vue-multiselect/dist/vue-multiselect.min.css"></style>
|
||||||
@@ -53199,6 +53199,12 @@ msgstr "By selecting the task will be open automatically if the task is Inbox or
|
|||||||
msgid "Level"
|
msgid "Level"
|
||||||
msgstr "Level"
|
msgstr "Level"
|
||||||
|
|
||||||
|
# TRANSLATION
|
||||||
|
# LABEL/ID_DRILL
|
||||||
|
#: LABEL/ID_DRILL
|
||||||
|
msgid "Drill"
|
||||||
|
msgstr "Drill"
|
||||||
|
|
||||||
# TRANSLATION
|
# TRANSLATION
|
||||||
# LABEL/ID_DRILL_DOWN_NAVIGATOR
|
# LABEL/ID_DRILL_DOWN_NAVIGATOR
|
||||||
#: LABEL/ID_DRILL_DOWN_NAVIGATOR
|
#: LABEL/ID_DRILL_DOWN_NAVIGATOR
|
||||||
|
|||||||
@@ -58006,6 +58006,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
|
|||||||
( 'LABEL','ID_DRAFT','en','Draft','2014-01-15') ,
|
( 'LABEL','ID_DRAFT','en','Draft','2014-01-15') ,
|
||||||
( 'LABEL','ID_DRIVE_HELP_ENABLE','en','When this option is enabled, all input, output and attached documents generated in your processes can be stored in Google Drive.','2016-01-05') ,
|
( 'LABEL','ID_DRIVE_HELP_ENABLE','en','When this option is enabled, all input, output and attached documents generated in your processes can be stored in Google Drive.','2016-01-05') ,
|
||||||
( 'LABEL','ID_DRILL_DOWN_NAVIGATOR','en','Drill Down Navigator','2020-08-26') ,
|
( 'LABEL','ID_DRILL_DOWN_NAVIGATOR','en','Drill Down Navigator','2020-08-26') ,
|
||||||
|
( 'LABEL','ID_DRILL','en','Drill','2021-08-26') ,
|
||||||
( 'LABEL','ID_DRILL_DOWN_NUMBER_TASKS','en','Number of tasks per Task Status','2020-08-26') ,
|
( 'LABEL','ID_DRILL_DOWN_NUMBER_TASKS','en','Number of tasks per Task Status','2020-08-26') ,
|
||||||
( 'LABEL','ID_DRILL_DOWN_NUMBER_TASKS_PROCESS','en','Number of Tasks Status per Process','2020-08-26') ,
|
( 'LABEL','ID_DRILL_DOWN_NUMBER_TASKS_PROCESS','en','Number of Tasks Status per Process','2020-08-26') ,
|
||||||
( 'LABEL','ID_DRILL_DOWN_NUMBER_TASKS_PROCESS_BY_TASK','en','Number of Tasks Status per Process by task status','2020-08-26') ,
|
( 'LABEL','ID_DRILL_DOWN_NUMBER_TASKS_PROCESS_BY_TASK','en','Number of Tasks Status per Process by task status','2020-08-26') ,
|
||||||
|
|||||||
Reference in New Issue
Block a user