Commit 9f014aa6 by 汪伟伟

单价

parent 3c4ab42e
......@@ -157,7 +157,7 @@ class TaskController extends AdminController
return $val;
}
});
// $grid->column('guide');
$grid->column('price');
// $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);
......
......@@ -10,6 +10,7 @@ return [
'city_id' => '地区',
'year' => '时间',
'refer' => '信源',
'price' => '单价(元)',
'guide' => '参考指南',
'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