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
5040b107
Commit
5040b107
authored
Jan 18, 2024
by
汪伟伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
53c88ebb
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
34 deletions
+11
-34
app/Admin/Controllers/AlreadyApproveController.php
+0
-8
app/Admin/Controllers/AlreadyDoneTaskController.php
+0
-3
app/Admin/Controllers/CreateOrderController.php
+0
-8
app/Admin/Controllers/NoDoneTaskController.php
+0
-1
app/Admin/Controllers/TaskController.php
+0
-2
app/Admin/Controllers/TasksApproveController.php
+11
-7
app/Admin/Controllers/TasksOrderController.php
+0
-5
No files found.
app/Admin/Controllers/AlreadyApproveController.php
View file @
5040b107
...
@@ -6,18 +6,10 @@ use App\Admin\Extensions\Tools\NotPassAction;
...
@@ -6,18 +6,10 @@ use App\Admin\Extensions\Tools\NotPassAction;
use
App\Admin\Extensions\Tools\PassAction
;
use
App\Admin\Extensions\Tools\PassAction
;
use
App\Admin\Repositories\TasksApprove
;
use
App\Admin\Repositories\TasksApprove
;
use
App\Admin\Services\CityAreaService
;
use
App\Admin\Services\CityAreaService
;
use
App\Models\Task
;
use
Dcat\Admin\Actions\Action
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Http\Controllers\Dashboard
;
use
Dcat\Admin\Layout\Column
;
use
Dcat\Admin\Layout\Content
;
use
Dcat\Admin\Layout\Row
;
use
Dcat\Admin\Show
;
use
Dcat\Admin\Show
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Widgets\Tab
;
use
SuperEggs\DcatDistpicker\DcatDistpickerHelper
;
class
AlreadyApproveController
extends
AdminController
class
AlreadyApproveController
extends
AdminController
{
{
...
...
app/Admin/Controllers/AlreadyDoneTaskController.php
View file @
5040b107
...
@@ -5,9 +5,6 @@ namespace App\Admin\Controllers;
...
@@ -5,9 +5,6 @@ namespace App\Admin\Controllers;
use
App\Admin\Extensions\Tools\BackAction
;
use
App\Admin\Extensions\Tools\BackAction
;
use
App\Admin\Repositories\TasksReceive
;
use
App\Admin\Repositories\TasksReceive
;
use
App\Admin\Services\CityAreaService
;
use
App\Admin\Services\CityAreaService
;
use
App\Models\TasksApprove
;
use
App\Models\TasksCollect
;
use
Dcat\Admin\Actions\Action
;
use
Dcat\Admin\Admin
;
use
Dcat\Admin\Admin
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Grid
;
...
...
app/Admin/Controllers/CreateOrderController.php
View file @
5040b107
...
@@ -3,19 +3,11 @@
...
@@ -3,19 +3,11 @@
namespace
App\Admin\Controllers
;
namespace
App\Admin\Controllers
;
use
App\Admin\Extensions\Tools\CreateSettlementOrder
;
use
App\Admin\Extensions\Tools\CreateSettlementOrder
;
use
App\Admin\Extensions\Tools\ReturnBack
;
use
App\Admin\Extensions\Tools\UserConfirmOrder
;
use
App\Admin\Repositories\TasksReceive
;
use
App\Admin\Repositories\TasksReceive
;
use
App\Admin\Services\CityAreaService
;
use
App\Admin\Services\CityAreaService
;
use
App\Models\AdminUser
;
use
App\Models\AdminUser
;
use
App\Models\TasksOrder
;
use
Dcat\Admin\Admin
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Layout\Content
;
use
Dcat\Admin\Show
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Widgets\Tab
;
class
CreateOrderController
extends
AdminController
class
CreateOrderController
extends
AdminController
{
{
...
...
app/Admin/Controllers/NoDoneTaskController.php
View file @
5040b107
...
@@ -7,7 +7,6 @@ use App\Admin\Repositories\TasksReceive;
...
@@ -7,7 +7,6 @@ use App\Admin\Repositories\TasksReceive;
use
App\Admin\Services\CityAreaService
;
use
App\Admin\Services\CityAreaService
;
use
App\Models\TasksApprove
;
use
App\Models\TasksApprove
;
use
App\Models\TasksCollect
;
use
App\Models\TasksCollect
;
use
Dcat\Admin\Actions\Action
;
use
Dcat\Admin\Admin
;
use
Dcat\Admin\Admin
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Grid
;
...
...
app/Admin/Controllers/TaskController.php
View file @
5040b107
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
namespace
App\Admin\Controllers
;
namespace
App\Admin\Controllers
;
use
App\Admin\Extensions\Tools\BatchReceiveAction
;
use
App\Admin\Extensions\Tools\BatchReceiveAction
;
use
App\Admin\Extensions\Tools\CreateSettlementOrder
;
use
App\Admin\Extensions\Tools\ReceiveAction
;
use
App\Admin\Extensions\Tools\ReceiveAction
;
use
App\Admin\Repositories\Task
;
use
App\Admin\Repositories\Task
;
use
App\Admin\Services\CityAreaService
;
use
App\Admin\Services\CityAreaService
;
...
@@ -15,7 +14,6 @@ use Dcat\Admin\Layout\Content;
...
@@ -15,7 +14,6 @@ use Dcat\Admin\Layout\Content;
use
Dcat\Admin\Show
;
use
Dcat\Admin\Show
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Auth
;
class
TaskController
extends
AdminController
class
TaskController
extends
AdminController
...
...
app/Admin/Controllers/TasksApproveController.php
View file @
5040b107
...
@@ -6,18 +6,13 @@ use App\Admin\Extensions\Tools\NotPassAction;
...
@@ -6,18 +6,13 @@ use App\Admin\Extensions\Tools\NotPassAction;
use
App\Admin\Extensions\Tools\PassAction
;
use
App\Admin\Extensions\Tools\PassAction
;
use
App\Admin\Repositories\TasksApprove
;
use
App\Admin\Repositories\TasksApprove
;
use
App\Admin\Services\CityAreaService
;
use
App\Admin\Services\CityAreaService
;
use
App\Models\Task
;
use
Dcat\Admin\Actions\Action
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Http\Controllers\Dashboard
;
use
Dcat\Admin\Layout\Column
;
use
Dcat\Admin\Layout\Column
;
use
Dcat\Admin\Layout\Content
;
use
Dcat\Admin\Layout\Content
;
use
Dcat\Admin\Layout\Row
;
use
Dcat\Admin\Layout\Row
;
use
Dcat\Admin\Show
;
use
Dcat\Admin\Show
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Widgets\Tab
;
use
SuperEggs\DcatDistpicker\DcatDistpickerHelper
;
class
TasksApproveController
extends
AdminController
class
TasksApproveController
extends
AdminController
{
{
...
@@ -144,7 +139,8 @@ class TasksApproveController extends AdminController
...
@@ -144,7 +139,8 @@ class TasksApproveController extends AdminController
// dd($taskIds);
// dd($taskIds);
return
Grid
::
make
(
TasksApprove
::
with
([
'task'
,
'collects'
,
'user'
]),
function
(
Grid
$grid
)
{
$model
=
TasksApprove
::
with
([
'task'
,
'collects'
,
'user'
]);
return
Grid
::
make
(
$model
,
function
(
Grid
$grid
)
{
$grid
->
model
()
->
where
(
'status'
,
0
)
->
orderBy
(
'task_id'
,
'desc'
);
$grid
->
model
()
->
where
(
'status'
,
0
)
->
orderBy
(
'task_id'
,
'desc'
);
// 在 display 回调中使用
// 在 display 回调中使用
...
@@ -166,7 +162,7 @@ class TasksApproveController extends AdminController
...
@@ -166,7 +162,7 @@ class TasksApproveController extends AdminController
return
$val
;
return
$val
;
}
}
});
});
$grid
->
column
(
'task.price'
,
'单价'
);
$grid
->
column
(
'task.price'
,
'单价'
)
->
help
(
'dsdds'
)
;
$grid
->
column
(
'collects.value'
,
'指标值'
);
$grid
->
column
(
'collects.value'
,
'指标值'
);
$grid
->
column
(
'collects.reality_refer'
,
'实际信源'
)
->
display
(
function
(
$val
)
{
$grid
->
column
(
'collects.reality_refer'
,
'实际信源'
)
->
display
(
function
(
$val
)
{
...
@@ -177,6 +173,14 @@ class TasksApproveController extends AdminController
...
@@ -177,6 +173,14 @@ class TasksApproveController extends AdminController
}
}
});
});
$grid
->
column
(
'collects.refer_level'
,
'信源等级'
);
$grid
->
column
(
'collects.refer_level'
,
'信源等级'
);
// $grid->rows(function (Grid\Row $row){
// if($row->number %2 == 0){
// $row->style("background-color:#eee");
// }
// });
// $grid->column('collects.net_img', '截图链接');
// $grid->column('collects.net_img', '截图链接');
...
...
app/Admin/Controllers/TasksOrderController.php
View file @
5040b107
...
@@ -2,20 +2,15 @@
...
@@ -2,20 +2,15 @@
namespace
App\Admin\Controllers
;
namespace
App\Admin\Controllers
;
use
App\Admin\Extensions\Tools\CreateSettlementOrder
;
use
App\Admin\Extensions\Tools\ReturnBack
;
use
App\Admin\Extensions\Tools\ReturnBack
;
use
App\Admin\Extensions\Tools\UserConfirmOrder
;
use
App\Admin\Extensions\Tools\UserConfirmOrder
;
use
App\Admin\Repositories\TasksReceive
;
use
App\Admin\Services\CityAreaService
;
use
App\Admin\Services\CityAreaService
;
use
App\Models\AdminUser
;
use
App\Models\TasksOrder
;
use
App\Models\TasksOrder
;
use
Dcat\Admin\Admin
;
use
Dcat\Admin\Admin
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Form
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Grid
;
use
Dcat\Admin\Layout\Content
;
use
Dcat\Admin\Layout\Content
;
use
Dcat\Admin\Show
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Http\Controllers\AdminController
;
use
Dcat\Admin\Widgets\Tab
;
class
TasksOrderController
extends
AdminController
class
TasksOrderController
extends
AdminController
{
{
...
...
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