feat(ticket): default ticketAction for salesAssistant
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ba60523012
commit
caf6320d53
|
@ -23,7 +23,9 @@ class Controller extends Component {
|
|||
}
|
||||
|
||||
loadDefaultTicketAction() {
|
||||
let filter = {where: {code: 'changePrice'}};
|
||||
const isSalesAssistant = this.aclService.hasAny(['salesAssistant']);
|
||||
const defaultOption = isSalesAssistant ? 'turnInMana' : 'changePrice';
|
||||
const filter = {where: {code: defaultOption}};
|
||||
|
||||
this.$http.get(`TicketUpdateActions`, {filter}).then(response => {
|
||||
return this.ticket.option = response.data[0].id;
|
||||
|
|
Loading…
Reference in New Issue