172 lines
7.0 KiB
Handlebars
172 lines
7.0 KiB
Handlebars
<div class="widget-box transparent" style="padding-top: 2px; border: 1px solid #ddd;">
|
|
{{#grid-header}}
|
|
{{#has-perm 'PERM_VIEW_CAMPAIGN_CREATE'}}
|
|
<li>
|
|
{{#link-to 'campaign.create'}}
|
|
<i class="ace-icon fa fa-plus-circle bigger-110 green"></i>
|
|
新建外呼活动
|
|
{{/link-to}}
|
|
</li>
|
|
{{/has-perm}}
|
|
{{/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>
|
|
<th>
|
|
名称
|
|
</th>
|
|
<th>
|
|
Key
|
|
</th>
|
|
<th>
|
|
{{th-filter name='type'
|
|
text='类型'
|
|
options=model.typesList
|
|
}}
|
|
</th>
|
|
<th>
|
|
{{th-filter name='targetType'
|
|
text='转接类型'
|
|
options=model.targetTypesList
|
|
}}
|
|
</th>
|
|
<th>
|
|
转接目标
|
|
</th>
|
|
<th>
|
|
日拨打开始时间
|
|
</th>
|
|
<th>
|
|
日拨打结束时间
|
|
</th>
|
|
<th>
|
|
{{th-filter name='status'
|
|
text='状态'
|
|
options=(array
|
|
(hash value='RUNNING' text='RUNNING')
|
|
(hash value='STOPPED' text='STOPPED')
|
|
)
|
|
}}
|
|
</th>
|
|
<th>
|
|
{{th-filter name='trunkStrategies'
|
|
text='中继策略'
|
|
options=model.trunkStrategiesList
|
|
value-field='id'
|
|
text-field='name'
|
|
}}
|
|
</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>
|
|
运行
|
|
</th>
|
|
<th>
|
|
<i class="ace-icon fa fa-cogs bigger-110 hidden-480"></i>
|
|
管理
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each model.data as |it|}}
|
|
<tr>
|
|
<td>
|
|
{{it.name}}
|
|
</td>
|
|
<td>
|
|
{{it.campaignKey}}
|
|
</td>
|
|
<td>
|
|
{{it.type}}
|
|
</td>
|
|
<td>
|
|
{{it.targetType}}
|
|
</td>
|
|
<td>
|
|
{{option-text model.queuesList it.targetId 'id' 'name'}}
|
|
</td>
|
|
<td>
|
|
{{it.dailyFrom}}
|
|
</td>
|
|
<td>
|
|
{{it.dailyTo}}
|
|
</td>
|
|
<td>
|
|
<span calss="label label-sm {{if (eq 'RUNNING' it.status) 'label-success' 'label-warning'}}">
|
|
{{it.status}}
|
|
</span>
|
|
</td>
|
|
<td>
|
|
{{tag/tags-list
|
|
tags-list=model.trunkStrategiesList
|
|
tags=it.trunkStrategies
|
|
tag-field='name'}}
|
|
</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">
|
|
{{status-toggle-button model=it
|
|
field='running'
|
|
icon-only=true
|
|
enabled-icon='fa-pause'
|
|
enabled-text='开启'
|
|
disabled-icon='fa-play'
|
|
disabled-text='停止'
|
|
on-click=(route-action 'toggleCampaignTask' it)
|
|
}}
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="btn-group">
|
|
{{#has-perm 'PERM_VIEW_CAMPAIGN_EDIT'}}
|
|
{{status-toggle-button model=it}}
|
|
{{edit-btn route-name='campaign.edit' model-id=it.id perm='PERM_VIEW_CAMPAIGN_EDIT'}}
|
|
{{/has-perm}}
|
|
{{#has-perm 'PERM_VIEW_CAMPAIGN_DELETE'}}
|
|
{{#unless it.active}}
|
|
{{delete-button model=it}}
|
|
{{/unless}}
|
|
{{/has-perm}}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{pagination-bar}}
|
|
</div>
|
|
</div>
|
|
{{outlet}}
|