#933 ticket.index
This commit is contained in:
parent
b5e864d88e
commit
4e98c9b2c9
|
@ -11,18 +11,30 @@ vn-ticket-index{
|
|||
}
|
||||
|
||||
.alert1 {
|
||||
background-color: $main-01-03
|
||||
background-color: $main-01-03;
|
||||
&:hover {
|
||||
background-color: $main-01-05;
|
||||
}
|
||||
}
|
||||
|
||||
.alertOk {
|
||||
background-color: $main-02-03
|
||||
background-color: $main-02-03;
|
||||
&:hover {
|
||||
background-color: $main-02-05;
|
||||
}
|
||||
}
|
||||
|
||||
.alertFree {
|
||||
background-color: $main-03-03
|
||||
background-color: $main-03-03;
|
||||
&:hover {
|
||||
background-color: $main-03-05;
|
||||
}
|
||||
}
|
||||
|
||||
.alert0 {
|
||||
background-color: $alert-01-03
|
||||
background-color: $alert-01-03;
|
||||
&:hover {
|
||||
background-color: $alert-01-05;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -85,6 +85,14 @@
|
|||
</vn-textfield>
|
||||
</vn-horizontal>
|
||||
<vn-horizontal>
|
||||
<vn-autocomplete
|
||||
vn-one
|
||||
label="State"
|
||||
value-field="alertLevel"
|
||||
show-field="code"
|
||||
field="filter.alertLevel"
|
||||
url="/api/AlertLevels">
|
||||
</vn-autocomplete>
|
||||
<vn-check
|
||||
vn-one
|
||||
label="My team"
|
||||
|
|
|
@ -67,6 +67,10 @@ module.exports = Self => {
|
|||
arg: 'orderFk',
|
||||
type: 'Number',
|
||||
description: `The order id filter`
|
||||
}, {
|
||||
arg: 'alertLevel',
|
||||
type: 'Number',
|
||||
description: `The alert level of the tickets`
|
||||
}
|
||||
],
|
||||
returns: {
|
||||
|
@ -132,6 +136,8 @@ module.exports = Self => {
|
|||
return {'ts.stateFk': value};
|
||||
case 'myTeam':
|
||||
return {'c.salesPersonFk': {inq: teamIds}};
|
||||
case 'alertLevel':
|
||||
return {'ts.alertLevel': value};
|
||||
case 'id':
|
||||
case 'clientFk':
|
||||
case 'agencyModeFk':
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"name": "AlertLevel",
|
||||
"description": "Alert levels of a ticket",
|
||||
"base": "VnModel",
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "alertLevel"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "String",
|
||||
"id": true,
|
||||
"description": "Identifier"
|
||||
},
|
||||
"alertLevel": {
|
||||
"type": "Number",
|
||||
"id": true
|
||||
}
|
||||
},
|
||||
"acls": [
|
||||
{
|
||||
"accessType": "READ",
|
||||
"principalType": "ROLE",
|
||||
"principalId": "$everyone",
|
||||
"permission": "ALLOW"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue