feature: 面板
This commit is contained in:
parent
03a8bb681f
commit
11575df4ae
|
|
@ -1,35 +1,34 @@
|
|||
<style>
|
||||
<div class="panel panel-default panel-intro">
|
||||
<div class="panel-heading">
|
||||
<h1>KPI面板</h1>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
</div>
|
||||
|
||||
</style>
|
||||
|
||||
<div class="row">
|
||||
<h2>{$kpi_template->name|htmlentities}</h2>
|
||||
</div>
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>指标名称</th>
|
||||
<th>目标值</th>
|
||||
<th>完成值</th>
|
||||
<th>指标描述</th>
|
||||
<th>指标数据</th>
|
||||
<th>权重</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $kpi_items as $key => $item}
|
||||
<tr>
|
||||
<td>{$item->name|htmlentities}</td>
|
||||
<td>{$item->target_value|htmlentities}</td>
|
||||
<td>0</td>
|
||||
<td>{$item->desc|htmlentities}</td>
|
||||
<td>0</td>
|
||||
<td>{$item->pivot->rate|htmlentities}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="row">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>指标名称</th>
|
||||
<th>目标值</th>
|
||||
<th>完成值</th>
|
||||
<th>指标描述</th>
|
||||
<th>指标数据</th>
|
||||
<th>权重</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $kpi_items as $key => $item}
|
||||
<tr>
|
||||
<td>{$item->name|htmlentities}</td>
|
||||
<td>{$item->target_value|htmlentities}</td>
|
||||
<td>0</td>
|
||||
<td>{$item->desc|htmlentities}</td>
|
||||
<td>0</td>
|
||||
<td>{$item->pivot->rate|htmlentities}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -107,95 +107,97 @@
|
|||
}
|
||||
</style>
|
||||
|
||||
<div>
|
||||
<h1>任务面板</h1>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="dashboard">
|
||||
|
||||
<!-- 每日任务 -->
|
||||
<div class="section">
|
||||
<h3 class="section-title">每日任务</h3>
|
||||
{if $day}
|
||||
{foreach $day as $item}
|
||||
{if $item->status == 1 || $item->status == 5}
|
||||
<div class="card spec_add_btn" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
{else}
|
||||
<div class="card completed" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
{/if}
|
||||
<div class="badge status-{$item.status}">
|
||||
{if $item.status == 1}待完成
|
||||
{elseif $item.status == 2}已完成
|
||||
{elseif $item.status == 3}待审核
|
||||
{elseif $item.status == 4}已通过
|
||||
{elseif $item.status == 5}已驳回
|
||||
{elseif $item.status == 6}待执行
|
||||
{/if}
|
||||
</div>
|
||||
<div class="title">{$item->title}</div>
|
||||
<div class="note">{$item->desc}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="card">暂无任务</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<!-- 每周任务 -->
|
||||
<div class="section">
|
||||
<h3 class="section-title">每周任务</h3>
|
||||
{if $week}
|
||||
{foreach $week as $item}
|
||||
{if $item->status == 1 || $item->status == 5}
|
||||
<div class="card spec_add_btn" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
{else}
|
||||
<div class="card completed" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
{/if}
|
||||
<div class="badge status-{$item.status}">
|
||||
{if $item.status == 1}待完成
|
||||
{elseif $item.status == 2}已完成
|
||||
{elseif $item.status == 3}待审核
|
||||
{elseif $item.status == 4}已通过
|
||||
{elseif $item.status == 5}已驳回
|
||||
{elseif $item.status == 6}待执行
|
||||
{/if}
|
||||
</div>
|
||||
<div class="title">{$item->title}</div>
|
||||
<div class="note">{$item->desc}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="card">暂无任务</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<!-- 每月任务(举例) -->
|
||||
<div class="section">
|
||||
<h3 class="section-title">每月任务</h3>
|
||||
{if $month}
|
||||
{foreach $month as $item}
|
||||
{if $item->status == 1 || $item->status == 5}
|
||||
<div class="card spec_add_btn" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
{else}
|
||||
<div class="card completed" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
{/if}
|
||||
<div class="badge status-{$item.status}">
|
||||
{if $item.status == 1}待完成
|
||||
{elseif $item.status == 2}已完成
|
||||
{elseif $item.status == 3}待审核
|
||||
{elseif $item.status == 4}已通过
|
||||
{elseif $item.status == 5}已驳回
|
||||
{elseif $item.status == 6}待执行
|
||||
{/if}
|
||||
</div>
|
||||
<div class="title">{$item->title}</div>
|
||||
<div class="note">{$item->desc}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="card">暂无任务</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default panel-intro">
|
||||
<div class="panel-heading">
|
||||
<h1>任务面板</h1>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="dashboard">
|
||||
|
||||
<!-- 每日任务 -->
|
||||
<div class="section">
|
||||
<h3 class="section-title">每日任务</h3>
|
||||
{if $day}
|
||||
{foreach $day as $item}
|
||||
{if $item->status == 1 || $item->status == 5}
|
||||
<div class="card spec_add_btn" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
{else}
|
||||
<div class="card completed" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
{/if}
|
||||
<div class="badge status-{$item.status}">
|
||||
{if $item.status == 1}待完成
|
||||
{elseif $item.status == 2}已完成
|
||||
{elseif $item.status == 3}待审核
|
||||
{elseif $item.status == 4}已通过
|
||||
{elseif $item.status == 5}已驳回
|
||||
{elseif $item.status == 6}待执行
|
||||
{/if}
|
||||
</div>
|
||||
<div class="title">{$item->title}</div>
|
||||
<div class="note">{$item->desc}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="card">暂无任务</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<!-- 每周任务 -->
|
||||
<div class="section">
|
||||
<h3 class="section-title">每周任务</h3>
|
||||
{if $week}
|
||||
{foreach $week as $item}
|
||||
{if $item->status == 1 || $item->status == 5}
|
||||
<div class="card spec_add_btn" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
{else}
|
||||
<div class="card completed" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
{/if}
|
||||
<div class="badge status-{$item.status}">
|
||||
{if $item.status == 1}待完成
|
||||
{elseif $item.status == 2}已完成
|
||||
{elseif $item.status == 3}待审核
|
||||
{elseif $item.status == 4}已通过
|
||||
{elseif $item.status == 5}已驳回
|
||||
{elseif $item.status == 6}待执行
|
||||
{/if}
|
||||
</div>
|
||||
<div class="title">{$item->title}</div>
|
||||
<div class="note">{$item->desc}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="card">暂无任务</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<!-- 每月任务(举例) -->
|
||||
<div class="section">
|
||||
<h3 class="section-title">每月任务</h3>
|
||||
{if $month}
|
||||
{foreach $month as $item}
|
||||
{if $item->status == 1 || $item->status == 5}
|
||||
<div class="card spec_add_btn" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
{else}
|
||||
<div class="card completed" data-url="/admin/dashboard/task_complete/ids/{$item->id}">
|
||||
{/if}
|
||||
<div class="badge status-{$item.status}">
|
||||
{if $item.status == 1}待完成
|
||||
{elseif $item.status == 2}已完成
|
||||
{elseif $item.status == 3}待审核
|
||||
{elseif $item.status == 4}已通过
|
||||
{elseif $item.status == 5}已驳回
|
||||
{elseif $item.status == 6}待执行
|
||||
{/if}
|
||||
</div>
|
||||
<div class="title">{$item->title}</div>
|
||||
<div class="note">{$item->desc}</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="card">暂无任务</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user