Merged in feature/PMCORE-3070 (pull request #8023)
PMCORE-3070 Approved-by: Rodrigo Quelca
This commit is contained in:
@@ -35,8 +35,8 @@
|
|||||||
<div slot="case_title" slot-scope="props">
|
<div slot="case_title" slot-scope="props">
|
||||||
{{ props.row.CASE_TITLE }}
|
{{ props.row.CASE_TITLE }}
|
||||||
</div>
|
</div>
|
||||||
<div slot="assignee" slot-scope="props">
|
<div slot="current_user" slot-scope="props">
|
||||||
{{ props.row.ASSIGNEE }}
|
<CurrentUserCell :data="props.row.USER_DATA" />
|
||||||
</div>
|
</div>
|
||||||
<div slot="status" slot-scope="props">
|
<div slot="status" slot-scope="props">
|
||||||
{{ props.row.STATUS }}
|
{{ props.row.STATUS }}
|
||||||
@@ -114,6 +114,7 @@ import ModalCancelCase from "../home/modal/ModalCancelCase.vue";
|
|||||||
import ModalNewRequest from "./ModalNewRequest.vue";
|
import ModalNewRequest from "./ModalNewRequest.vue";
|
||||||
import ModalClaimCase from "./modal/ModalClaimCase.vue";
|
import ModalClaimCase from "./modal/ModalClaimCase.vue";
|
||||||
import TaskCell from "../components/vuetable/TaskCell.vue";
|
import TaskCell from "../components/vuetable/TaskCell.vue";
|
||||||
|
import CurrentUserCell from "../components/vuetable/CurrentUserCell.vue"
|
||||||
import utils from "./../utils/utils";
|
import utils from "./../utils/utils";
|
||||||
import Api from "../api/index";
|
import Api from "../api/index";
|
||||||
|
|
||||||
@@ -131,7 +132,8 @@ export default {
|
|||||||
ButtonFleft,
|
ButtonFleft,
|
||||||
ModalNewRequest,
|
ModalNewRequest,
|
||||||
ModalClaimCase,
|
ModalClaimCase,
|
||||||
TaskCell
|
TaskCell,
|
||||||
|
CurrentUserCell
|
||||||
},
|
},
|
||||||
props: {},
|
props: {},
|
||||||
data() {
|
data() {
|
||||||
@@ -153,7 +155,7 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
"task",
|
"task",
|
||||||
"case_title",
|
"case_title",
|
||||||
"assignee",
|
"current_user",
|
||||||
"status",
|
"status",
|
||||||
"due_date",
|
"due_date",
|
||||||
"actions"
|
"actions"
|
||||||
@@ -164,7 +166,7 @@ export default {
|
|||||||
headings: {
|
headings: {
|
||||||
task: this.$i18n.t("ID_TASK"),
|
task: this.$i18n.t("ID_TASK"),
|
||||||
case_title: this.$i18n.t("ID_CASE_TITLE"),
|
case_title: this.$i18n.t("ID_CASE_TITLE"),
|
||||||
assignee: this.$i18n.t("ID_CURRENT_USER"),
|
current_user: this.$i18n.t("ID_CURRENT_USER"),
|
||||||
status: this.$i18n.t("ID_STATUS"),
|
status: this.$i18n.t("ID_STATUS"),
|
||||||
due_date: this.$i18n.t("ID_DUE_DATE"),
|
due_date: this.$i18n.t("ID_DUE_DATE"),
|
||||||
actions: this.$i18n.t("ID_ACTIONS")
|
actions: this.$i18n.t("ID_ACTIONS")
|
||||||
@@ -500,15 +502,7 @@ export default {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
CASE_TITLE: v.DEL_TITLE,
|
CASE_TITLE: v.DEL_TITLE,
|
||||||
ASSIGNEE:
|
USER_DATA: this.formatUser(v.user_tooltip),
|
||||||
v.USR_ID !== 0
|
|
||||||
? utils.userNameDisplayFormat({
|
|
||||||
userName: v.USR_USERNAME,
|
|
||||||
firstName: v.USR_LASTNAME,
|
|
||||||
lastName: v.USR_LASTNAME,
|
|
||||||
format: window.config.FORMATS.format || null
|
|
||||||
})
|
|
||||||
: this.$i18n.t("ID_UNASSIGNED"),
|
|
||||||
STATUS: v.DEL_THREAD_STATUS,
|
STATUS: v.DEL_THREAD_STATUS,
|
||||||
DUE_DATE: v.DEL_TASK_DUE_DATE,
|
DUE_DATE: v.DEL_TASK_DUE_DATE,
|
||||||
TASK_COLOR: v.TAS_COLOR_LABEL,
|
TASK_COLOR: v.TAS_COLOR_LABEL,
|
||||||
@@ -520,6 +514,31 @@ export default {
|
|||||||
});
|
});
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* Format user information to show
|
||||||
|
*/
|
||||||
|
formatUser(data) {
|
||||||
|
var dataFormat = [],
|
||||||
|
userDataFormat;
|
||||||
|
userDataFormat = data.usr_id ?
|
||||||
|
utils.userNameDisplayFormat({
|
||||||
|
userName: data.usr_firstname,
|
||||||
|
firstName: data.usr_lastname,
|
||||||
|
lastName: data.usr_username,
|
||||||
|
format: window.config.FORMATS.format || null
|
||||||
|
})
|
||||||
|
: this.$i18n.t("ID_UNASSIGNED");
|
||||||
|
dataFormat.push({
|
||||||
|
USERNAME_DISPLAY_FORMAT: userDataFormat !== "" ? userDataFormat : this.$i18n.t("ID_UNASSIGNED"),
|
||||||
|
EMAIL: data.usr_email,
|
||||||
|
POSITION: data.usr_position,
|
||||||
|
AVATAR: userDataFormat !== this.$i18n.t("ID_UNASSIGNED") ? window.config.SYS_SERVER_AJAX +
|
||||||
|
window.config.SYS_URI +
|
||||||
|
`users/users_ViewPhotoGrid?pUID=${data.usr_id}` : "",
|
||||||
|
UNASSIGNED: userDataFormat !== this.$i18n.t("ID_UNASSIGNED") ? true : false
|
||||||
|
});
|
||||||
|
return dataFormat;
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* Show the alert message
|
* Show the alert message
|
||||||
* @param {string} message - message to be displayen in the body
|
* @param {string} message - message to be displayen in the body
|
||||||
|
|||||||
@@ -514,7 +514,7 @@ export default {
|
|||||||
POSITION: data.user_tooltip.usr_position,
|
POSITION: data.user_tooltip.usr_position,
|
||||||
AVATAR: userDataFormat !== "" ? window.config.SYS_SERVER_AJAX +
|
AVATAR: userDataFormat !== "" ? window.config.SYS_SERVER_AJAX +
|
||||||
window.config.SYS_URI +
|
window.config.SYS_URI +
|
||||||
`users/users_ViewPhotoGrid?pUID=${data.user_tooltip.user_id}` : "",
|
`users/users_ViewPhotoGrid?pUID=${data.user_tooltip.usr_id}` : "",
|
||||||
UNASSIGNED: userDataFormat !== "" ? true : false
|
UNASSIGNED: userDataFormat !== "" ? true : false
|
||||||
});
|
});
|
||||||
return dataFormat;
|
return dataFormat;
|
||||||
|
|||||||
@@ -510,7 +510,7 @@ export default {
|
|||||||
POSITION: data.user_tooltip.usr_position,
|
POSITION: data.user_tooltip.usr_position,
|
||||||
AVATAR: userDataFormat !== "" ? window.config.SYS_SERVER_AJAX +
|
AVATAR: userDataFormat !== "" ? window.config.SYS_SERVER_AJAX +
|
||||||
window.config.SYS_URI +
|
window.config.SYS_URI +
|
||||||
`users/users_ViewPhotoGrid?pUID=${data.user_tooltip.user_id}` : "",
|
`users/users_ViewPhotoGrid?pUID=${data.user_tooltip.usr_id}` : "",
|
||||||
UNASSIGNED: userDataFormat !== "" ? true : false
|
UNASSIGNED: userDataFormat !== "" ? true : false
|
||||||
});
|
});
|
||||||
return dataFormat;
|
return dataFormat;
|
||||||
|
|||||||
@@ -469,7 +469,7 @@ export default {
|
|||||||
POSITION: data.user_tooltip.usr_position,
|
POSITION: data.user_tooltip.usr_position,
|
||||||
AVATAR: userDataFormat !== "" ? window.config.SYS_SERVER_AJAX +
|
AVATAR: userDataFormat !== "" ? window.config.SYS_SERVER_AJAX +
|
||||||
window.config.SYS_URI +
|
window.config.SYS_URI +
|
||||||
`users/users_ViewPhotoGrid?pUID=${data.user_tooltip.user_id}` : "",
|
`users/users_ViewPhotoGrid?pUID=${data.user_tooltip.usr_id}` : "",
|
||||||
UNASSIGNED: userDataFormat !== "" ? true : false
|
UNASSIGNED: userDataFormat !== "" ? true : false
|
||||||
});
|
});
|
||||||
return dataFormat;
|
return dataFormat;
|
||||||
|
|||||||
Reference in New Issue
Block a user