Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
李洋
/
消息系统
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d6fa7b45
authored
Feb 20, 2023
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改权限
parent
b14dea9a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
0 deletions
app/Http/Controllers/MessageController.php
resources/views/message/systemBulletin.blade.php
resources/views/message/systemPreaching.blade.php
resources/views/message/systemUpdate.blade.php
app/Http/Controllers/MessageController.php
View file @
d6fa7b45
...
...
@@ -692,8 +692,12 @@ class MessageController extends Controller
// 系统更新管理
private
function
systemUpdate
(
Request
$request
,
$id
,
$viewid
)
{
$perms_arr
=
[
'systemupdate'
];
$res_perm
=
$this
->
getUserPerms
(
$request
,
$perms_arr
);
$data
=
[
'id'
=>
$id
,
'have_perm'
=>
$res_perm
,
'user'
=>
SystemNoticeLogic
::
getAllUser
()
];
return
view
(
'common'
,
$data
);
...
...
@@ -702,8 +706,11 @@ class MessageController extends Controller
//系统宣讲管理
private
function
systemPreaching
(
Request
$request
,
$id
,
$viewid
)
{
$perms_arr
=
[
'systempreaching'
];
$res_perm
=
$this
->
getUserPerms
(
$request
,
$perms_arr
);
$data
=
[
'id'
=>
$id
,
'have_perm'
=>
$res_perm
,
'user'
=>
SystemNoticeLogic
::
getAllUser
()
];
return
view
(
'common'
,
$data
);
...
...
@@ -712,7 +719,10 @@ class MessageController extends Controller
//系统公告管理
private
function
systemBulletin
(
Request
$request
,
$id
,
$viewid
)
{
$perms_arr
=
[
'systembulletin'
];
$res_perm
=
$this
->
getUserPerms
(
$request
,
$perms_arr
);
$data
=
[
'have_perm'
=>
$res_perm
,
'id'
=>
$id
,
];
return
view
(
'common'
,
$data
);
...
...
resources/views/message/systemBulletin.blade.php
View file @
d6fa7b45
...
...
@@ -10,6 +10,8 @@
}
</style>
@if($have_perm)
<form
class=
"layui-form layui-box"
method=
"post"
>
<div
class=
"layui-form-item"
>
...
...
@@ -105,6 +107,21 @@
@else
<div
style=
"text-align: center"
>
<label
style=
"margin-top: 30px"
>
对不起,您没有权限查看此页面
</label>
<div>
@if($_SERVER['HTTP_HOST'] === Config('msgconfig.domain_local'))
<a
href=
"{{ Config('msgconfig.perm_domain_local').'/page/business/'.Config('msgconfig.perm_bid_local').'/request/template_create' }}"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
@elseif ($_SERVER['HTTP_HOST'] === Config('msgconfig.domain_sz'))
<a
href=
"{{ Config('msgconfig.perm_domain_sz').'/page/business/'.Config('msgconfig.perm_bid_sz').'/request/template_create' }}"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
@elseif ($_SERVER['HTTP_HOST'] === Config('msgconfig.domain_release'))
<a
href=
"{{ Config('msgconfig.perm_domain_release').'/page/business/'.Config('msgconfig.perm_bid_release').'/request/template_create' }}"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
@endif
</div>
</div>
@endif
...
...
resources/views/message/systemPreaching.blade.php
View file @
d6fa7b45
...
...
@@ -10,6 +10,8 @@
}
</style>
@if($have_perm)
<form
class=
"layui-form layui-box"
method=
"post"
>
<div
class=
"layui-form-item"
>
...
...
@@ -200,6 +202,21 @@
</form>
</div>
@else
<div
style=
"text-align: center"
>
<label
style=
"margin-top: 30px"
>
对不起,您没有权限查看此页面
</label>
<div>
@if($_SERVER['HTTP_HOST'] === Config('msgconfig.domain_local'))
<a
href=
"{{ Config('msgconfig.perm_domain_local').'/page/business/'.Config('msgconfig.perm_bid_local').'/request/template_create' }}"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
@elseif ($_SERVER['HTTP_HOST'] === Config('msgconfig.domain_sz'))
<a
href=
"{{ Config('msgconfig.perm_domain_sz').'/page/business/'.Config('msgconfig.perm_bid_sz').'/request/template_create' }}"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
@elseif ($_SERVER['HTTP_HOST'] === Config('msgconfig.domain_release'))
<a
href=
"{{ Config('msgconfig.perm_domain_release').'/page/business/'.Config('msgconfig.perm_bid_release').'/request/template_create' }}"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
@endif
</div>
</div>
@endif
...
...
resources/views/message/systemUpdate.blade.php
View file @
d6fa7b45
...
...
@@ -11,6 +11,8 @@
</style>
@if($have_perm)
<form
class=
"layui-form layui-box"
>
<div
class=
"layui-form-item"
>
...
...
@@ -251,6 +253,22 @@
</div>
@else
<div
style=
"text-align: center"
>
<label
style=
"margin-top: 30px"
>
对不起,您没有权限查看此页面
</label>
<div>
@if($_SERVER['HTTP_HOST'] === Config('msgconfig.domain_local'))
<a
href=
"{{ Config('msgconfig.perm_domain_local').'/page/business/'.Config('msgconfig.perm_bid_local').'/request/template_create' }}"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
@elseif ($_SERVER['HTTP_HOST'] === Config('msgconfig.domain_sz'))
<a
href=
"{{ Config('msgconfig.perm_domain_sz').'/page/business/'.Config('msgconfig.perm_bid_sz').'/request/template_create' }}"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
@elseif ($_SERVER['HTTP_HOST'] === Config('msgconfig.domain_release'))
<a
href=
"{{ Config('msgconfig.perm_domain_release').'/page/business/'.Config('msgconfig.perm_bid_release').'/request/template_create' }}"
target=
"_blank"
class=
"btn btn-primary"
>
申请权限
</a>
@endif
</div>
</div>
@endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment