212 lines
8.7 KiB
Handlebars
212 lines
8.7 KiB
Handlebars
<div class="widget-box transparent" style="padding-top: 2px; border: 1px solid #ddd;">
|
|
{{#grid-header button=true as |sec|}}
|
|
{{#if (and sec.button model.checked)}}
|
|
{{#a-btn click=(route-action 'enableBatch') title='启用'}}
|
|
<i class="ace-icon fa fa-check bigger-120 green"></i>
|
|
{{/a-btn}}
|
|
{{#a-btn click=(route-action 'disableBatch') title='禁用'}}
|
|
<i class="ace-icon fa fa-ban bigger-120 orange2"></i>
|
|
{{/a-btn}}
|
|
{{#a-btn click=(route-action 'removeBatch') title='删除'}}
|
|
<i class="ace-icon fa fa-trash-o bigger-120 red"></i>
|
|
{{/a-btn}}
|
|
{{/if}}
|
|
|
|
{{#if sec.dropdown}}
|
|
{{#has-perm 'PERM_VIEW_AGENT_CREATE'}}
|
|
<li>
|
|
{{#link-to 'agent.create'}}
|
|
<i class="ace-icon fa fa-plus-circle bigger-110 green"></i>
|
|
新建坐席
|
|
{{/link-to}}
|
|
</li>
|
|
{{/has-perm}}
|
|
{{/if}}
|
|
{{/grid-header}}
|
|
|
|
<div class="widget-body">
|
|
<!-- #section:custom/scrollbar -->
|
|
<div class="widget-main no-padding">
|
|
<table class="table table-striped table-bordered table-hover dataTable">
|
|
<thead class="thin-border-bottom">
|
|
<tr>
|
|
{{!#if agentGroupFiltered}}
|
|
<th style="width: 32px;">
|
|
{{grid-all-checkbox list=model.data
|
|
any-checked=(mut model.checked)}}
|
|
</th>
|
|
{{!/if}}
|
|
<th>
|
|
名称
|
|
</th>
|
|
<th>
|
|
账户
|
|
</th>
|
|
<th>
|
|
分机
|
|
</th>
|
|
<th>
|
|
{{th-filter name='type'
|
|
text='类型'
|
|
options=(array
|
|
(hash value='PERSON' text='PERSON')
|
|
(hash value='IVR' text='IVR')
|
|
(hash value='ROBOT' text='ROBOT')
|
|
)
|
|
}}
|
|
</th>
|
|
<th>
|
|
{{th-filter name='trunkDialAllowed'
|
|
text='手拨外呼'
|
|
options=(array
|
|
(hash value=true text='是')
|
|
(hash value=false text='否')
|
|
)
|
|
}}
|
|
</th>
|
|
<th>
|
|
{{th-filter name='internalDialAllowed'
|
|
text='拨打分机'
|
|
options=(array
|
|
(hash value=true text='是')
|
|
(hash value=false text='否')
|
|
)
|
|
}}
|
|
</th>
|
|
<th>
|
|
{{th-filter name='webrtc'
|
|
text='WebRTC'
|
|
options=(array
|
|
(hash value=true text='是')
|
|
(hash value=false text='否')
|
|
)
|
|
}}
|
|
</th>
|
|
<th>
|
|
{{th-filter name='groupId'
|
|
text='坐席组'
|
|
options=model.groupsList
|
|
value-field='id'
|
|
text-field='name'
|
|
}}
|
|
</th>
|
|
<th>
|
|
{{th-filter name='queues'
|
|
text='队列'
|
|
options=model.queuesList
|
|
value-field='id'
|
|
text-field='name'
|
|
}}
|
|
</th>
|
|
<th>
|
|
WUT
|
|
</th>
|
|
<th>
|
|
{{th-filter name='tags'
|
|
text='标签'
|
|
options=model.tagsList
|
|
value-field='id'
|
|
text-field='tag'
|
|
}}
|
|
</th>
|
|
<th>
|
|
<i class="ace-icon fa fa-sticky-note-o bigger-110"></i>
|
|
备注
|
|
</th>
|
|
<th>
|
|
<i class="ace-icon fa fa-exchange bigger-110 hidden-480"></i>
|
|
{{th-filter name='active'
|
|
text='状态'
|
|
dialog-title='状态'
|
|
options=(array (hash value=true text='启用')
|
|
(hash value=false text='禁用'))
|
|
}}
|
|
</th>
|
|
<th>
|
|
<i class="ace-icon fa fa-cogs bigger-110 hidden-480"></i>
|
|
管理
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each model.data as |it|}}
|
|
<tr>
|
|
{{!#if agentGroupFiltered}}
|
|
<td>
|
|
{{grid-row-checkbox checked=(mut it.checked)}}
|
|
</td>
|
|
{{!/if}}
|
|
<td>
|
|
{{it.name}}
|
|
</td>
|
|
<td>
|
|
{{it.account}}
|
|
</td>
|
|
<td>
|
|
{{it.agent}}
|
|
</td>
|
|
<td>
|
|
{{it.type}}
|
|
</td>
|
|
<td>
|
|
{{status-cell model=it
|
|
field='trunkDialAllowed'
|
|
enabled-text='是'
|
|
disabled-text='否'}}
|
|
</td>
|
|
<td>
|
|
{{status-cell model=it
|
|
field='internalDialAllowed'
|
|
enabled-text='是'
|
|
disabled-text='否'}}
|
|
</td>
|
|
<td>
|
|
{{status-cell model=it
|
|
field='webrtc'
|
|
enabled-text='是'
|
|
disabled-text='否'}}
|
|
</td>
|
|
<td>
|
|
{{option-text model.groupsList it.groupId 'id' 'name'}}
|
|
</td>
|
|
<td>
|
|
{{tag/tags-list
|
|
tags-list=model.queuesList
|
|
tags=it.queues
|
|
tag-field='name'}}
|
|
</td>
|
|
<td>
|
|
{{it.wrapUpTime}}
|
|
</td>
|
|
<td>
|
|
{{tag/tags-list tagsList=model.tagsList tags=it.tags}}
|
|
</td>
|
|
<td>
|
|
{{editable-cell model=it field='note'}}
|
|
</td>
|
|
<td>
|
|
{{status-cell model=it}}
|
|
</td>
|
|
<td>
|
|
<div class="btn-group">
|
|
{{#has-perm 'PERM_VIEW_AGENT_EDIT'}}
|
|
{{status-toggle-button model=it}}
|
|
{{edit-btn route-name='agent.edit' model-id=it.id perm='PERM_VIEW_AGENT_EDIT'}}
|
|
{{/has-perm}}
|
|
{{#has-perm 'PERM_VIEW_AGENT_DELETE'}}
|
|
{{#unless it.active}}
|
|
{{delete-button model=it}}
|
|
{{/unless}}
|
|
{{/has-perm}}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{pagination-bar}}
|
|
</div>
|
|
</div>
|
|
{{outlet}}
|