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
9f014aa6
Commit
9f014aa6
authored
Jan 22, 2024
by
汪伟伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单价
parent
3c4ab42e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
app/Admin/Controllers/TaskController.php
+4
-1
resources/lang/zh_CN/task.php
+1
-0
No files found.
app/Admin/Controllers/TaskController.php
View file @
9f014aa6
...
...
@@ -157,7 +157,7 @@ class TaskController extends AdminController
return
$val
;
}
});
// $grid->column('guid
e');
$grid
->
column
(
'pric
e'
);
// $grid->column('status');
// $grid->column('created_at');
// $grid->column('updated_at')->sortable();
...
...
@@ -193,6 +193,7 @@ class TaskController extends AdminController
$show
->
field
(
'year'
);
$show
->
field
(
'refer'
);
$show
->
field
(
'price'
);
$res
=
\App\Models\Task
::
query
()
->
find
(
$id
);
if
(
$res
->
images
){
$show
->
field
(
'images'
,
'参考指南'
)
->
image
();
...
...
@@ -260,6 +261,7 @@ class TaskController extends AdminController
}
return
$years
;
})
->
value
(
2024
)
->
required
();
$form
->
decimal
(
'price'
,
'单价'
);
$form
->
text
(
'refer'
,
'参考信源'
)
->
required
();
$form
->
editor
(
'guide'
,
'收集指南'
)
->
required
();
$form
->
hidden
(
'images'
);
...
...
@@ -341,6 +343,7 @@ class TaskController extends AdminController
'year'
=>
[
$y
],
'refer'
=>
$param
[
'refer'
],
'guide'
=>
$param
[
'guide'
],
'price'
=>
$param
[
'price'
]
??
0
,
'images'
=>
$images
,
];
$query
->
create
(
$insertData
);
...
...
resources/lang/zh_CN/task.php
View file @
9f014aa6
...
...
@@ -10,6 +10,7 @@ return [
'city_id'
=>
'地区'
,
'year'
=>
'时间'
,
'refer'
=>
'信源'
,
'price'
=>
'单价(元)'
,
'guide'
=>
'参考指南'
,
'status'
=>
'状态'
,
],
...
...
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