Commit 9f014aa6 by 汪伟伟

单价

parent 3c4ab42e
...@@ -157,7 +157,7 @@ class TaskController extends AdminController ...@@ -157,7 +157,7 @@ class TaskController extends AdminController
return $val; return $val;
} }
}); });
// $grid->column('guide'); $grid->column('price');
// $grid->column('status'); // $grid->column('status');
// $grid->column('created_at'); // $grid->column('created_at');
// $grid->column('updated_at')->sortable(); // $grid->column('updated_at')->sortable();
...@@ -193,6 +193,7 @@ class TaskController extends AdminController ...@@ -193,6 +193,7 @@ class TaskController extends AdminController
$show->field('year'); $show->field('year');
$show->field('refer'); $show->field('refer');
$show->field('price');
$res = \App\Models\Task::query()->find($id); $res = \App\Models\Task::query()->find($id);
if ($res->images){ if ($res->images){
$show->field('images','参考指南')->image(); $show->field('images','参考指南')->image();
...@@ -260,6 +261,7 @@ class TaskController extends AdminController ...@@ -260,6 +261,7 @@ class TaskController extends AdminController
} }
return $years; return $years;
})->value(2024)->required(); })->value(2024)->required();
$form->decimal('price', '单价');
$form->text('refer', '参考信源')->required(); $form->text('refer', '参考信源')->required();
$form->editor('guide', '收集指南')->required(); $form->editor('guide', '收集指南')->required();
$form->hidden('images'); $form->hidden('images');
...@@ -341,6 +343,7 @@ class TaskController extends AdminController ...@@ -341,6 +343,7 @@ class TaskController extends AdminController
'year' => [$y], 'year' => [$y],
'refer' => $param['refer'], 'refer' => $param['refer'],
'guide' => $param['guide'], 'guide' => $param['guide'],
'price' => $param['price']??0,
'images' => $images, 'images' => $images,
]; ];
$query->create($insertData); $query->create($insertData);
......
...@@ -10,6 +10,7 @@ return [ ...@@ -10,6 +10,7 @@ return [
'city_id' => '地区', 'city_id' => '地区',
'year' => '时间', 'year' => '时间',
'refer' => '信源', 'refer' => '信源',
'price' => '单价(元)',
'guide' => '参考指南', 'guide' => '参考指南',
'status' => '状态', 'status' => '状态',
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment