76 lines
3.2 KiB
HTML
Executable File
76 lines
3.2 KiB
HTML
Executable File
{php}
|
|
use app\service\Image as CImage;
|
|
{/php}
|
|
{layout name="manager/layout" /}
|
|
|
|
{if isset($achievement) && count($achievement) > 0}
|
|
<div class="layui-card layui-col-md12">
|
|
<div class="layui-card-body">
|
|
<div class="layui-col-xs12 between-center">
|
|
<div class="layui-inline">
|
|
<a id="add-article" class="layui-btn layui-btn-normal" data-href="{:url('manager.achievement/infoAdd',['achievement_id'=>$achievement['id']])}" title="添加业绩项目" data-width="1000"><i class="layui-icon layui-icon-add-1"></i>添加业绩项目</a>
|
|
</div>
|
|
</div>
|
|
<div class="layui-clear"></div>
|
|
<hr style="margin: 20px 0;">
|
|
<div class="mgb15"><strong>业绩:</strong>{$achievement.title}</div>
|
|
|
|
{empty name="items"}
|
|
<div class="empty-404">该业绩暂无相关项目信息!</div>
|
|
{else /}
|
|
<table class="layui-table layui-form">
|
|
<colgroup>
|
|
<col width="75px">
|
|
<col width="400px">
|
|
<col >
|
|
<col width="175px">
|
|
<col width="75px">
|
|
<col width="310px">
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<td>ID</td>
|
|
<td>项目名称</td>
|
|
<td>订货单位</td>
|
|
<td>创建日期</td>
|
|
<td>状态</td>
|
|
<td>操作</td>
|
|
</tr>
|
|
</thead>
|
|
{foreach $items as $item}
|
|
<tbody class="table-lv1" data-id="{$item.id}" data-url="{:url('manager.achievement/infoSort')}">
|
|
<tr>
|
|
<td>{$item.id}</td>
|
|
<td>{$item.title}</td>
|
|
<td>{$item.order_company}</td>
|
|
<td>{$item.create_time|date="Y-m-d H:i"}</td>
|
|
<td>{:$item.visible == 0 ? '<span class="text-warning">隐藏</span>' : '<span class="text-green">正常</span>'}</td>
|
|
<td >
|
|
<a class="sort layui-btn layui-btn-primary layui-btn-xs" data-id="{$item.id}" data-sort="up" data-url="{:url('manager.achievement/infoSort')}" href="javascript:;">
|
|
<i class=""></i>向上
|
|
</a>
|
|
<a class="sort layui-btn layui-btn-primary layui-btn-xs" data-id="{$item.id}" data-sort="down" data-url="{:url('manager.achievement/infoSort')}" href="javascript:;">
|
|
<i class=""></i>向下
|
|
</a>
|
|
<a data-href="{:url('manager.achievement/infoEdit',['id' => $item['id']])}" class="layui-btn layui-btn-warm layui-btn-xs" title="编辑">
|
|
<i class=""></i>编辑
|
|
</a>
|
|
<a class="del layui-btn layui-btn-danger layui-btn-xs" data-id="{$item.id}" data-url="{:url('manager.achievement/infoDel')}" href="javascript:;" >
|
|
<i class=""></i>删除
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
{/foreach}
|
|
</table>
|
|
{/empty}
|
|
</div>
|
|
</div>
|
|
{else /}
|
|
<div class="layui-card layui-col-md12">
|
|
<div class="layui-card-body">
|
|
<div class="empty-404">该业绩信息不存在!</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|