提交 3e53cf1a 编写于 作者: D devil

数据列表新增排序、细节优化

上级 c41f8dce
......@@ -68,6 +68,7 @@ class Admin extends Common
'where' => $this->form_where,
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'order_by' => $this->form_order_by['data'],
];
$ret = AdminService::AdminList($data_params);
......
......@@ -69,6 +69,7 @@ class Brand extends Common
'where' => $this->form_where,
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'order_by' => $this->form_order_by['data'],
];
$ret = BrandService::BrandList($data_params);
......
......@@ -67,6 +67,7 @@ class CustomView extends Common
'where' => $this->form_where,
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'order_by' => $this->form_order_by['data'],
];
$ret = CustomViewService::CustomViewList($data_params);
......
......@@ -69,6 +69,7 @@ class GoodsBrowse extends Common
'where' => $this->form_where,
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'order_by' => $this->form_order_by['data'],
'is_public' => 0,
'user_type' => 'admin',
];
......
......@@ -67,6 +67,7 @@ class Goodscomments extends Common
'where' => $this->form_where,
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'order_by' => $this->form_order_by['data'],
'is_public' => 0,
];
$ret = GoodsCommentsService::GoodsCommentsList($data_params);
......
......@@ -69,6 +69,7 @@ class Goodsfavor extends Common
'where' => $this->form_where,
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'order_by' => $this->form_order_by['data'],
'is_public' => 0,
'user_type' => 'admin',
];
......
......@@ -49,8 +49,12 @@ class Link extends Common
*/
public function Index()
{
// 获取导航列表
$ret = LinkService::LinkList(['where'=>$this->form_where]);
// 获取列表
$data_params = [
'where' => $this->form_where,
'order_by' => $this->form_order_by['data'],
];
$ret = LinkService::LinkList($data_params);
$this->assign('data_list', $ret['data']);
return $this->fetch();
}
......
......@@ -56,10 +56,13 @@ class Navigation extends Common
*/
public function Index()
{
// 获取导航列表
$where = $this->form_where;
$where[] = ['nav_type', '=', $this->nav_type];
$ret = NavigationService::NavList(['where'=>$where]);
// 获取列表
$data_params = [
'where' => $this->form_where,
'order_by' => $this->form_order_by['data'],
];
$data_params['where'][] = ['nav_type', '=', $this->nav_type];
$ret = NavigationService::NavList($data_params);
$this->assign('data_list', $ret['data']);
// 一级分类
......
......@@ -69,6 +69,7 @@ class Order extends Common
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'where' => $this->form_where,
'order_by' => $this->form_order_by['data'],
'is_public' => 0,
'user_type' => 'admin',
];
......
......@@ -70,6 +70,7 @@ class Orderaftersale extends Common
'where' => $this->form_where,
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'order_by' => $this->form_order_by['data'],
'is_public' => 0,
];
$ret = OrderAftersaleService::OrderAftersaleList($data_params);
......
......@@ -67,6 +67,7 @@ class QuickNav extends Common
'where' => $this->form_where,
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'order_by' => $this->form_order_by['data'],
];
$ret = QuickNavService::QuickNavList($data_params);
......
......@@ -68,6 +68,7 @@ class Role extends Common
'where' => $this->form_where,
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'order_by' => $this->form_order_by['data'],
];
$ret = AdminRoleService::RoleList($data_params);
......
......@@ -67,6 +67,7 @@ class Slide extends Common
'where' => $this->form_where,
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'order_by' => $this->form_order_by['data'],
];
$ret = SlideService::SlideList($data_params);
......
......@@ -69,6 +69,7 @@ class User extends Common
'where' => $this->form_where,
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'order_by' => $this->form_order_by['data'],
];
$ret = UserService::UserList($data_params);
......
......@@ -67,6 +67,7 @@ class UserAddress extends Common
'where' => $this->form_where,
'm' => $page->GetPageStarNumber(),
'n' => $this->page_size,
'order_by' => $this->form_order_by['data'],
];
$ret = UserAddressService::UserAddressAdminList($data_params);
......
......@@ -62,6 +62,7 @@ class Admin
'label' => '管理员',
'view_type' => 'field',
'view_key' => 'username',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -73,6 +74,7 @@ class Admin
'view_key' => 'status',
'view_data_key' => 'name',
'view_data' => lang('common_admin_status_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -88,6 +90,7 @@ class Admin
'view_key' => 'gender',
'view_data_key' => 'name',
'view_data' => lang('common_gender_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -101,6 +104,7 @@ class Admin
'label' => '手机',
'view_type' => 'field',
'view_key' => 'mobile',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -110,6 +114,7 @@ class Admin
'label' => '角色组',
'view_type' => 'field',
'view_key' => 'role_name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'role_id',
......@@ -124,6 +129,7 @@ class Admin
'label' => '登录次数',
'view_type' => 'field',
'view_key' => 'login_total',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -132,6 +138,7 @@ class Admin
'label' => '最后登录时间',
'view_type' => 'field',
'view_key' => 'login_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -140,6 +147,7 @@ class Admin
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -148,6 +156,7 @@ class Admin
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -62,6 +62,7 @@ class Answer
'view_type' => 'module',
'view_key' => 'lib/module/user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'user_id',
......@@ -75,6 +76,7 @@ class Answer
'label' => '联系人',
'view_type' => 'field',
'view_key' => 'name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -84,6 +86,7 @@ class Answer
'label' => '联系电话',
'view_type' => 'field',
'view_key' => 'tel',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -118,6 +121,7 @@ class Answer
'post_url' => MyUrl('admin/answer/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -133,6 +137,7 @@ class Answer
'view_key' => 'is_reply',
'post_url' => MyUrl('admin/answer/statusupdate'),
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -146,6 +151,7 @@ class Answer
'label' => '回复时间',
'view_type' => 'field',
'view_key' => 'reply_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'reply_time',
......@@ -155,6 +161,7 @@ class Answer
'label' => '访问次数',
'view_type' => 'field',
'view_key' => 'access_count',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -163,6 +170,7 @@ class Answer
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'add_time',
......@@ -172,6 +180,7 @@ class Answer
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'upd_time',
......
......@@ -59,6 +59,7 @@ class Appcenternav
'label' => '名称',
'view_type' => 'field',
'view_key' => 'name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -70,6 +71,7 @@ class Appcenternav
'view_key' => 'platform',
'view_data_key' => 'name',
'view_data' => lang('common_platform_type'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -92,6 +94,7 @@ class Appcenternav
'view_data_key' => 'name',
'view_data' => lang('common_app_event_type'),
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -106,6 +109,7 @@ class Appcenternav
'view_type' => 'field',
'view_key' => 'event_value',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -118,6 +122,7 @@ class Appcenternav
'post_url' => MyUrl('admin/appcenternav/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -133,6 +138,7 @@ class Appcenternav
'view_key' => 'is_need_login',
'post_url' => MyUrl('admin/appcenternav/statusupdate'),
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -146,11 +152,16 @@ class Appcenternav
'label' => '排序',
'view_type' => 'field',
'view_key' => 'sort',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
],
[
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -159,6 +170,7 @@ class Appcenternav
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -59,6 +59,7 @@ class Apphomenav
'label' => '名称',
'view_type' => 'field',
'view_key' => 'name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -70,6 +71,7 @@ class Apphomenav
'view_key' => 'platform',
'view_data_key' => 'name',
'view_data' => lang('common_platform_type'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -92,6 +94,7 @@ class Apphomenav
'view_data_key' => 'name',
'view_data' => lang('common_app_event_type'),
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -106,6 +109,7 @@ class Apphomenav
'view_type' => 'field',
'view_key' => 'event_value',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -118,6 +122,7 @@ class Apphomenav
'post_url' => MyUrl('admin/apphomenav/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -133,6 +138,7 @@ class Apphomenav
'view_key' => 'is_need_login',
'post_url' => MyUrl('admin/apphomenav/statusupdate'),
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -146,11 +152,16 @@ class Apphomenav
'label' => '排序',
'view_type' => 'field',
'view_key' => 'sort',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
],
[
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -159,6 +170,7 @@ class Apphomenav
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -63,6 +63,7 @@ class Article
'view_type' => 'module',
'view_key' => 'article/module/info',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'title',
......@@ -74,6 +75,7 @@ class Article
'view_type' => 'field',
'view_key' => 'jump_url',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -83,6 +85,7 @@ class Article
'label' => '分类',
'view_type' => 'field',
'view_key' => 'article_category_name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'article_category_id',
......@@ -100,6 +103,7 @@ class Article
'post_url' => MyUrl('admin/article/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -115,6 +119,7 @@ class Article
'view_key' => 'is_home_recommended',
'post_url' => MyUrl('admin/article/statusupdate'),
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -128,6 +133,7 @@ class Article
'label' => '图片数量',
'view_type' => 'field',
'view_key' => 'images_count',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -136,6 +142,7 @@ class Article
'label' => '访问次数',
'view_type' => 'field',
'view_key' => 'access_count',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -144,6 +151,7 @@ class Article
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -152,6 +160,7 @@ class Article
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -64,6 +64,7 @@ class Brand
'label' => '名称',
'view_type' => 'field',
'view_key' => 'name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -107,6 +108,7 @@ class Brand
'post_url' => MyUrl('admin/brand/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -120,11 +122,16 @@ class Brand
'label' => '排序',
'view_type' => 'field',
'view_key' => 'sort',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
],
[
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -133,6 +140,7 @@ class Brand
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -61,6 +61,7 @@ class Customview
'view_type' => 'module',
'view_key' => 'customview/module/info',
'grid_size' => 'lg',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'title',
......@@ -74,6 +75,7 @@ class Customview
'post_url' => MyUrl('admin/customview/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -89,6 +91,7 @@ class Customview
'view_key' => 'is_header',
'post_url' => MyUrl('admin/customview/statusupdate'),
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -104,6 +107,7 @@ class Customview
'view_key' => 'is_footer',
'post_url' => MyUrl('admin/customview/statusupdate'),
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -119,6 +123,7 @@ class Customview
'view_key' => 'is_full_screen',
'post_url' => MyUrl('admin/customview/statusupdate'),
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -132,6 +137,7 @@ class Customview
'label' => '图片数量',
'view_type' => 'field',
'view_key' => 'images_count',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -140,6 +146,7 @@ class Customview
'label' => '访问次数',
'view_type' => 'field',
'view_key' => 'access_count',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -148,6 +155,7 @@ class Customview
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -156,6 +164,7 @@ class Customview
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -61,6 +61,7 @@ class Goodsbrowse
'view_type' => 'module',
'view_key' => 'lib/module/user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'b.user_id',
......@@ -75,6 +76,8 @@ class Goodsbrowse
'view_type' => 'module',
'view_key' => 'goodsbrowse/module/goods',
'grid_size' => 'lg',
'is_sort' => 1,
'sort_field' => 'g.title',
'search_config' => [
'form_type' => 'input',
'form_name' => 'g.title|g.model|g.simple_desc|g.seo_title|g.seo_keywords|g.seo_keywords',
......@@ -86,6 +89,7 @@ class Goodsbrowse
'label' => '销售价格(元)',
'view_type' => 'field',
'view_key' => 'price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'form_name' => 'g.min_price',
......@@ -96,6 +100,7 @@ class Goodsbrowse
'label' => '原价(元)',
'view_type' => 'field',
'view_key' => 'original_price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'form_name' => 'g.min_original_price',
......@@ -106,6 +111,7 @@ class Goodsbrowse
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'b.add_time',
......
......@@ -62,6 +62,8 @@ class Goodscomments
'view_type' => 'module',
'view_key' => 'goodscomments/module/goods',
'grid_size' => 'lg',
'is_sort' => 1,
'sort_field' => 'goods_id',
'search_config' => [
'form_type' => 'input',
'form_name' => 'id',
......@@ -76,6 +78,7 @@ class Goodscomments
'view_type' => 'module',
'view_key' => 'lib/module/user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'user_id',
......@@ -92,6 +95,7 @@ class Goodscomments
'view_data_key' => 'name',
'view_data' => lang('common_goods_comments_business_type_list'),
'width' => 120,
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -123,6 +127,7 @@ class Goodscomments
'view_type' => 'module',
'view_key' => 'goodscomments/module/rating',
'width' => 100,
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'rating',
......@@ -151,6 +156,7 @@ class Goodscomments
'post_url' => MyUrl('admin/goodscomments/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -166,6 +172,7 @@ class Goodscomments
'view_key' => 'is_anonymous',
'post_url' => MyUrl('admin/goodscomments/statusupdate'),
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -181,6 +188,7 @@ class Goodscomments
'view_key' => 'is_reply',
'post_url' => MyUrl('admin/goodscomments/statusupdate'),
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -194,6 +202,7 @@ class Goodscomments
'label' => '回复时间',
'view_type' => 'field',
'view_key' => 'reply_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'reply_time',
......@@ -203,6 +212,7 @@ class Goodscomments
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'add_time',
......@@ -212,6 +222,7 @@ class Goodscomments
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'upd_time',
......
......@@ -61,6 +61,7 @@ class Goodsfavor
'view_type' => 'module',
'view_key' => 'lib/module/user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'f.user_id',
......@@ -75,6 +76,8 @@ class Goodsfavor
'view_type' => 'module',
'view_key' => 'goodsfavor/module/goods',
'grid_size' => 'lg',
'is_sort' => 1,
'sort_field' => 'g.title',
'search_config' => [
'form_type' => 'input',
'form_name' => 'g.title|g.model|g.simple_desc|g.seo_title|g.seo_keywords|g.seo_keywords',
......@@ -86,6 +89,7 @@ class Goodsfavor
'label' => '销售价格(元)',
'view_type' => 'field',
'view_key' => 'price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'form_name' => 'g.min_price',
......@@ -96,6 +100,7 @@ class Goodsfavor
'label' => '原价(元)',
'view_type' => 'field',
'view_key' => 'original_price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'form_name' => 'g.min_original_price',
......@@ -106,6 +111,7 @@ class Goodsfavor
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'f.add_time',
......
......@@ -50,6 +50,7 @@ class Integrallog
'view_type' => 'module',
'view_key' => 'lib/module/user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'user_id',
......@@ -65,6 +66,7 @@ class Integrallog
'view_key' => 'type',
'view_data_key' => 'name',
'view_data' => lang('common_integral_log_type_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -78,6 +80,7 @@ class Integrallog
'label' => '操作积分',
'view_type' => 'field',
'view_key' => 'operation_integral',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -86,6 +89,7 @@ class Integrallog
'label' => '原始积分',
'view_type' => 'field',
'view_key' => 'original_integral',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -94,6 +98,7 @@ class Integrallog
'label' => '最新积分',
'view_type' => 'field',
'view_key' => 'new_integral',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -103,6 +108,7 @@ class Integrallog
'view_type' => 'field',
'view_key' => 'msg',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -112,6 +118,7 @@ class Integrallog
'label' => '操作人员id',
'view_type' => 'field',
'view_key' => 'operation_id',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => '=',
......@@ -121,6 +128,7 @@ class Integrallog
'label' => '操作时间',
'view_type' => 'field',
'view_key' => 'add_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'add_time',
......
......@@ -62,6 +62,7 @@ class Link
'view_type' => 'module',
'view_key' => 'link/module/info',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'name',
......@@ -83,6 +84,7 @@ class Link
'label' => '描述',
'view_type' => 'field',
'view_key' => 'describe',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -95,6 +97,7 @@ class Link
'post_url' => MyUrl('admin/link/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -110,6 +113,7 @@ class Link
'view_key' => 'is_new_window_open',
'post_url' => MyUrl('admin/link/statusupdate'),
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -123,11 +127,16 @@ class Link
'label' => '排序',
'view_type' => 'field',
'view_key' => 'sort',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
],
[
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -63,6 +63,7 @@ class Message
'view_type' => 'module',
'view_key' => 'lib/module/user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'user_id',
......@@ -78,6 +79,7 @@ class Message
'view_key' => 'type',
'view_data_key' => 'name',
'view_data' => lang('common_message_type_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -91,6 +93,7 @@ class Message
'label' => '业务类型',
'view_type' => 'field',
'view_key' => 'business_type',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -104,6 +107,7 @@ class Message
'label' => '标题',
'view_type' => 'field',
'view_key' => 'title',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -113,6 +117,7 @@ class Message
'label' => '详情',
'view_type' => 'field',
'view_key' => 'detail',
'is_sort' => 1,
'grid_size' => 'lg',
'search_config' => [
'form_type' => 'input',
......@@ -125,6 +130,7 @@ class Message
'view_key' => 'is_read',
'view_data_key' => 'name',
'view_data' => lang('common_is_read_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -138,11 +144,13 @@ class Message
'label' => '用户是否删除',
'view_type' => 'field',
'view_key' => 'user_is_delete_time_text',
'is_sort' => 1,
],
[
'label' => '发送时间',
'view_type' => 'field',
'view_key' => 'add_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'add_time',
......
......@@ -64,6 +64,7 @@ class Navigation
'view_type' => 'module',
'view_key' => 'navigation/module/info',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'name',
......@@ -76,6 +77,7 @@ class Navigation
'view_key' => 'data_type',
'view_data_key' => 'name',
'view_data' => lang('common_nav_type_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -92,6 +94,7 @@ class Navigation
'post_url' => MyUrl('admin/navigation/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -107,6 +110,7 @@ class Navigation
'view_key' => 'is_new_window_open',
'post_url' => MyUrl('admin/navigation/statusupdate'),
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -120,11 +124,16 @@ class Navigation
'label' => '排序',
'view_type' => 'field',
'view_key' => 'sort',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
],
[
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -133,6 +142,7 @@ class Navigation
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -71,6 +71,7 @@ class Order
'view_type' => 'module',
'view_key' => 'lib/module/user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'user_id',
......@@ -84,6 +85,7 @@ class Order
'label' => '订单状态',
'view_type' => 'module',
'view_key' => 'order/module/status',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'status',
......@@ -98,6 +100,7 @@ class Order
'label' => '支付状态',
'view_type' => 'module',
'view_key' => 'order/module/pay_status',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'pay_status',
......@@ -112,6 +115,7 @@ class Order
'label' => '总价(元)',
'view_type' => 'field',
'view_key' => 'total_price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'is_point' => 1,
......@@ -121,6 +125,7 @@ class Order
'label' => '支付金额(元)',
'view_type' => 'field',
'view_key' => 'pay_price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'is_point' => 1,
......@@ -130,6 +135,7 @@ class Order
'label' => '单价(元)',
'view_type' => 'field',
'view_key' => 'price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'is_point' => 1,
......@@ -139,6 +145,7 @@ class Order
'label' => '出货仓库',
'view_type' => 'field',
'view_key' => 'warehouse_name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'warehouse_id',
......@@ -155,6 +162,7 @@ class Order
'view_key' => 'order_model',
'view_data_key' => 'name',
'view_data' => lang('common_site_type_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -170,6 +178,7 @@ class Order
'view_key' => 'client_type',
'view_data_key' => 'name',
'view_data' => lang('common_platform_type'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -211,6 +220,7 @@ class Order
'label' => '退款金额(元)',
'view_type' => 'field',
'view_key' => 'refund_price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'is_point' => 1,
......@@ -220,6 +230,7 @@ class Order
'label' => '退货数量',
'view_type' => 'field',
'view_key' => 'returned_quantity',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -228,6 +239,7 @@ class Order
'label' => '购买总数',
'view_type' => 'field',
'view_key' => 'buy_number_count',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -236,6 +248,7 @@ class Order
'label' => '增加金额(元)',
'view_type' => 'field',
'view_key' => 'increase_price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'is_point' => 1,
......@@ -245,6 +258,7 @@ class Order
'label' => '优惠金额(元)',
'view_type' => 'field',
'view_key' => 'preferential_price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'is_point' => 1,
......@@ -254,6 +268,7 @@ class Order
'label' => '支付方式',
'view_type' => 'field',
'view_key' => 'payment_name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'payment_id',
......@@ -268,6 +283,7 @@ class Order
'label' => '用户备注',
'view_type' => 'field',
'view_key' => 'user_note',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'like',
......@@ -288,6 +304,7 @@ class Order
'label' => '快递公司',
'view_type' => 'field',
'view_key' => 'express_name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'express_id',
......@@ -302,6 +319,7 @@ class Order
'label' => '快递单号',
'view_type' => 'field',
'view_key' => 'express_number',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -317,6 +335,7 @@ class Order
'label' => '用户是否评论',
'view_type' => 'module',
'view_key' => 'order/module/is_comments',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -333,6 +352,7 @@ class Order
'label' => '确认时间',
'view_type' => 'field',
'view_key' => 'confirm_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -341,6 +361,7 @@ class Order
'label' => '支付时间',
'view_type' => 'field',
'view_key' => 'pay_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -349,6 +370,7 @@ class Order
'label' => '发货时间',
'view_type' => 'field',
'view_key' => 'delivery_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -357,6 +379,7 @@ class Order
'label' => '完成时间',
'view_type' => 'field',
'view_key' => 'collect_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -365,6 +388,7 @@ class Order
'label' => '取消时间',
'view_type' => 'field',
'view_key' => 'cancel_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -373,6 +397,7 @@ class Order
'label' => '关闭时间',
'view_type' => 'field',
'view_key' => 'close_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -381,6 +406,7 @@ class Order
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -389,6 +415,7 @@ class Order
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -51,6 +51,8 @@ class Orderaftersale
'view_type' => 'module',
'view_key' => 'orderaftersale/module/goods',
'grid_size' => 'lg',
'is_sort' => 1,
'sort_field' => 'goods_id',
'search_config' => [
'form_type' => 'input',
'form_name' => 'id',
......@@ -65,6 +67,7 @@ class Orderaftersale
'view_type' => 'module',
'view_key' => 'lib/module/user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'user_id',
......@@ -81,6 +84,7 @@ class Orderaftersale
'view_data_key' => 'name',
'view_data' => lang('common_order_aftersale_status_list'),
'width' => 120,
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -97,6 +101,7 @@ class Orderaftersale
'view_data_key' => 'name',
'view_data' => lang('common_order_aftersale_type_list'),
'width' => 120,
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -110,6 +115,7 @@ class Orderaftersale
'label' => '原因',
'view_type' => 'field',
'view_key' => 'reason',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -119,6 +125,7 @@ class Orderaftersale
'label' => '退款金额(元)',
'view_type' => 'field',
'view_key' => 'price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'is_point' => 1,
......@@ -128,6 +135,7 @@ class Orderaftersale
'label' => '退货数量',
'view_type' => 'field',
'view_key' => 'number',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -137,6 +145,7 @@ class Orderaftersale
'view_type' => 'field',
'view_key' => 'msg',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -149,6 +158,7 @@ class Orderaftersale
'view_data_key' => 'name',
'view_data' => lang('common_order_aftersale_refundment_list'),
'width' => 120,
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -168,6 +178,7 @@ class Orderaftersale
'label' => '快递公司',
'view_type' => 'field',
'view_key' => 'express_name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -177,6 +188,7 @@ class Orderaftersale
'label' => '快递单号',
'view_type' => 'field',
'view_key' => 'express_number',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -187,6 +199,7 @@ class Orderaftersale
'view_type' => 'field',
'view_key' => 'refuse_reason',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -196,6 +209,7 @@ class Orderaftersale
'label' => '申请时间',
'view_type' => 'field',
'view_key' => 'apply_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'apply_time',
......@@ -205,6 +219,7 @@ class Orderaftersale
'label' => '确认时间',
'view_type' => 'field',
'view_key' => 'confirm_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'confirm_time',
......@@ -214,6 +229,7 @@ class Orderaftersale
'label' => '退货时间',
'view_type' => 'field',
'view_key' => 'delivery_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'delivery_time',
......@@ -223,6 +239,7 @@ class Orderaftersale
'label' => '审核时间',
'view_type' => 'field',
'view_key' => 'audit_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'audit_time',
......@@ -232,6 +249,7 @@ class Orderaftersale
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'add_time',
......@@ -241,6 +259,7 @@ class Orderaftersale
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'upd_time',
......
......@@ -52,6 +52,7 @@ class Paylog
'view_type' => 'module',
'view_key' => 'lib/module/user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'user_id',
......@@ -66,6 +67,7 @@ class Paylog
'view_type' => 'field',
'view_key' => 'log_no',
'width' => 165,
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => '=',
......@@ -76,6 +78,7 @@ class Paylog
'view_type' => 'module',
'view_key' => 'paylog/module/payment',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'payment',
......@@ -92,6 +95,7 @@ class Paylog
'view_key' => 'status',
'view_data_key' => 'name',
'view_data' => lang('common_pay_log_status_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -105,6 +109,7 @@ class Paylog
'label' => '业务订单金额(元)',
'view_type' => 'field',
'view_key' => 'total_price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'is_point' => 1,
......@@ -114,6 +119,7 @@ class Paylog
'label' => '支付金额(元)',
'view_type' => 'field',
'view_key' => 'pay_price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'is_point' => 1,
......@@ -123,6 +129,7 @@ class Paylog
'label' => '业务类型',
'view_type' => 'field',
'view_key' => 'business_type',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -150,6 +157,7 @@ class Paylog
'view_type' => 'field',
'view_key' => 'trade_no',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => '=',
......@@ -160,6 +168,7 @@ class Paylog
'view_type' => 'field',
'view_key' => 'buyer_user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -169,6 +178,7 @@ class Paylog
'label' => '订单名称',
'view_type' => 'field',
'view_key' => 'subject',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -178,6 +188,7 @@ class Paylog
'label' => '支付时间',
'view_type' => 'field',
'view_key' => 'pay_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -186,6 +197,7 @@ class Paylog
'label' => '关闭时间',
'view_type' => 'field',
'view_key' => 'close_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -194,6 +206,7 @@ class Paylog
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -50,6 +50,7 @@ class PayRequestLog
'label' => '业务类型',
'view_type' => 'field',
'view_key' => 'business_type',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -92,6 +93,7 @@ class PayRequestLog
'view_key' => 'payrequestlog/module/business_handle',
'align' => 'left',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -112,6 +114,7 @@ class PayRequestLog
'label' => '端口号',
'view_type' => 'field',
'view_key' => 'server_port',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -125,6 +128,7 @@ class PayRequestLog
'label' => '服务器ip',
'view_type' => 'field',
'view_key' => 'server_ip',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -143,6 +147,7 @@ class PayRequestLog
'label' => '操作系统',
'view_type' => 'field',
'view_key' => 'os',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -156,6 +161,7 @@ class PayRequestLog
'label' => '浏览器',
'view_type' => 'field',
'view_key' => 'browser',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -169,6 +175,7 @@ class PayRequestLog
'label' => '请求类型',
'view_type' => 'field',
'view_key' => 'method',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -182,6 +189,7 @@ class PayRequestLog
'label' => 'http类型',
'view_type' => 'field',
'view_key' => 'scheme',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -195,6 +203,7 @@ class PayRequestLog
'label' => 'http版本',
'view_type' => 'field',
'view_key' => 'version',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -208,6 +217,7 @@ class PayRequestLog
'label' => '客户端详情',
'view_type' => 'field',
'view_key' => 'client',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -217,6 +227,7 @@ class PayRequestLog
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -225,6 +236,7 @@ class PayRequestLog
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -59,6 +59,7 @@ class Quicknav
'label' => '名称',
'view_type' => 'field',
'view_key' => 'name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -70,6 +71,7 @@ class Quicknav
'view_key' => 'platform',
'view_data_key' => 'name',
'view_data' => lang('common_platform_type'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -92,6 +94,7 @@ class Quicknav
'view_data_key' => 'name',
'view_data' => lang('common_app_event_type'),
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -106,6 +109,7 @@ class Quicknav
'view_type' => 'field',
'view_key' => 'event_value',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -118,6 +122,7 @@ class Quicknav
'post_url' => MyUrl('admin/quicknav/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -131,11 +136,16 @@ class Quicknav
'label' => '排序',
'view_type' => 'field',
'view_key' => 'sort',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
],
[
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -144,6 +154,7 @@ class Quicknav
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -51,6 +51,7 @@ class Refundlog
'view_type' => 'module',
'view_key' => 'lib/module/user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'user_id',
......@@ -65,6 +66,7 @@ class Refundlog
'view_type' => 'module',
'view_key' => 'refundlog/module/payment',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'payment',
......@@ -79,6 +81,7 @@ class Refundlog
'label' => '业务类型',
'view_type' => 'field',
'view_key' => 'business_type',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -92,6 +95,7 @@ class Refundlog
'label' => '业务订单id',
'view_type' => 'field',
'view_key' => 'business_id',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => '=',
......@@ -102,6 +106,7 @@ class Refundlog
'view_type' => 'field',
'view_key' => 'trade_no',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -112,6 +117,7 @@ class Refundlog
'view_type' => 'field',
'view_key' => 'buyer_user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -121,6 +127,7 @@ class Refundlog
'label' => '退款方式',
'view_type' => 'field',
'view_key' => 'refundment_text',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'refundment',
......@@ -135,6 +142,7 @@ class Refundlog
'label' => '退款金额',
'view_type' => 'field',
'view_key' => 'refund_price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'is_point' => 1,
......@@ -144,6 +152,7 @@ class Refundlog
'label' => '订单支付金额',
'view_type' => 'field',
'view_key' => 'pay_price',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
'is_point' => 1,
......@@ -154,6 +163,7 @@ class Refundlog
'view_type' => 'field',
'view_key' => 'msg',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -163,6 +173,7 @@ class Refundlog
'label' => '退款时间',
'view_type' => 'field',
'view_key' => 'add_time_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
'form_name' => 'add_time',
......
......@@ -62,6 +62,7 @@ class Role
'label' => '角色名称',
'view_type' => 'field',
'view_key' => 'name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -74,6 +75,7 @@ class Role
'post_url' => MyUrl('admin/role/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -87,6 +89,7 @@ class Role
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -95,6 +98,7 @@ class Role
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -59,6 +59,7 @@ class Slide
'label' => '名称',
'view_type' => 'field',
'view_key' => 'name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -70,6 +71,7 @@ class Slide
'view_key' => 'platform',
'view_data_key' => 'name',
'view_data' => lang('common_platform_type'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -91,6 +93,7 @@ class Slide
'view_key' => 'event_type',
'view_data_key' => 'name',
'view_data' => lang('common_app_event_type'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -105,6 +108,7 @@ class Slide
'view_type' => 'field',
'view_key' => 'event_value',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -117,6 +121,7 @@ class Slide
'post_url' => MyUrl('admin/slide/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -130,11 +135,16 @@ class Slide
'label' => '排序',
'view_type' => 'field',
'view_key' => 'sort',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
],
[
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -143,6 +153,7 @@ class Slide
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -59,6 +59,7 @@ class User
'view_type' => 'field',
'view_key' => 'id',
'width' => 105,
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'id',
......@@ -74,6 +75,7 @@ class User
'label' => '用户名',
'view_type' => 'field',
'view_key' => 'username',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -83,6 +85,7 @@ class User
'label' => '昵称',
'view_type' => 'field',
'view_key' => 'nickname',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -92,6 +95,7 @@ class User
'label' => '手机',
'view_type' => 'field',
'view_key' => 'mobile',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -101,6 +105,7 @@ class User
'label' => '邮箱',
'view_type' => 'field',
'view_key' => 'email',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -112,6 +117,7 @@ class User
'view_key' => 'gender',
'view_data_key' => 'name',
'view_data' => lang('common_gender_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -127,6 +133,7 @@ class User
'view_key' => 'status',
'view_data_key' => 'name',
'view_data' => lang('common_user_status_list'),
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -140,6 +147,7 @@ class User
'label' => '所在省',
'view_type' => 'field',
'view_key' => 'province',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -149,6 +157,7 @@ class User
'label' => '所在市',
'view_type' => 'field',
'view_key' => 'city',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -158,6 +167,7 @@ class User
'label' => '详细地址',
'view_type' => 'field',
'view_key' => 'address',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -167,6 +177,7 @@ class User
'label' => '生日',
'view_type' => 'field',
'view_key' => 'birthday_text',
'is_sort' => 1,
'search_config' => [
'form_type' => 'date',
'form_name' => 'birthday',
......@@ -177,6 +188,7 @@ class User
'label' => '可用积分',
'view_type' => 'field',
'view_key' => 'integral',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -185,6 +197,7 @@ class User
'label' => '锁定积分',
'view_type' => 'field',
'view_key' => 'locking_integral',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -193,6 +206,7 @@ class User
'label' => '注册时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -201,6 +215,7 @@ class User
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -62,6 +62,7 @@ class UserAddress
'view_type' => 'module',
'view_key' => 'lib/module/user',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'user_id',
......@@ -72,12 +73,22 @@ class UserAddress
],
],
[
'label' => '别名/联系人',
'view_type' => 'module',
'view_key' => 'useraddress/module/info',
'label' => '别名',
'view_type' => 'field',
'view_key' => 'alias',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
],
],
[
'label' => '联系人',
'view_type' => 'field',
'view_key' => 'name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'form_name' => 'alias|name',
'where_type' => 'like',
],
],
......@@ -85,6 +96,7 @@ class UserAddress
'label' => '联系电话',
'view_type' => 'field',
'view_key' => 'tel',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -94,6 +106,7 @@ class UserAddress
'label' => '所属省',
'view_type' => 'field',
'view_key' => 'province_name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'province',
......@@ -108,17 +121,20 @@ class UserAddress
'label' => '所属市',
'view_type' => 'field',
'view_key' => 'city_name',
'is_sort' => 1,
],
[
'label' => '所属区/县',
'view_type' => 'field',
'view_key' => 'county_name',
'is_sort' => 1,
],
[
'label' => '详细地址',
'view_type' => 'field',
'view_key' => 'address',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -135,6 +151,8 @@ class UserAddress
'view_type' => 'module',
'view_key' => 'useraddress/module/idcard_info',
'grid_size' => 'sm',
'is_sort' => 1,
'sort_field' => 'idcard_number',
'search_config' => [
'form_type' => 'input',
'form_name' => 'idcard_name|idcard_number',
......@@ -145,6 +163,7 @@ class UserAddress
'label' => '是否默认',
'view_type' => 'module',
'view_key' => 'useraddress/module/is_default',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'is_default',
......@@ -159,6 +178,7 @@ class UserAddress
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -167,6 +187,7 @@ class UserAddress
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -66,6 +66,8 @@ class Warehouse
'view_type' => 'module',
'view_key' => 'warehouse/module/info',
'grid_size' => 'sm',
'is_sort' => 1,
'sort_field' => 'name',
'search_config' => [
'form_type' => 'input',
'form_name' => 'name|alias',
......@@ -76,6 +78,7 @@ class Warehouse
'label' => '权重',
'view_type' => 'field',
'view_key' => 'level',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -87,6 +90,7 @@ class Warehouse
'post_url' => MyUrl('admin/warehouse/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -100,6 +104,7 @@ class Warehouse
'label' => '联系人',
'view_type' => 'field',
'view_key' => 'contacts_name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -109,6 +114,7 @@ class Warehouse
'label' => '联系电话',
'view_type' => 'field',
'view_key' => 'contacts_tel',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -118,6 +124,7 @@ class Warehouse
'label' => '所在省',
'view_type' => 'field',
'view_key' => 'province_name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'province',
......@@ -132,6 +139,7 @@ class Warehouse
'label' => '所在市',
'view_type' => 'field',
'view_key' => 'city_name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'city',
......@@ -146,6 +154,7 @@ class Warehouse
'label' => '所在区/县',
'view_type' => 'field',
'view_key' => 'county_name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'county',
......@@ -161,6 +170,7 @@ class Warehouse
'view_type' => 'field',
'view_key' => 'address',
'grid_size' => 'sm',
'is_sort' => 1,
'search_config' => [
'form_type' => 'input',
'where_type' => 'like',
......@@ -176,6 +186,7 @@ class Warehouse
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -184,6 +195,7 @@ class Warehouse
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -65,6 +65,8 @@ class Warehousegoods
'view_type' => 'module',
'view_key' => 'warehousegoods/module/goods',
'grid_size' => 'lg',
'is_sort' => 1,
'sort_field' => 'goods_id',
'search_config' => [
'form_type' => 'input',
'form_name' => 'id',
......@@ -78,6 +80,7 @@ class Warehousegoods
'label' => '仓库',
'view_type' => 'field',
'view_key' => 'warehouse_name',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'form_name' => 'warehouse_id',
......@@ -95,6 +98,7 @@ class Warehousegoods
'post_url' => MyUrl('admin/warehousegoods/statusupdate'),
'is_form_su' => 1,
'align' => 'center',
'is_sort' => 1,
'search_config' => [
'form_type' => 'select',
'where_type' => 'in',
......@@ -108,6 +112,7 @@ class Warehousegoods
'label' => '总库存',
'view_type' => 'field',
'view_key' => 'inventory',
'is_sort' => 1,
'search_config' => [
'form_type' => 'section',
],
......@@ -116,6 +121,7 @@ class Warehousegoods
'label' => '创建时间',
'view_type' => 'field',
'view_key' => 'add_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......@@ -124,6 +130,7 @@ class Warehousegoods
'label' => '更新时间',
'view_type' => 'field',
'view_key' => 'upd_time',
'is_sort' => 1,
'search_config' => [
'form_type' => 'datetime',
],
......
......@@ -72,6 +72,10 @@
</div>
<!-- bottom operate end -->
</form>
<!-- 字段选择 -->
{{include file="public/module/form_fields_select" /}}
{{else /}}
<div class="table-no"><i class="am-icon-warning"></i> {{if empty($form_error)}}动态表格配置有误{{else /}}{{$form_error}}{{/if}}</div>
{{/if}}
......
{{if !isset($form_table['base']['is_fields_sel']) or $form_table['base']['is_fields_sel'] eq 1}}
<div class="am-popup popup-not-title" id="form-table-fields-popup">
<div class="am-popup-inner">
<span data-am-modal-close class="am-close am-close-alt am-icon-times"></span>
<div class="am-popup-bd am-padding-0">
<div class="form-table-fields-select-container">
<div class="am-scrollable-vertical form-table-fields-list-container">
{{if !empty($form_user_fields)}}
<div class="am-alert am-margin-bottom-0">
<p>可点击拖拽调整显示顺序</p>
</div>
<ul class="am-list am-list-static am-list-striped am-margin-bottom-0 form-table-fields-content-container">
{{foreach $form_user_fields as $v}}
<li>
<label class="am-checkbox-inline">
<input type="checkbox" name="form_field_checkbox_value" value="{{$v.label}}" data-am-ucheck {{if isset($v['checked']) and $v['checked'] eq 1}}checked{{/if}} />
<span>{{$v.label}}</span>
</label>
</li>
{{/foreach}}
</ul>
{{else /}}
{{include file="public/not_data" /}}
{{/if}}
</div>
<div class="am-padding-sm am-nbfc form-table-fields-button-container">
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs form-table-field-checkbox-submit" data-value="{{if array_sum(array_column($form_user_fields, 'checked')) gt 0}}1{{else /}}0{{/if}}" data-checked-text="反选" data-not-checked-text="全选">{{if array_sum(array_column($form_user_fields, 'checked')) gt 0}}反选{{else /}}全选{{/if}}</button>
<button type="button" class="am-btn am-btn-warning am-btn-xs am-radius am-margin-left-sm submit-ajax" data-url="{{:MyUrl('admin/formtable/fieldsselectreset')}}" data-id="{{$form_md5_key}}" data-key="md5_key" data-view="reload" data-is-confirm="0">重置</button>
<button type="button" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example am-fr form-table-field-confirm-submit" data-url="{{:MyUrl('admin/formtable/fieldsselectsave')}}" data-am-loading="{loadingText:'处理中...'}">确认</button>
</div>
</div>
</div>
</div>
</div>
{{/if}}
\ No newline at end of file
......@@ -39,46 +39,13 @@
<button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example am-icon-search" data-am-loading="{loadingText:' 搜索中...'}"> 搜索</button>
<!-- 排序数据字段 -->
<input type="hidden" name="fp_order_by_key" value="" />
<input type="hidden" name="fp_order_by_val" value="" />
<input type="hidden" name="fp_order_by_key" value="{{if !empty($form_order_by) and !empty($form_order_by['key'])}}{{$form_order_by.key}}{{/if}}" />
<input type="hidden" name="fp_order_by_val" value="{{if !empty($form_order_by) and !empty($form_order_by['val'])}}{{$form_order_by.val}}{{/if}}" />
{{/if}}
<!-- 字段选择 -->
{{if !isset($form_table['base']['is_fields_sel']) or $form_table['base']['is_fields_sel'] eq 1}}
<div class="am-fr am-nbfc">
<button type="button" class="am-btn am-btn-default am-radius am-btn-xs am-icon-cog" data-am-modal="{target: '#form-table-fields-popup'}"> 设置</button>
<div class="am-popup popup-not-title" id="form-table-fields-popup">
<div class="am-popup-inner">
<span data-am-modal-close class="am-close am-close-alt am-icon-times"></span>
<div class="am-popup-bd am-padding-0">
<div class="form-table-fields-select-container">
<div class="am-scrollable-vertical form-table-fields-list-container">
{{if !empty($form_user_fields)}}
<div class="am-alert am-margin-bottom-0">
<p>可点击拖拽调整显示顺序</p>
</div>
<ul class="am-list am-list-static am-list-striped am-margin-bottom-0 form-table-fields-content-container">
{{foreach $form_user_fields as $v}}
<li>
<label class="am-checkbox-inline">
<input type="checkbox" name="form_field_checkbox_value" value="{{$v.label}}" data-am-ucheck {{if isset($v['checked']) and $v['checked'] eq 1}}checked{{/if}} />
<span>{{$v.label}}</span>
</label>
</li>
{{/foreach}}
</ul>
{{else /}}
{{include file="public/not_data" /}}
{{/if}}
</div>
<div class="am-padding-sm am-nbfc form-table-fields-button-container">
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs form-table-field-checkbox-submit" data-value="{{if array_sum(array_column($form_user_fields, 'checked')) gt 0}}1{{else /}}0{{/if}}" data-checked-text="反选" data-not-checked-text="全选">{{if array_sum(array_column($form_user_fields, 'checked')) gt 0}}反选{{else /}}全选{{/if}}</button>
<button type="button" class="am-btn am-btn-warning am-btn-xs am-radius am-margin-left-sm submit-ajax" data-url="{{:MyUrl('admin/formtable/fieldsselectreset')}}" data-id="{{$form_md5_key}}" data-key="md5_key" data-view="reload" data-is-confirm="0">重置</button>
<button type="button" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example am-fr form-table-field-confirm-submit" data-url="{{:MyUrl('admin/formtable/fieldsselectsave')}}" data-am-loading="{loadingText:'处理中...'}">确认</button>
</div>
</div>
</div>
</div>
</div>
</div>
{{/if}}
\ No newline at end of file
<!-- 基础信息 -->
{{if !empty($module_data)}}
{{if !empty($module_data['name'])}}
<p>{{$module_data.name}}</p>
{{/if}}
{{if !empty($module_data['alias'])}}
<p class="am-badge am-badge-secondary-plain am-radius">{{$module_data.alias}}</p>
{{/if}}
{{/if}}
\ No newline at end of file
......@@ -19,6 +19,10 @@
</ul>
</div>
<div class="am-form-group">
<label>别名<span class="am-form-group-label-tips">选填</span></label>
<input type="text" name="alias" placeholder="别名" minlength="0" maxlength="16" data-validation-message="别名格式最多 16 个字符" class="am-radius" {{if !empty($data['alias'])}} value="{{$data.alias}}"{{/if}} />
</div>
<div class="am-form-group">
<label>姓名<span class="am-form-group-label-tips-must">必填</span></label>
<input type="text" name="name" placeholder="姓名" minlength="2" maxlength="16" data-validation-message="姓名格式 2~16 个字符之间" class="am-radius" {{if !empty($data['name'])}} value="{{$data.name}}"{{/if}} required />
......@@ -42,10 +46,6 @@
<div id="map" data-level="17" class="am-margin-top-xs"></div>
</div>
<div class="am-form-group">
<label>别名<span class="am-form-group-label-tips">选填</span></label>
<input type="text" name="alias" placeholder="别名" minlength="0" maxlength="16" data-validation-message="别名格式最多 16 个字符" class="am-radius" {{if !empty($data['alias'])}} value="{{$data.alias}}"{{/if}} />
</div>
<div class="am-form-group">
<label class="block">是否默认</label>
<input name="is_default" value="1" type="checkbox" data-off-text="否" data-on-text="是" data-size="xs" data-on-color="success" data-off-color="default" data-handle-width="49" data-am-switch {{if isset($data['is_default']) and $data['is_default'] eq 1}}checked="true"{{/if}} />
......
......@@ -28,6 +28,9 @@
</div>
<!-- bottom operate end -->
</form>
<!-- 字段选择 -->
{{include file="public/module/form_fields_select" /}}
{{else /}}
<div class="table-no"><i class="am-icon-warning"></i> {{if empty($form_error)}}动态表格配置有误{{else /}}{{$form_error}}{{/if}}</div>
{{/if}}
......
......@@ -85,6 +85,9 @@
</div>
<!-- bottom operate end -->
</form>
<!-- 字段选择 -->
{{include file="public/module/form_fields_select" /}}
{{else /}}
<div class="table-no"><i class="am-icon-warning"></i> {{if empty($form_error)}}动态表格配置有误{{else /}}{{$form_error}}{{/if}}</div>
{{/if}}
......
{{if !isset($form_table['base']['is_fields_sel']) or $form_table['base']['is_fields_sel'] eq 1}}
<div class="am-popup popup-not-title" id="form-table-fields-popup">
<div class="am-popup-inner">
<span data-am-modal-close class="am-close am-close-alt am-icon-times"></span>
<div class="am-popup-bd am-padding-0">
<div class="form-table-fields-select-container">
<div class="am-scrollable-vertical form-table-fields-list-container">
{{if !empty($form_user_fields)}}
<div class="am-alert am-margin-bottom-0">
<p>可点击拖拽调整显示顺序</p>
</div>
<ul class="am-list am-list-static am-list-striped am-margin-bottom-0 form-table-fields-content-container">
{{foreach $form_user_fields as $v}}
<li>
<label class="am-checkbox-inline">
<input type="checkbox" name="form_field_checkbox_value" value="{{$v.label}}" data-am-ucheck {{if isset($v['checked']) and $v['checked'] eq 1}}checked{{/if}} />
<span>{{$v.label}}</span>
</label>
</li>
{{/foreach}}
</ul>
{{else /}}
{{include file="public/not_data" /}}
{{/if}}
</div>
<div class="am-padding-sm am-nbfc form-table-fields-button-container">
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs form-table-field-checkbox-submit" data-value="{{if array_sum(array_column($form_user_fields, 'checked')) gt 0}}1{{else /}}0{{/if}}" data-checked-text="反选" data-not-checked-text="全选">{{if array_sum(array_column($form_user_fields, 'checked')) gt 0}}反选{{else /}}全选{{/if}}</button>
<button type="button" class="am-btn am-btn-warning am-btn-xs am-radius am-margin-left-sm submit-ajax" data-url="{{:MyUrl('index/formtable/fieldsselectreset')}}" data-id="{{$form_md5_key}}" data-key="md5_key" data-view="reload" data-is-confirm="0">重置</button>
<button type="button" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example am-fr form-table-field-confirm-submit" data-url="{{:MyUrl('index/formtable/fieldsselectsave')}}" data-am-loading="{loadingText:'处理中...'}">确认</button>
</div>
</div>
</div>
</div>
</div>
{{/if}}
\ No newline at end of file
......@@ -39,46 +39,13 @@
<button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example am-icon-search" data-am-loading="{loadingText:' 搜索中...'}"> 搜索</button>
<!-- 排序数据字段 -->
<input type="hidden" name="fp_order_by_key" value="" />
<input type="hidden" name="fp_order_by_val" value="" />
<input type="hidden" name="fp_order_by_key" value="{{if !empty($form_order_by) and !empty($form_order_by['key'])}}{{$form_order_by.key}}{{/if}}" />
<input type="hidden" name="fp_order_by_val" value="{{if !empty($form_order_by) and !empty($form_order_by['val'])}}{{$form_order_by.val}}{{/if}}" />
{{/if}}
<!-- 字段选择 -->
{{if !empty($user) and (!isset($form_table['base']['is_fields_sel']) or $form_table['base']['is_fields_sel'] eq 1)}}
<div class="am-fr am-nbfc">
<button type="button" class="am-btn am-btn-default am-radius am-btn-xs am-icon-cog" data-am-modal="{target: '#form-table-fields-popup'}"> 设置</button>
<div class="am-popup popup-not-title" id="form-table-fields-popup">
<div class="am-popup-inner">
<span data-am-modal-close class="am-close am-close-alt am-icon-times"></span>
<div class="am-popup-bd am-padding-0">
<div class="form-table-fields-select-container">
<div class="am-scrollable-vertical form-table-fields-list-container">
{{if !empty($form_user_fields)}}
<div class="am-alert am-margin-bottom-0">
<p>可点击拖拽调整显示顺序</p>
</div>
<ul class="am-list am-list-static am-list-striped am-margin-bottom-0 form-table-fields-content-container">
{{foreach $form_user_fields as $v}}
<li>
<label class="am-checkbox-inline">
<input type="checkbox" name="form_field_checkbox_value" value="{{$v.label}}" data-am-ucheck {{if isset($v['checked']) and $v['checked'] eq 1}}checked{{/if}} />
<span>{{$v.label}}</span>
</label>
</li>
{{/foreach}}
</ul>
{{else /}}
{{include file="public/not_data" /}}
{{/if}}
</div>
<div class="am-padding-sm am-nbfc form-table-fields-button-container">
<button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs form-table-field-checkbox-submit" data-value="{{if array_sum(array_column($form_user_fields, 'checked')) gt 0}}1{{else /}}0{{/if}}" data-checked-text="反选" data-not-checked-text="全选">{{if array_sum(array_column($form_user_fields, 'checked')) gt 0}}反选{{else /}}全选{{/if}}</button>
<button type="button" class="am-btn am-btn-warning am-btn-xs am-radius am-margin-left-sm submit-ajax" data-url="{{:MyUrl('index/formtable/fieldsselectreset')}}" data-id="{{$form_md5_key}}" data-key="md5_key" data-view="reload" data-is-confirm="0">重置</button>
<button type="button" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example am-fr form-table-field-confirm-submit" data-url="{{:MyUrl('index/formtable/fieldsselectsave')}}" data-am-loading="{loadingText:'处理中...'}">确认</button>
</div>
</div>
</div>
</div>
</div>
</div>
{{/if}}
\ No newline at end of file
......@@ -93,6 +93,9 @@
</div>
<!-- bottom operate end -->
</form>
<!-- 字段选择 -->
{{include file="public/module/form_fields_select" /}}
{{else /}}
<div class="table-no"><i class="am-icon-warning"></i> {{if empty($form_error)}}动态表格配置有误{{else /}}{{$form_error}}{{/if}}</div>
{{/if}}
......
......@@ -34,10 +34,9 @@ class BrandService
*/
public static function BrandList($params = [])
{
$where = empty($params['where']) ? [] : $params['where'];
$field = empty($params['field']) ? '*' : $params['field'];
$order_by = empty($params['order_by']) ? 'sort asc' : trim($params['order_by']);
$where = empty($params['where']) ? [] : $params['where'];
$order_by = empty($params['order_by']) ? 'sort asc,id asc' : trim($params['order_by']);
$m = isset($params['m']) ? intval($params['m']) : 0;
$n = isset($params['n']) ? intval($params['n']) : 10;
......
......@@ -35,10 +35,11 @@ class CustomViewService
{
$where = empty($params['where']) ? [] : $params['where'];
$field = empty($params['field']) ? '*' : $params['field'];
$order_by = empty($params['order_by']) ? 'id desc' : trim($params['order_by']);
$m = isset($params['m']) ? intval($params['m']) : 0;
$n = isset($params['n']) ? intval($params['n']) : 10;
$data = Db::name('CustomView')->field($field)->where($where)->order('id desc')->limit($m, $n)->select();
$data = Db::name('CustomView')->field($field)->where($where)->order($order_by)->limit($m, $n)->select();
if(!empty($data))
{
$common_is_enable_list = lang('common_is_enable_list');
......
......@@ -332,9 +332,22 @@ class GoodsService
$where = empty($params['where']) ? [] : $params['where'];
$field = empty($params['field']) ? 'g.*' : $params['field'];
$order_by = empty($params['order_by']) ? 'g.id desc' : trim($params['order_by']);
$m = isset($params['m']) ? intval($params['m']) : 0;
$n = isset($params['n']) ? intval($params['n']) : 10;
// 商品列表读取前钩子
$hook_name = 'plugins_service_category_goods_list_begin';
Hook::listen($hook_name, [
'hook_name' => $hook_name,
'is_backend' => true,
'params' => &$params,
'where' => &$where,
'field' => &$field,
'order_by' => &$order_by,
'm' => &$m,
'n' => &$n,
]);
$data = Db::name('Goods')->alias('g')->join(['__GOODS_CATEGORY_JOIN__'=>'gci'], 'g.id=gci.goods_id')->field($field)->where($where)->group('g.id')->order($order_by)->limit($m, $n)->select();
// 数据处理
......@@ -812,9 +825,22 @@ class GoodsService
$where = empty($params['where']) ? [] : $params['where'];
$field = empty($params['field']) ? '*' : $params['field'];
$order_by = empty($params['order_by']) ? 'id desc' : trim($params['order_by']);
$m = isset($params['m']) ? intval($params['m']) : 0;
$n = isset($params['n']) ? intval($params['n']) : 10;
// 商品列表读取前钩子
$hook_name = 'plugins_service_goods_list_begin';
Hook::listen($hook_name, [
'hook_name' => $hook_name,
'is_backend' => true,
'params' => &$params,
'where' => &$where,
'field' => &$field,
'order_by' => &$order_by,
'm' => &$m,
'n' => &$n,
]);
$data = Db::name('Goods')->field($field)->where($where)->order($order_by)->limit($m, $n)->select();
return self::GoodsDataHandle($data, $params);
......
......@@ -33,9 +33,10 @@ class LinkService
*/
public static function LinkList($params = [])
{
$field = empty($params['field']) ? '*' : $params['field'];
$where = empty($params['where']) ? [] : $params['where'];
$order_by = 'sort asc,id desc';
$data = Db::name('Link')->where($where)->order($order_by)->select();
$order_by = empty($params['order_by']) ? 'sort asc,id desc' : trim($params['order_by']);
$data = Db::name('Link')->field($field)->where($where)->order($order_by)->select();
if(!empty($data))
{
foreach($data as &$v)
......
......@@ -206,13 +206,14 @@ class NavigationService
*/
public static function NavList($params = [])
{
// 导航条件
// 基础参数
$field = '*';
$where = empty($params['where']) ? [] : $params['where'];
$order_by = empty($params['order_by']) ? 'sort asc,id asc' : $params['order_by'];
// 获取数据
$where1 = $where;
$where1[] = ['pid', '=', 0];
$field = '*';
$order_by = 'sort asc,id asc';
$data = self::NavigationHandle(self::NavDataDealWith(Db::name('Navigation')->field($field)->where($where1)->order($order_by)->select()));
$result = [];
if(!empty($data))
......
......@@ -27,7 +27,7 @@ class PluginsAdminService
public static $plugins_exclude_verification = ['view', 'shopxo', 'www'];
// 排除的文件后缀
private static $exclude_ext = ['.php'];
private static $exclude_ext = ['php'];
/**
* 列表
......@@ -1069,7 +1069,8 @@ php;
$pos = strripos($file, '.');
if($pos !== false)
{
if(in_array(substr($file, $pos), self::$exclude_ext))
$info = pathinfo($file);
if(isset($info['extension']) && in_array($info['extension'], self::$exclude_ext))
{
continue;
}
......
......@@ -33,10 +33,9 @@ class QuickNavService
*/
public static function QuickNavList($params = [])
{
$where = empty($params['where']) ? [] : $params['where'];
$field = empty($params['field']) ? '*' : $params['field'];
$where = empty($params['where']) ? [] : $params['where'];
$order_by = empty($params['order_by']) ? 'sort asc,id asc' : trim($params['order_by']);
$m = isset($params['m']) ? intval($params['m']) : 0;
$n = isset($params['n']) ? intval($params['n']) : 10;
......
......@@ -33,11 +33,11 @@ class SlideService
*/
public static function SlideList($params = [])
{
$where = empty($params['where']) ? [] : $params['where'];
$field = empty($params['field']) ? '*' : $params['field'];
$where = empty($params['where']) ? [] : $params['where'];
$order_by = empty($params['order_by']) ? 'sort asc,id asc' : trim($params['order_by']);
$m = isset($params['m']) ? intval($params['m']) : 0;
$n = isset($params['n']) ? intval($params['n']) : 10;
$order_by = 'sort asc,id asc';
$data = Db::name('Slide')->field($field)->where($where)->order($order_by)->limit($m, $n)->select();
if(!empty($data))
{
......
......@@ -26,7 +26,7 @@ class ThemeService
private static $static_path = 'public'.DS.'static'.DS.'index'.DS;
// 排除的文件后缀
private static $exclude_ext = ['.php'];
private static $exclude_ext = ['php'];
/**
* 获取模板列表
......@@ -160,7 +160,8 @@ class ThemeService
$pos = strripos($file, '.');
if($pos !== false)
{
if(in_array(substr($file, $pos), self::$exclude_ext))
$info = pathinfo($file);
if(isset($info['extension']) && in_array($info['extension'], self::$exclude_ext))
{
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册