接口修改12
This commit is contained in:
parent
e95a7d3b64
commit
01f9b4b160
@ -61,17 +61,17 @@
|
||||
limit: 20,
|
||||
cols: [
|
||||
[
|
||||
{
|
||||
fixed: 'left',
|
||||
field: 'id',
|
||||
title: '编号',
|
||||
align: 'center',
|
||||
width:80,
|
||||
},{
|
||||
{
|
||||
fixed: 'left',
|
||||
field: 'id',
|
||||
title: '编号',
|
||||
align: 'center',
|
||||
width:80,
|
||||
},{
|
||||
field: 'area',
|
||||
title: '区域',
|
||||
align: 'center',
|
||||
templet: function (d)
|
||||
templet: function (d)
|
||||
{
|
||||
var html = '【' + d['area']['area_name'] + '】'
|
||||
return html;
|
||||
@ -96,7 +96,7 @@
|
||||
field: 'status',
|
||||
title: '状态',
|
||||
align: 'center',
|
||||
templet: function (d)
|
||||
templet: function (d)
|
||||
{
|
||||
var html = '<span style="color:#fbbc05">禁用</span>';
|
||||
if (d.status == '0') {
|
||||
@ -109,30 +109,17 @@
|
||||
title: '添加时间',
|
||||
align: 'center',
|
||||
width:150,
|
||||
},{
|
||||
field: 'status',
|
||||
templet: function (d)
|
||||
{
|
||||
var html = '<span style="color:#fbbc05">禁用</span>';
|
||||
if (d.status == '0') {
|
||||
html = '<span style="color:#12bb37">正常</span>';
|
||||
}
|
||||
return html;
|
||||
},
|
||||
title: '状态',
|
||||
align: 'center',
|
||||
width:100,
|
||||
},{
|
||||
fixed: 'right',
|
||||
field: 'right',
|
||||
title: '操作',
|
||||
toolbar: '#barDemo',
|
||||
align: 'center'
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
//监听表头工具栏事件
|
||||
table.on('toolbar(article)', function(obj){
|
||||
if (obj.event === 'add') {
|
||||
|
@ -14,5 +14,5 @@
|
||||
class ProductOrderLog extends Model
|
||||
{
|
||||
// 设置当前模型的数据库连接
|
||||
protected $connection = 'sznk_shop';
|
||||
protected $connection = 'shop_lihaink_com';
|
||||
}
|
@ -14,5 +14,5 @@
|
||||
class StoreProduct extends Model
|
||||
{
|
||||
// 设置当前模型的数据库连接
|
||||
protected $connection = 'sznk_shop';
|
||||
protected $connection = 'shop_lihaink_com';
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user