列表修改
This commit is contained in:
parent
fbc49be499
commit
8095e46c2d
@ -8,8 +8,7 @@ use think\Db;
|
|||||||
|
|
||||||
class LogSysData extends Base
|
class LogSysData extends Base
|
||||||
{
|
{
|
||||||
protected $createTime = "create_time";
|
protected $createTime = "createTime";
|
||||||
protected $dateFormat = false;
|
|
||||||
protected $updateTime = false;
|
protected $updateTime = false;
|
||||||
/**
|
/**
|
||||||
* 分页
|
* 分页
|
||||||
@ -20,13 +19,14 @@ class LogSysData extends Base
|
|||||||
$where = [];
|
$where = [];
|
||||||
$type = input('type/d');
|
$type = input('type/d');
|
||||||
$where['type'] = $type;
|
$where['type'] = $type;
|
||||||
$order = 'a.id desc';
|
$order = 'logId desc';
|
||||||
if($sort){
|
if($sort){
|
||||||
$sort = str_replace('.',' ',$sort);
|
$sort = str_replace('.',' ',$sort);
|
||||||
$order = $sort;
|
$order = $sort;
|
||||||
}
|
}
|
||||||
|
|
||||||
$page = $this->field(true)
|
$page = $this->field(true)
|
||||||
|
->where($where)
|
||||||
->order($order)
|
->order($order)
|
||||||
->paginate(input('post.limit/d'))->toArray();
|
->paginate(input('post.limit/d'))->toArray();
|
||||||
|
|
||||||
|
@ -14,8 +14,6 @@ $(function(){initGrid();})
|
|||||||
<div id="ztreeMenuContent" class="ztreeMenuContent">
|
<div id="ztreeMenuContent" class="ztreeMenuContent">
|
||||||
<ul id="dropDownTree" class="ztree" style="margin-top:0; width:250px; height: 300px;"></ul>
|
<ul id="dropDownTree" class="ztree" style="margin-top:0; width:250px; height: 300px;"></ul>
|
||||||
</div>
|
</div>
|
||||||
<input type='text' id='key' placeholder='规则标题'/>
|
|
||||||
<button class="btn btn-primary" onclick='javascript:loadGrid()'><i class='fa fa-search'></i>查询</button>
|
|
||||||
<div style='clear:both'></div>
|
<div style='clear:both'></div>
|
||||||
</div>
|
</div>
|
||||||
<div class='wst-grid'>
|
<div class='wst-grid'>
|
||||||
|
@ -14,8 +14,6 @@ $(function(){initGrid();})
|
|||||||
<div id="ztreeMenuContent" class="ztreeMenuContent">
|
<div id="ztreeMenuContent" class="ztreeMenuContent">
|
||||||
<ul id="dropDownTree" class="ztree" style="margin-top:0; width:250px; height: 300px;"></ul>
|
<ul id="dropDownTree" class="ztree" style="margin-top:0; width:250px; height: 300px;"></ul>
|
||||||
</div>
|
</div>
|
||||||
<input type='text' id='key' placeholder='规则标题'/>
|
|
||||||
<button class="btn btn-primary" onclick='javascript:loadGrid()'><i class='fa fa-search'></i>查询</button>
|
|
||||||
<div style='clear:both'></div>
|
<div style='clear:both'></div>
|
||||||
</div>
|
</div>
|
||||||
<div class='wst-grid'>
|
<div class='wst-grid'>
|
||||||
|
@ -6,17 +6,17 @@ function initGrid(){
|
|||||||
if(val == 1) return '代快付';
|
if(val == 1) return '代快付';
|
||||||
else return '代慢付'
|
else return '代慢付'
|
||||||
}},
|
}},
|
||||||
{title:'金额', name:'title' ,width:200,renderer: function(val,item,rowIndex){
|
{title:'金额', name:'num' ,width:200,renderer: function(val,item,rowIndex){
|
||||||
if(item.changeType!=1){
|
if(item.changeType!=1){
|
||||||
val = '-'+val;
|
val = '-'+val;
|
||||||
}
|
}
|
||||||
return "¥"+val;
|
return "¥"+val;
|
||||||
}},
|
}},
|
||||||
{title:'创建时间', name:'create_time' ,width:120,sortable:true},
|
{title:'时间', name:'createTime' ,width:120,sortable:true},
|
||||||
];
|
];
|
||||||
|
|
||||||
mmg = $('.mmg').mmGrid({height: h-85,indexCol: true, cols: cols,method:'POST',checkCol:true,multiSelect:true,
|
mmg = $('.mmg').mmGrid({height: h-85,indexCol: true, cols: cols,method:'POST',checkCol:false,multiSelect:true,
|
||||||
url: WST.U('admin/logSysData/pageQuery?type=1'), fullWidthRows: true, autoLoad: true,remoteSort: true,
|
url: WST.U('admin/log_sys_data/pageQuery','type=1'), fullWidthRows: true, autoLoad: true,remoteSort: true,
|
||||||
plugins: [
|
plugins: [
|
||||||
$('#pg').mmPaginator({})
|
$('#pg').mmPaginator({})
|
||||||
]
|
]
|
||||||
|
@ -6,17 +6,17 @@ function initGrid(){
|
|||||||
if(val == 1) return '代快付';
|
if(val == 1) return '代快付';
|
||||||
else return '代慢付'
|
else return '代慢付'
|
||||||
}},
|
}},
|
||||||
{title:'金额', name:'title' ,width:200,renderer: function(val,item,rowIndex){
|
{title:'金额', name:'num' ,width:200,renderer: function(val,item,rowIndex){
|
||||||
if(item.changeType!=1){
|
if(item.changeType!=1){
|
||||||
val = '-'+val;
|
val = '-'+val;
|
||||||
}
|
}
|
||||||
return "¥"+val;
|
return "¥"+val;
|
||||||
}},
|
}},
|
||||||
{title:'创建时间', name:'create_time' ,width:120,sortable:true},
|
{title:'时间', name:'createTime' ,width:120,sortable:true},
|
||||||
];
|
];
|
||||||
|
|
||||||
mmg = $('.mmg').mmGrid({height: h-85,indexCol: true, cols: cols,method:'POST',checkCol:true,multiSelect:true,
|
mmg = $('.mmg').mmGrid({height: h-85,indexCol: true, cols: cols,method:'POST',checkCol:false,multiSelect:true,
|
||||||
url: WST.U('admin/logSysData/pageQuery?type=2'), fullWidthRows: true, autoLoad: true,remoteSort: true,
|
url: WST.U('admin/log_sys_data/pageQuery','type=2'), fullWidthRows: true, autoLoad: true,remoteSort: true,
|
||||||
plugins: [
|
plugins: [
|
||||||
$('#pg').mmPaginator({})
|
$('#pg').mmPaginator({})
|
||||||
]
|
]
|
||||||
|
@ -32,7 +32,7 @@ function enterLicense(){
|
|||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md4" style="height: auto;overflow: hidden;">
|
<div class="layui-col-md4" style="height: auto;overflow: hidden;">
|
||||||
<div class="wst-summary-content">
|
<div class="wst-summary-content">
|
||||||
<a href="/admin/LogSysData/index.html">
|
<a href="/admin/log_sys_data/index.html">
|
||||||
<div class="img"><img src="__ADMIN__/img/13.png"/></div>
|
<div class="img"><img src="__ADMIN__/img/13.png"/></div>
|
||||||
<div class="data">
|
<div class="data">
|
||||||
<p class="data-top" style="color: #e14e5f;">{$object['qlg']['fastPay']}</p>
|
<p class="data-top" style="color: #e14e5f;">{$object['qlg']['fastPay']}</p>
|
||||||
@ -43,7 +43,7 @@ function enterLicense(){
|
|||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md4" style="height: auto;overflow: hidden;">
|
<div class="layui-col-md4" style="height: auto;overflow: hidden;">
|
||||||
<div class="wst-summary-content">
|
<div class="wst-summary-content">
|
||||||
<a href="/admin/LogSysData/index2.html">
|
<a href="/admin/log_sys_data/index2.html">
|
||||||
<div class="img"><img src="__ADMIN__/img/14.png"/></div>
|
<div class="img"><img src="__ADMIN__/img/14.png"/></div>
|
||||||
<div class="data">
|
<div class="data">
|
||||||
<p class="data-top" style="color: #fabd3a;;">{$object['qlg']['slowPay']}</p>
|
<p class="data-top" style="color: #fabd3a;;">{$object['qlg']['slowPay']}</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user