fix Cr notes

This commit is contained in:
Rodrigo Quelca
2021-08-27 19:15:18 +00:00
parent 5ae61fbaf3
commit c2e19cf457
4 changed files with 12 additions and 8 deletions

View File

@@ -1,13 +1,17 @@
<template> <template>
<span <span
:id="`label-${data.id}`" :id="`label-${data.page}`"
@mouseover="hoverHandler" @mouseover="hoverHandler"
v-b-tooltip.hover v-b-tooltip.hover
@mouseleave="unhoverHandler" @mouseleave="unhoverHandler"
v-bind:class="{highlightText: isHighlight}" v-bind:class="{highlightText: isHighlight}"
> >
{{ data.title }} {{ data.title }}
<b-tooltip :target="`label-${data.page}`" :ref="`tooltip-${data.page}`"> <b-tooltip
:target="`label-${data.page}`"
triggers="hoverHandler"
:ref="`tooltip-${data.page}`"
>
{{ labelTooltip }} {{ labelTooltip }}
</b-tooltip> </b-tooltip>
</span> </span>

View File

@@ -459,7 +459,7 @@ export default {
// force to open case // force to open case
this.openDefaultCase(); this.openDefaultCase();
// define sort event // define sort event
Event.$on("vue-tables.todo.so rted", function(data) { Event.$on("vue-tables.todo.sorted", function(data) {
that.$emit("updateUserSettings", "orderBy", data); that.$emit("updateUserSettings", "orderBy", data);
}); });
}, },
@@ -625,6 +625,8 @@ export default {
}, },
/** /**
* Format Response API TODO to grid todo and columns * Format Response API TODO to grid todo and columns
* @param {object} response
* @returns {object}
*/ */
formatDataResponse(response) { formatDataResponse(response) {
let data = []; let data = [];
@@ -666,7 +668,8 @@ export default {
}, },
/** /**
* Set the format to show user's information * Set the format to show user's information
* @return {array} dataFormat * @return {array} data
* @returns {object}
*/ */
formatUser(data) { formatUser(data) {
var dataFormat = [], var dataFormat = [],

View File

@@ -92,8 +92,7 @@ export default {
filters[item.filterVar] = item.value; filters[item.filterVar] = item.value;
}); });
return new Promise((resolutionFunc, rejectionFunc) => { return new Promise((resolutionFunc, rejectionFunc) => {
api.cases api.cases[that.data.pageParent](filters)
.todo(filters)
.then((response) => { .then((response) => {
dt = that.formatDataResponse(response.data.data); dt = that.formatDataResponse(response.data.data);
resolutionFunc({ resolutionFunc({

View File

@@ -491,7 +491,6 @@ export default {
* @param {object} item * @param {object} item
*/ */
openCase(item) { openCase(item) {
debugger;
this.$emit("onUpdateDataCase", { this.$emit("onUpdateDataCase", {
APP_UID: item.APP_UID, APP_UID: item.APP_UID,
DEL_INDEX: item.DEL_INDEX, DEL_INDEX: item.DEL_INDEX,
@@ -558,7 +557,6 @@ export default {
* @param {object} data * @param {object} data
*/ */
updateDataEllipsis(data) { updateDataEllipsis(data) {
debugger;
let that = this; let that = this;
this.showEllipsis = !this.showEllipsis; this.showEllipsis = !this.showEllipsis;
if (this.showEllipsis) { if (this.showEllipsis) {