generated from liutk/owl-admin-base
添加网站管理
parent
2c1ef32db1
commit
1fb02f9479
|
|
@ -45,8 +45,8 @@ class Ad extends Model
|
|||
{
|
||||
return [
|
||||
self::TYPE_WEB => '网页跳转',
|
||||
self::TYPE_APP => '应用跳转',
|
||||
self::TYPE_MINI => '小程序跳转',
|
||||
// self::TYPE_APP => '应用跳转',
|
||||
// self::TYPE_MINI => '小程序跳转',
|
||||
self::TYPE_OFF => '无跳转',
|
||||
];
|
||||
}
|
||||
|
|
@ -56,22 +56,12 @@ class Ad extends Model
|
|||
return [
|
||||
self::TYPE_OFF => "<span class='label'>无跳转</span>",
|
||||
self::TYPE_WEB => "<span class='label label-info'>网页跳转</span>",
|
||||
self::TYPE_APP => "<span class='label label-warning'>应用跳转</span>",
|
||||
self::TYPE_MINI => "<span class='label label-green'>小程序跳转</span>",
|
||||
// self::TYPE_APP => "<span class='label label-warning'>应用跳转</span>",
|
||||
// self::TYPE_MINI => "<span class='label label-green'>小程序跳转</span>",
|
||||
'*'=>'其他:${jump_type}'
|
||||
];
|
||||
}
|
||||
|
||||
public static function typeMapLabel()
|
||||
{
|
||||
return [
|
||||
self::TYPE_IN => "<span class='label label-info'>入住缴费</span>",
|
||||
self::TYPE_CONTINUE => "<span class='label label-warning'>续住缴费</span>",
|
||||
self::TYPE_EXIT => "<span class='label label-danger'>离开结算</span>",
|
||||
'*'=>'其他:${live_in}'
|
||||
];
|
||||
}
|
||||
|
||||
public function scopeShow(){
|
||||
$q->where('is_enable', true)->where('published_at', '>=', now());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ class AdminMenuSeeder extends Seeder
|
|||
{
|
||||
//
|
||||
$menus = [
|
||||
['title' => 'index', 'icon' => 'line-md:home-twotone-alt', 'url' => '/index', 'is_home'=>1, 'order'=>1],
|
||||
['title' => 'admin_system', 'icon' => 'material-symbols:settings-outline', 'url' => '/system', 'order'=>2,
|
||||
['title' => 'index', 'icon' => 'line-md:home-twotone-alt', 'url' => '/index', 'is_home'=>1, 'order'=>0],
|
||||
['title' => 'admin_system', 'icon' => 'material-symbols:settings-outline', 'url' => '/system', 'order'=>1,
|
||||
'children' => [
|
||||
['title' => 'admin_users', 'icon' => 'ph:user-gear', 'url' => '/system/admin_users', 'order'=>1],
|
||||
['title' => 'admin_roles', 'icon' => 'carbon:user-role', 'url' => '/system/admin_roles', 'order'=>2],
|
||||
|
|
@ -30,7 +30,14 @@ class AdminMenuSeeder extends Seeder
|
|||
['title' => 'keywords', 'icon' => 'ph:codesandbox-logo-light', 'url' => '/system/keywords', 'order'=>6],//字典管理
|
||||
],
|
||||
],
|
||||
['title' => 'data_content', 'icon' => 'ph:codesandbox-logo-light', 'url' => '', 'order'=>3,
|
||||
|
||||
['title' => 'web_content', 'icon' => 'ph:codesandbox-logo-light', 'url' => '/web_content', 'order'=>2,//网站管理
|
||||
'children' => [
|
||||
['title'=>'ads', 'icon'=>'lets-icons:img-box','url'=>'/ads', 'order'=>0],
|
||||
|
||||
]
|
||||
],
|
||||
['title' => 'data_content', 'icon' => 'ph:codesandbox-logo-light', 'url' => '/data_content', 'order'=>3, //数据管理
|
||||
'children' =>[
|
||||
//财务报表类型,档案类型,部门管理,地区类型,社别管理,小区管理,楼栋管理,户籍类型,民族管理,政治面貌,文化程度,机构管理,口头纠纷类型,卫生检查类型,图书类型,企业地区管理,收支情况类型,福利类型,工种管理
|
||||
['title' => 'financial_cate', 'icon' => 'tabler:zoom-money', 'url' => '/financial_cate?parent_name=financial_cate&has_owner=0', 'order'=>0],//财务报表类型
|
||||
|
|
@ -52,10 +59,6 @@ class AdminMenuSeeder extends Seeder
|
|||
['title' => 'money_cate', 'icon' => 'streamline:subscription-cashflow', 'url' => '/money_cate?parent_name=money_cate&has_owner=0', 'order'=>16],//收支情况类型
|
||||
['title' => 'welfare_cate', 'icon' => 'material-symbols:redeem-rounded', 'url' => '/welfare_cate?parent_name=welfare_cate&has_owner=0', 'order'=>17],//福利类型
|
||||
['title' => 'job_cate', 'icon' => 'gravity-ui:person-worker', 'url' => '/job_cate?parent_name=job_cate&has_owner=0', 'order'=>18],//工种管理
|
||||
|
||||
|
||||
// ['title'=>'articles', 'icon'=>'ic:outline-article','url'=>'/articles', 'order'=>1],
|
||||
// ['title'=>'ads', 'icon'=>'lets-icons:img-box','url'=>'/ads', 'order'=>2],
|
||||
]
|
||||
]
|
||||
];
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ return [
|
|||
'admin_menu' => '菜单',
|
||||
'admin_setting' => '设置',
|
||||
'keywords' => '数据字典',
|
||||
'web_content' => '内容管理',
|
||||
'web_content' => '网站管理',
|
||||
'articles' => '文章管理',
|
||||
'ads' => '广告管理',
|
||||
'ads' => '海报管理',
|
||||
'data_content' => '数据管理',
|
||||
'financial_cate' => '财务报表类型',
|
||||
'file_cate' => '档案类型',
|
||||
|
|
|
|||
Loading…
Reference in New Issue