|
@@ -5,20 +5,32 @@
|
|
|
{block name="content"}
|
|
|
<div class="layui-tab layui-tab-card">
|
|
|
<ul class="layui-tab-title">
|
|
|
- {foreach ['index'=>'招标管理',] as $k=>$v}
|
|
|
+ {foreach ['index'=>'船厂管理',] as $k=>$v}
|
|
|
<li data-open="{:url('index')}?type={$k}">{$v}</li>{/foreach}
|
|
|
</ul>
|
|
|
<div class="layui-tab-content">
|
|
|
<form action="{:sysuri()}" autocomplete="off" class="layui-form layui-form-pane form-search" method="get" onsubmit="return false">
|
|
|
|
|
|
<div class="layui-form-item layui-inline">
|
|
|
- <label class="layui-form-label">商家名称</label>
|
|
|
+ <label class="layui-form-label">名称</label>
|
|
|
<label class="layui-input-inline">
|
|
|
<input class="layui-input" name="name" placeholder="商家名称" value="{$get.name|default=''}">
|
|
|
</label>
|
|
|
</div>
|
|
|
|
|
|
<div class="layui-form-item layui-inline">
|
|
|
+ <label class="layui-form-label">状态</label>
|
|
|
+ <label class="layui-input-inline">
|
|
|
+ <select name="audit">
|
|
|
+ <option value="">全部</option>
|
|
|
+ {foreach $status as $k=>$a}
|
|
|
+ <option value="{$k}">{$a}</option>
|
|
|
+ {/foreach}
|
|
|
+ </select>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="layui-form-item layui-inline">
|
|
|
<label class="layui-form-label">创建时间</label>
|
|
|
<label class="layui-input-inline">
|
|
|
<input class="layui-input" data-date-range name="create_at" placeholder="请选择创建时间" value="{$get.create_at|default=''}">
|
|
@@ -36,6 +48,7 @@
|
|
|
|
|
|
{block name='script'}
|
|
|
<script>
|
|
|
+ let status={:json_encode($status,256)};
|
|
|
$(function () {
|
|
|
// 初始化表格组件
|
|
|
$('#NewsTable').layTable({
|
|
@@ -46,19 +59,20 @@
|
|
|
{checkbox: true, fixed: true},
|
|
|
{field: 'id', title: 'ID', align: "center", width: 80},
|
|
|
{
|
|
|
- field: 'head_img', title: '头像', width: 60, align: 'center', templet: function (d) {
|
|
|
+ field: 'head_img', title: '船厂头像', width: 60, align: 'center', templet: function (d) {
|
|
|
if (!d.head_img) return '-';
|
|
|
return layui.laytpl('<div class="headimg headimg-ss shadow-inset margin-0" data-tips-image data-tips-hover data-lazy-src="{{d.head_img}}"></div>').render(d);
|
|
|
}
|
|
|
},
|
|
|
- {field: 'type.name', title: '商家名称', align: "center", width: 150,templet(d){
|
|
|
+ {field: 'type.name', title: '船厂名称', align: "center", width: 150,templet(d){
|
|
|
return d.name
|
|
|
}},
|
|
|
- {field: 'full_address', title: '地址', align: 'left', minWidth: 140},
|
|
|
+ {field: 'address', title: '地址', align: 'left', minWidth: 140},
|
|
|
{field: 'contact_name', title: '联系人', align: 'center', minWidth: 80,},
|
|
|
{field: 'contact_phone', title: '联系电话', align: 'center', minWidth: 80,},
|
|
|
+ {field: 'intro', title: '船厂简介', align: 'left'},
|
|
|
{field: 'status', title: '状态', align: 'center', minWidth: 110, templet(d){
|
|
|
- return d.audit_text
|
|
|
+ return status[d.audit]
|
|
|
}},
|
|
|
{field: 'create_at', title: '提交时间', align: 'center', minWidth: 170, sort: true},
|
|
|
{toolbar: '#toolbar', title: '操作面板', align: 'center', minWidth: 80, fixed: 'right'},
|