This commit is contained in:
@@ -46,6 +46,7 @@ import {
|
|||||||
faChevronDown,
|
faChevronDown,
|
||||||
faChevronLeft,
|
faChevronLeft,
|
||||||
faChevronRight,
|
faChevronRight,
|
||||||
|
faCircle,
|
||||||
faClipboard,
|
faClipboard,
|
||||||
faClock,
|
faClock,
|
||||||
faClone,
|
faClone,
|
||||||
@@ -214,6 +215,7 @@ library.add(
|
|||||||
faChevronLeft,
|
faChevronLeft,
|
||||||
faChevronRight,
|
faChevronRight,
|
||||||
faClipboard,
|
faClipboard,
|
||||||
|
faCircle,
|
||||||
farCircle,
|
farCircle,
|
||||||
faClock,
|
faClock,
|
||||||
faClone,
|
faClone,
|
||||||
@@ -476,7 +478,12 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "check-square"]
|
icon: ["fas", "check-square"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiCircle: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "circle"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiClipboard: {
|
ayiClipboard: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@@ -11,25 +11,31 @@
|
|||||||
:showEditIcon="true"
|
:showEditIcon="true"
|
||||||
:includeInactive="true"
|
:includeInactive="true"
|
||||||
v-model="obj.customerId"
|
v-model="obj.customerId"
|
||||||
:readonly="true"
|
readonly
|
||||||
:label="$ay.t('Customer')"
|
:label="$ay.t('Customer')"
|
||||||
ref="customerId"
|
ref="customerId"
|
||||||
data-cy="customerId"
|
data-cy="customerId"
|
||||||
></gz-pick-list>
|
></gz-pick-list>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
<!-- {{ priorityColor() }} -->
|
|
||||||
<v-select
|
<v-select
|
||||||
color="purple"
|
:color="priorityColor()"
|
||||||
|
:item-color="priorityColor()"
|
||||||
v-model="obj.priority"
|
v-model="obj.priority"
|
||||||
:items="selectLists.priorities"
|
:items="selectLists.priorities"
|
||||||
item-text="name"
|
item-text="name"
|
||||||
item-value="id"
|
item-value="id"
|
||||||
:readonly="true"
|
readonly
|
||||||
:label="$ay.t('CustomerServiceRequestPriority')"
|
:label="$ay.t('CustomerServiceRequestPriority')"
|
||||||
ref="priority"
|
ref="priority"
|
||||||
data-cy="priority"
|
data-cy="priority"
|
||||||
></v-select>
|
>
|
||||||
|
<template v-slot:prepend
|
||||||
|
><v-icon :color="priorityColor()">
|
||||||
|
$ayiCircle
|
||||||
|
</v-icon>
|
||||||
|
</template></v-select
|
||||||
|
>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
<v-select
|
<v-select
|
||||||
@@ -37,7 +43,7 @@
|
|||||||
:items="selectLists.status"
|
:items="selectLists.status"
|
||||||
item-text="name"
|
item-text="name"
|
||||||
item-value="id"
|
item-value="id"
|
||||||
:readonly="true"
|
readonly
|
||||||
:label="$ay.t('CustomerServiceRequestStatus')"
|
:label="$ay.t('CustomerServiceRequestStatus')"
|
||||||
ref="status"
|
ref="status"
|
||||||
data-cy="status"
|
data-cy="status"
|
||||||
@@ -403,11 +409,11 @@ export default {
|
|||||||
priorityColor: function() {
|
priorityColor: function() {
|
||||||
switch (this.obj.priority) {
|
switch (this.obj.priority) {
|
||||||
case 1: //asap
|
case 1: //asap
|
||||||
return "warning";
|
return "accent";
|
||||||
case 2: //emergency
|
case 2: //emergency
|
||||||
return "error";
|
return "error";
|
||||||
default:
|
default:
|
||||||
return "info";
|
return "secondary";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
canSave: function() {
|
canSave: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user