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
ab06d98f
authored
Feb 20, 2023
by
CnChunfeng
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'dev' into 'master'
Dev See merge request
!3
parents
7e803dcf
d6fa7b45
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
65 additions
and
0 deletions
app/Console/Commands/CreateNotice.php
app/Http/Controllers/MessageController.php
app/Logic/SystemNoticeLogic.php
public/js/Message/systemBulletin.js
resources/views/message/systemBulletin.blade.php
resources/views/message/systemPreaching.blade.php
resources/views/message/systemUpdate.blade.php
app/Console/Commands/CreateNotice.php
View file @
ab06d98f
...
@@ -82,6 +82,7 @@ class CreateNotice extends Command
...
@@ -82,6 +82,7 @@ class CreateNotice extends Command
$saveData
[
'is_send'
]
=
'未发送'
;
$saveData
[
'is_send'
]
=
'未发送'
;
$saveData
[
'create_time'
]
=
time
();
$saveData
[
'create_time'
]
=
time
();
$saveData
[
'send_user'
]
=
$sendUser
;
$saveData
[
'send_user'
]
=
$sendUser
;
$saveData
[
'system_name'
]
=
$systemName
;
$tbodyContent
=
''
;
$tbodyContent
=
''
;
...
...
app/Http/Controllers/MessageController.php
View file @
ab06d98f
...
@@ -692,8 +692,12 @@ class MessageController extends Controller
...
@@ -692,8 +692,12 @@ class MessageController extends Controller
// 系统更新管理
// 系统更新管理
private
function
systemUpdate
(
Request
$request
,
$id
,
$viewid
)
private
function
systemUpdate
(
Request
$request
,
$id
,
$viewid
)
{
{
$perms_arr
=
[
'systemupdate'
];
$res_perm
=
$this
->
getUserPerms
(
$request
,
$perms_arr
);
$data
=
[
$data
=
[
'id'
=>
$id
,
'id'
=>
$id
,
'have_perm'
=>
$res_perm
,
'user'
=>
SystemNoticeLogic
::
getAllUser
()
'user'
=>
SystemNoticeLogic
::
getAllUser
()
];
];
return
view
(
'common'
,
$data
);
return
view
(
'common'
,
$data
);
...
@@ -702,8 +706,11 @@ class MessageController extends Controller
...
@@ -702,8 +706,11 @@ class MessageController extends Controller
//系统宣讲管理
//系统宣讲管理
private
function
systemPreaching
(
Request
$request
,
$id
,
$viewid
)
private
function
systemPreaching
(
Request
$request
,
$id
,
$viewid
)
{
{
$perms_arr
=
[
'systempreaching'
];
$res_perm
=
$this
->
getUserPerms
(
$request
,
$perms_arr
);
$data
=
[
$data
=
[
'id'
=>
$id
,
'id'
=>
$id
,
'have_perm'
=>
$res_perm
,
'user'
=>
SystemNoticeLogic
::
getAllUser
()
'user'
=>
SystemNoticeLogic
::
getAllUser
()
];
];
return
view
(
'common'
,
$data
);
return
view
(
'common'
,
$data
);
...
@@ -712,7 +719,10 @@ class MessageController extends Controller
...
@@ -712,7 +719,10 @@ class MessageController extends Controller
//系统公告管理
//系统公告管理
private
function
systemBulletin
(
Request
$request
,
$id
,
$viewid
)
private
function
systemBulletin
(
Request
$request
,
$id
,
$viewid
)
{
{
$perms_arr
=
[
'systembulletin'
];
$res_perm
=
$this
->
getUserPerms
(
$request
,
$perms_arr
);
$data
=
[
$data
=
[
'have_perm'
=>
$res_perm
,
'id'
=>
$id
,
'id'
=>
$id
,
];
];
return
view
(
'common'
,
$data
);
return
view
(
'common'
,
$data
);
...
...
app/Logic/SystemNoticeLogic.php
View file @
ab06d98f
...
@@ -83,6 +83,7 @@ class SystemNoticeLogic
...
@@ -83,6 +83,7 @@ class SystemNoticeLogic
$data
=
self
::
setSystemInfo
(
$data
);
$data
=
self
::
setSystemInfo
(
$data
);
unset
(
$data
[
'_url'
]);
unset
(
$data
[
'_url'
]);
unset
(
$data
[
'file'
]);
$systemUpdateModel
=
(
new
SystemUpdateModel
());
$systemUpdateModel
=
(
new
SystemUpdateModel
());
...
...
public/js/Message/systemBulletin.js
View file @
ab06d98f
...
@@ -19,6 +19,7 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate','laye
...
@@ -19,6 +19,7 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate','laye
{
field
:
'smbn_id'
,
title
:
'序号'
,
align
:
'center'
,
width
:
100
},
{
field
:
'smbn_id'
,
title
:
'序号'
,
align
:
'center'
,
width
:
100
},
{
field
:
'create_time'
,
title
:
'创建时间'
,
align
:
'center'
,
width
:
250
},
{
field
:
'create_time'
,
title
:
'创建时间'
,
align
:
'center'
,
width
:
250
},
{
field
:
'title'
,
title
:
'公告标题'
,
align
:
'center'
,
width
:
250
},
{
field
:
'title'
,
title
:
'公告标题'
,
align
:
'center'
,
width
:
250
},
{
field
:
'system_name'
,
title
:
'系统名称'
,
align
:
'center'
,
width
:
250
},
{
field
:
'is_send'
,
title
:
'状态'
,
align
:
'center'
,
width
:
150
},
{
field
:
'is_send'
,
title
:
'状态'
,
align
:
'center'
,
width
:
150
},
{
field
:
'active'
,
toolbar
:
'#active'
,
title
:
'操作'
,
align
:
'center'
,
width
:
150
,
fixed
:
'right'
}
{
field
:
'active'
,
toolbar
:
'#active'
,
title
:
'操作'
,
align
:
'center'
,
width
:
150
,
fixed
:
'right'
}
]]
]]
...
...
resources/views/message/systemBulletin.blade.php
View file @
ab06d98f
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
}
}
</style>
</style>
@if($have_perm)
<form
class=
"layui-form layui-box"
method=
"post"
>
<form
class=
"layui-form layui-box"
method=
"post"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
...
@@ -105,6 +107,21 @@
...
@@ -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 @
ab06d98f
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
}
}
</style>
</style>
@if($have_perm)
<form
class=
"layui-form layui-box"
method=
"post"
>
<form
class=
"layui-form layui-box"
method=
"post"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
...
@@ -200,6 +202,21 @@
...
@@ -200,6 +202,21 @@
</form>
</form>
</div>
</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 @
ab06d98f
...
@@ -11,6 +11,8 @@
...
@@ -11,6 +11,8 @@
</style>
</style>
@if($have_perm)
<form
class=
"layui-form layui-box"
>
<form
class=
"layui-form layui-box"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
...
@@ -251,6 +253,22 @@
...
@@ -251,6 +253,22 @@
</div>
</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