作者 jinglong
1 个管道 的构建 通过 耗费 2 秒

修改后台检索问题

... ... @@ -374,11 +374,11 @@ class Backend extends Controller
foreach($where as &$w_value){
if($w_value[0] == 'ffg_goods.flag'){
if($w_value[2] == '推荐'){
if($w_value[2] == 1){
$w_value[0] = 'ffg_goods.is_recommend';
}else if($w_value[2] == '设计师作品'){
}else if($w_value[2] == 2){
$w_value[0] = 'ffg_goods.is_design';
}else if($w_value[2] == '新人特惠'){
}else if($w_value[2] == 3){
$w_value[0] = 'ffg_goods.is_new';
}
$w_value[2] = 1;
... ...
... ... @@ -25,7 +25,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image},
{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image,operate:false},
{field: 'type', title: __('Type'),formatter: Table.api.formatter.label, searchList: {0: __('首页广告位'), 1: __('弹窗广告位')}},
{field: 'url', title: __('Url')},
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
... ...
... ... @@ -25,7 +25,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image},
{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image,operate:false},
{field: 'url', title: __('Url')},
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
... ...
... ... @@ -71,11 +71,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
}
}
},
{field: 'coupon_number', title: __('coupon_number')},
{field: 'coupon_number', title: __('coupon_number'),operate:false},
{field: 'is_new', title: __('Is_new'),formatter: Table.api.formatter.label,searchList: {0: __('否'), 1: __('是')}},
{field: 'end_time', title: __('End_time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'gift', title: __('Gift'),formatter: Table.api.formatter.label,searchList: {0: __('无'), 1: __('分享人'),2:__('被分享人')}},
{field: 'sort', title: __('Sort'),sortable: true},//排序
{field: 'sort', title: __('Sort'),sortable: true,operate:false},//排序
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
... ...
... ... @@ -25,7 +25,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image},
{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image,operate:false},
{field: 'url', title: __('Url')},
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
... ...
... ... @@ -25,11 +25,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image},
{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image,operate:false},
{field: 'name', title: __('Name')},
{field: 'tag', title: __('Tag')},
{field: 'address', title: __('Address')},
{field: 'introduce', title: __('Introduce')},
{field: 'introduce', title: __('Introduce'),operate:false},
// {field: 'file', title: __('File')},
// {field: 'image_long', title: __('Image_long')},
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
... ...
... ... @@ -69,7 +69,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
}
}
},
{field: 'coupon_number', title: __('Coupon_number')},
{field: 'coupon_number', title: __('Coupon_number'),operate:false},
{field: 'is_new', title: __('Is_new'),formatter: Table.api.formatter.label,searchList: {0: __('否'), 1: __('是')}},
{field: 'end_time', title: __('End_time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'gift', title: __('Gift'),formatter: Table.api.formatter.label,searchList: {0: __('无'), 1: __('分享人'),2:__('被分享人')}},
... ...
... ... @@ -70,11 +70,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
}
}
},
{field: 'coupon_number', title: __('coupon_number')},
{field: 'coupon_number', title: __('coupon_number'),operate:false},
{field: 'is_new', title: __('Is_new'),formatter: Table.api.formatter.label,searchList: {0: __('否'), 1: __('是')}},
{field: 'end_time', title: __('End_time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'gift', title: __('Gift'),formatter: Table.api.formatter.label,searchList: {0: __('无'), 1: __('分享人'),2:__('被分享人')}},
{field: 'sort', title: __('Sort'),sortable: true},//排序
{field: 'sort', title: __('Sort'),sortable: true,operate:false},//排序
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
... ...
... ... @@ -26,11 +26,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'gtype.name', title: __('Gtype.name')},//品类名称
{field: 'gtype.name', title: __('Gtype.name'),operate:'LIKE'},//品类名称
{field: 'name', title: __('Name')},//商品名称
{field: 'name_en', title: __('Name_en')},//商品名称(英文)
{field: 'image', title: __('Image'),events: Table.api.events.image, formatter: Table.api.formatter.image},//商品图
{field: 'name', title: __('Name'),operate:'LIKE'},//商品名称
{field: 'name_en', title: __('Name_en'),operate:'LIKE'},//商品名称(英文)
{field: 'image', title: __('Image'),events: Table.api.events.image, formatter: Table.api.formatter.image,operate:false},//商品图
{field: 'flag', title: __('Flag'),formatter:
function(value,row,index){
var value1 = '';
... ... @@ -47,15 +47,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
value1 += '<span style="color:blue">新人特惠</span>';
}
return value1;
}
},searchList: {'': __('选择'), 1: __('推荐'), 2: __('设计师作品'), 3: __('新人特惠')}
},//商品标识
// {field: 'sale_price', title: __('Sale_price')},//销售价格
{field: 'market_price', title: __('Market_price')},//市场价格
{field: 'expense_price', title: __('Expense_price')},//运费
{field: 'hots', title: __('Hots'),sortable: true},//浏览量
{field: 'sales', title: __('Sales'),sortable: true},//销量
{field: 'collections', title: __('Collections'),sortable: true},//收藏量
{field: 'sort', title: __('Sort'),sortable: true},//排序
{field: 'market_price', title: __('Market_price'),operate:false},//市场价格
{field: 'expense_price', title: __('Expense_price'),operate:false},//运费
{field: 'hots', title: __('Hots'),sortable: true,operate:false},//浏览量
{field: 'sales', title: __('Sales'),sortable: true,operate:false},//销量
{field: 'collections', title: __('Collections'),sortable: true,operate:false},//收藏量
{field: 'sort', title: __('Sort'),sortable: true,operate:false},//排序
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
... ...
... ... @@ -26,12 +26,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'btype.name', title: __('Btype.name')},//品牌名称
{field: 'btype.name', title: __('Btype.name'),operate:'LIKE'},//品牌名称
{field: 'btype.address', title: __('Btype.address')},//品牌产地
{field: 'name', title: __('Name')},//商品名称
{field: 'name_en', title: __('Name_en')},//商品名称(英文)
{field: 'image', title: __('Image'),events: Table.api.events.image, formatter: Table.api.formatter.image},//商品图
{field: 'name', title: __('Name'),operate:'LIKE'},//商品名称
{field: 'name_en', title: __('Name_en'),operate:'LIKE'},//商品名称(英文)
{field: 'image', title: __('Image'),events: Table.api.events.image, formatter: Table.api.formatter.image,operate:false},//商品图
{field: 'flag', title: __('Flag'),formatter:
function(value,row,index){
var value1 = '';
... ... @@ -48,15 +48,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
value1 += '<span style="color:blue">新人特惠</span>';
}
return value1;
}
},searchList: {'': __('选择'), 1: __('推荐'), 2: __('设计师作品'), 3: __('新人特惠')}
},//商品标识
// {field: 'sale_price', title: __('Sale_price')},//销售价格
{field: 'market_price', title: __('Market_price')},//市场价格
{field: 'expense_price', title: __('Expense_price')},//运费
{field: 'hots', title: __('Hots'),sortable: true},//浏览量
{field: 'sales', title: __('Sales'),sortable: true},//销量
{field: 'collections', title: __('Collections'),sortable: true},//收藏量
{field: 'sort', title: __('Sort'),sortable: true},//排序
{field: 'market_price', title: __('Market_price'),operate:false},//市场价格
{field: 'expense_price', title: __('Expense_price'),operate:false},//运费
{field: 'hots', title: __('Hots'),sortable: true,operate:false},//浏览量
{field: 'sales', title: __('Sales'),sortable: true,operate:false},//销量
{field: 'collections', title: __('Collections'),sortable: true,operate:false},//收藏量
{field: 'sort', title: __('Sort'),sortable: true,operate:false},//排序
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
... ...
... ... @@ -26,7 +26,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'name', title: __('Name')},
{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image},
{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image,operate:false},
// {field: 'images', title: __('Images'), events: Table.api.events.image, formatter: Table.api.formatter.images},
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
// {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
... ...
... ... @@ -27,7 +27,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'id', title: __('Id')},
{field: 'title', title: __('Title')},
{field: 'nickname', title: __('Nickname')},
{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image},
{field: 'image', title: __('Image'), events: Table.api.events.image, formatter: Table.api.formatter.image,operate:false},
{field: 'address', title: __('Address')},
{field: 'goods.name', title: __('Goods.name')},
{field: 'goods.type_name', title: __('Goods.type_name')},
... ...
... ... @@ -34,12 +34,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
// {field: 'level', title: __('Level'), operate: 'BETWEEN', sortable: true},
// {field: 'gender', title: __('Gender'), visible: false, searchList: {1: __('Male'), 0: __('Female')}},
// {field: 'score', title: __('Score'), operate: 'BETWEEN', sortable: true},
{field: 'successions', title: __('Successions'), visible: false, operate: 'BETWEEN', sortable: true},
{field: 'maxsuccessions', title: __('Maxsuccessions'), visible: false, operate: 'BETWEEN', sortable: true},
{field: 'logintime', title: __('Logintime'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},
{field: 'loginip', title: __('Loginip'), formatter: Table.api.formatter.search},
{field: 'jointime', title: __('Jointime'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},
{field: 'joinip', title: __('Joinip'), formatter: Table.api.formatter.search},
{field: 'successions', title: __('Successions'), visible: false, operate: false, sortable: true},
{field: 'maxsuccessions', title: __('Maxsuccessions'), visible: false, operate: false, sortable: true},
{field: 'logintime', title: __('Logintime'), formatter: Table.api.formatter.datetime, operate: false, addclass: 'datetimerange', sortable: true},
// {field: 'loginip', title: __('Loginip'), formatter: Table.api.formatter.search},
{field: 'jointime', title: __('Jointime'), formatter: Table.api.formatter.datetime, operate: false, addclass: 'datetimerange', sortable: true},
// {field: 'joinip', title: __('Joinip'), formatter: Table.api.formatter.search},
{field: 'status', title: __('Status'), formatter: Table.api.formatter.status, searchList: {normal: __('Normal'), hidden: __('Hidden')}},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
... ...