99 * @contact 4213509@qq.com
1010 * @license https://github.com/hyperf-plus/admin/blob/master/LICENSE
1111 */
12-
1312namespace HPlus \Admin \Controller ;
1413
1514use HPlus \Admin \Model \Admin \OperationLog ;
2019use HPlus \UI \Components \Grid \Avatar ;
2120use HPlus \UI \Components \Grid \Route ;
2221use HPlus \UI \Components \Grid \Tag ;
23- use HPlus \UI \Components \Widgets \Button ;
2422use HPlus \UI \Components \Widgets \Dialog ;
2523use HPlus \UI \Components \Widgets \Markdown ;
2624use HPlus \UI \Form ;
@@ -60,9 +58,9 @@ protected function grid()
6058 $ dialog ->title ('查看请求头信息 ' );
6159 $ dialog ->slot (function (Content $ content ) use ($ row ) {
6260 $ code = "```json \n" ;
63- $ code .= json_encode ($ row ->header , JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT );
61+ $ code .= json_encode ($ row ->header , JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT );
6462 $ code .= "\n``` " ;
65- $ content ->body (Markdown::make ($ code )->style (" height:60vh; " ));
63+ $ content ->body (Markdown::make ($ code )->style (' height:60vh; ' ));
6664 });
6765 });
6866 $ actions ->add ($ action );
@@ -73,9 +71,9 @@ protected function grid()
7371 $ dialog ->title ('查看提交参数信息 ' );
7472 $ dialog ->slot (function (Content $ content ) use ($ row ) {
7573 $ code = "```json \n" ;
76- $ code .= json_encode ($ row ->request , JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT );
74+ $ code .= json_encode ($ row ->request , JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT );
7775 $ code .= "\n``` " ;
78- $ content ->body (Markdown::make ($ code )->style (" height:60vh; " ));
76+ $ content ->body (Markdown::make ($ code )->style (' height:60vh; ' ));
7977 });
8078 });
8179 $ actions ->add ($ action );
@@ -87,9 +85,9 @@ protected function grid()
8785 $ dialog ->title ('查看响应结果 ' );
8886 $ dialog ->slot (function (Content $ content ) use ($ row ) {
8987 $ code = "```json \n" ;
90- $ code .= json_encode ($ row ->result , JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT );
88+ $ code .= json_encode ($ row ->result , JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT );
9189 $ code .= "\n``` " ;
92- $ content ->body (Markdown::make ($ code )->style (" height:60vh; " ));
90+ $ content ->body (Markdown::make ($ code )->style (' height:60vh; ' ));
9391 });
9492 });
9593 $ actions ->add ($ action );
@@ -100,7 +98,7 @@ protected function grid()
10098 });
10199
102100 $ grid ->filter (function (Grid \Filter $ filter ) {
103- $ user_id = (int )request ('user_id ' );
101+ $ user_id = (int ) request ('user_id ' );
104102 $ filter ->equal ('user_id ' )->component (Select::make ($ user_id )->placeholder ('请选择用户 ' )->options (function () {
105103 $ user_ids = OperationLog::query ()->groupBy ('user_id ' )->get (['user_id ' ])->pluck ('user_id ' )->toArray ();
106104 /*@var Model $userModel */
0 commit comments