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