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
b6a22a60
authored
Dec 23, 2025
by
gongyang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
提交代码
parent
00c32add
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
app/Http/Controllers/NoticeController.php
app/Services/ActionLogService.php
public/js/Message/MessageList.js
app/Http/Controllers/NoticeController.php
View file @
b6a22a60
...
@@ -61,10 +61,8 @@ class NoticeController extends Controller
...
@@ -61,10 +61,8 @@ class NoticeController extends Controller
$obj_id
=
$request
->
input
(
'obj_id'
);
$obj_id
=
$request
->
input
(
'obj_id'
);
$act_type
=
$request
->
input
(
'act_type'
);
$act_type
=
$request
->
input
(
'act_type'
);
$act_types
=
(
$act_type
)
?
[
$act_type
]
:
[];
$act_types
=
(
$act_type
)
?
[
$act_type
]
:
[];
$data
=
[
"list"
=>
ActionLogService
::
getLogsByObjId
(
$obj_type
,
$obj_id
,
$act_types
)
return
$this
->
codeExport
(
0
,
'保存成功'
,
ActionLogService
::
getLogsByObjId
(
$obj_type
,
$obj_id
,
$act_types
));
];
return
$this
->
codeExport
(
0
,
'保存成功'
,
$data
);
}
}
...
...
app/Services/ActionLogService.php
View file @
b6a22a60
...
@@ -158,6 +158,7 @@ class ActionLogService{
...
@@ -158,6 +158,7 @@ class ActionLogService{
$create_uids
=
array_column
(
$action_logs
,
'act_uid'
);
$create_uids
=
array_column
(
$action_logs
,
'act_uid'
);
$cms_user_name_map
=
self
::
dataDecode
(
$create_uids
);
$cms_user_name_map
=
self
::
dataDecode
(
$create_uids
);
foreach
(
$action_logs
as
&
$log
)
{
foreach
(
$action_logs
as
&
$log
)
{
$log
[
'content'
]
=
json_decode
(
$log
[
'log_data'
],
true
);
$log
[
'log_data'
]
=
self
::
dataDecode
(
$log
[
'log_data'
]);
$log
[
'log_data'
]
=
self
::
dataDecode
(
$log
[
'log_data'
]);
$log
[
'create_time'
]
=
empty
(
$log
[
'create_time'
])
?
''
:
date
(
'Y-m-d H:i:s'
,
$log
[
'create_time'
]);
$log
[
'create_time'
]
=
empty
(
$log
[
'create_time'
])
?
''
:
date
(
'Y-m-d H:i:s'
,
$log
[
'create_time'
]);
}
}
...
...
public/js/Message/MessageList.js
View file @
b6a22a60
...
@@ -229,7 +229,7 @@ layui.use(['form', 'table', 'laydate', 'layedit'], function () {
...
@@ -229,7 +229,7 @@ layui.use(['form', 'table', 'laydate', 'layedit'], function () {
page
:
false
,
page
:
false
,
where
:
{
where
:
{
obj_type
:
100
,
obj_type
:
100
,
obj_id
:
data
.
id
obj_id
:
data
.
business_notice_
id
},
},
cols
:
[[
cols
:
[[
{
type
:
'numbers'
,
title
:
'序号'
},
{
type
:
'numbers'
,
title
:
'序号'
},
...
...
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