#933 ticket.index

This commit is contained in:
Gerard 2018-12-21 12:06:01 +01:00
parent b5e864d88e
commit 4e98c9b2c9
4 changed files with 59 additions and 4 deletions

View File

@ -11,18 +11,30 @@ vn-ticket-index{
} }
.alert1 { .alert1 {
background-color: $main-01-03 background-color: $main-01-03;
&:hover {
background-color: $main-01-05;
}
} }
.alertOk { .alertOk {
background-color: $main-02-03 background-color: $main-02-03;
&:hover {
background-color: $main-02-05;
}
} }
.alertFree { .alertFree {
background-color: $main-03-03 background-color: $main-03-03;
&:hover {
background-color: $main-03-05;
}
} }
.alert0 { .alert0 {
background-color: $alert-01-03 background-color: $alert-01-03;
&:hover {
background-color: $alert-01-05;
}
} }
} }

View File

@ -85,6 +85,14 @@
</vn-textfield> </vn-textfield>
</vn-horizontal> </vn-horizontal>
<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-check
vn-one vn-one
label="My team" label="My team"

View File

@ -67,6 +67,10 @@ module.exports = Self => {
arg: 'orderFk', arg: 'orderFk',
type: 'Number', type: 'Number',
description: `The order id filter` description: `The order id filter`
}, {
arg: 'alertLevel',
type: 'Number',
description: `The alert level of the tickets`
} }
], ],
returns: { returns: {
@ -132,6 +136,8 @@ module.exports = Self => {
return {'ts.stateFk': value}; return {'ts.stateFk': value};
case 'myTeam': case 'myTeam':
return {'c.salesPersonFk': {inq: teamIds}}; return {'c.salesPersonFk': {inq: teamIds}};
case 'alertLevel':
return {'ts.alertLevel': value};
case 'id': case 'id':
case 'clientFk': case 'clientFk':
case 'agencyModeFk': case 'agencyModeFk':

View File

@ -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"
}
]
}