PMCORE-3170

This commit is contained in:
Henry Jordan
2021-07-21 15:09:39 +00:00
parent 036ed650bc
commit b7ef3d6fcc
10 changed files with 70 additions and 61 deletions

View File

@@ -32,8 +32,11 @@ export default {
},
],
},
optionsVueCardView: {
optionsVueView: {
limit: 10,
dblClick:(event, item, options)=>{
this.openCase(item);
},
headings: {
detail: "",
case_number: this.$i18n.t("ID_MYCASE_NUMBER"),
@@ -56,40 +59,10 @@ export default {
"task"
],
requestFunction(data) {
return that.getCasesVueCard(data);
return that.getCases(data);
},
requestFunctionViewMore(data) {
return that.getCasesVueCardViewMore(data);
}
},
optionsVueListView: {
limit: 10,
headings: {
detail: "",
case_number: this.$i18n.t("ID_MYCASE_NUMBER"),
case_title: this.$i18n.t("ID_CASE_TITLE"),
process_name: this.$i18n.t("ID_PROCESS_NAME"),
task: this.$i18n.t("ID_TASK"),
current_user: this.$i18n.t("ID_CURRENT_USER"),
due_date: this.$i18n.t("ID_DUE_DATE"),
delegation_date: this.$i18n.t("ID_DELEGATION_DATE"),
priority: this.$i18n.t("ID_PRIORITY")
},
columns: [
"detail",
"case_number",
"case_title",
"process_name",
"due_date",
"delegation_date",
"priority",
"task"
],
requestFunction(data) {
return that.getCasesVueCard(data);
},
requestFunctionViewMore(data) {
return that.getCasesVueCardViewMore(data);
return that.getCasesViewMore(data);
}
}
}
@@ -101,7 +74,7 @@ export default {
/**
* Get cases for Vue Card View
*/
getCasesVueCard(data) {
getCases(data) {
let that = this,
dt,
start = 0,
@@ -132,7 +105,7 @@ export default {
/**
* Get cases for Vue Card View
*/
getCasesVueCardViewMore(data) {
getCasesViewMore(data) {
let that = this,
dt,
paged,