Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-collect
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
汪伟伟
data-collect
Commits
30a1c57d
Commit
30a1c57d
authored
Jan 18, 2024
by
汪伟伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳转
parent
29883a18
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
app/Admin/Controllers/TaskReceiveController.php
+2
-2
app/Admin/Controllers/TasksApproveController.php
+2
-2
app/Admin/routes.php
+2
-0
app/Models/Task.php
+1
-0
No files found.
app/Admin/Controllers/TaskReceiveController.php
View file @
30a1c57d
...
...
@@ -286,7 +286,7 @@ class TaskReceiveController extends AdminController
$no
=
\App\Models\TasksReceive
::
query
()
->
where
(
'id'
,
'!='
,
$this
->
id
)
->
where
(
'status'
,
0
)
->
orderBy
(
'created_at'
)
->
orderBy
(
'created_at'
,
'desc'
)
->
first
();
if
(
$no
){
$url
=
'/receives/'
.
$no
->
id
.
'/edit'
;
...
...
@@ -294,7 +294,7 @@ class TaskReceiveController extends AdminController
$url
=
'/receives'
;
}
// var_dump($url);
$form
->
response
(
)
->
redirect
(
$url
);
return
$form
->
response
()
->
success
(
'保存成功'
)
->
redirect
(
$url
);
}
});
...
...
app/Admin/Controllers/TasksApproveController.php
View file @
30a1c57d
...
...
@@ -30,8 +30,8 @@ class TasksApproveController extends AdminController
$tab
=
Tab
::
make
();
// $tab->add('选项卡1', view('...'));
$tab
->
add
(
'未审核'
,
$this
->
getData
(
0
),
tru
e
,
'a'
);
$tab
->
add
(
'已审核'
,
$this
->
getData
(
1
),
tru
e
,
'b'
);
$tab
->
add
(
'未审核'
,
$this
->
getData
(
0
),
fals
e
,
'a'
);
$tab
->
add
(
'已审核'
,
$this
->
getData
(
1
),
fals
e
,
'b'
);
return
$tab
;
...
...
app/Admin/routes.php
View file @
30a1c57d
...
...
@@ -26,6 +26,8 @@ Route::group([
$router
->
resource
(
'receives'
,
'TaskReceiveController'
);
$router
->
resource
(
'approves'
,
'TasksApproveController'
);
$router
->
resource
(
'orders'
,
'TasksOrderController'
);
...
...
app/Models/Task.php
View file @
30a1c57d
...
...
@@ -6,6 +6,7 @@ use Dcat\Admin\Traits\HasDateTimeFormatter;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
Illuminate\Notifications\Notifiable
;
class
Task
extends
Model
...
...
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