|
|
@ -79,7 +79,7 @@ class AgentProductController extends AdminController |
|
|
]]; |
|
|
]]; |
|
|
return Table::make($titles, $data); |
|
|
return Table::make($titles, $data); |
|
|
});*/ |
|
|
});*/ |
|
|
|
|
|
|
|
|
|
|
|
$grid->column('single_deposit'); |
|
|
$grid->column('status')->help('切换开关可改变上下架状态') |
|
|
$grid->column('status')->help('切换开关可改变上下架状态') |
|
|
->if(fn() => in_array($this->status, [ProductStatus::SOLD_OUT, ProductStatus::ON_SALE])) |
|
|
->if(fn() => in_array($this->status, [ProductStatus::SOLD_OUT, ProductStatus::ON_SALE])) |
|
|
->using([ProductStatus::SOLD_OUT => 0, ProductStatus::ON_SALE => 1]) |
|
|
->using([ProductStatus::SOLD_OUT => 0, ProductStatus::ON_SALE => 1]) |
|
|
@ -139,6 +139,7 @@ class AgentProductController extends AdminController |
|
|
if (Admin::user()->type == AgentType::OPERATOR) { |
|
|
if (Admin::user()->type == AgentType::OPERATOR) { |
|
|
$show->field('guide.name', '地接'); |
|
|
$show->field('guide.name', '地接'); |
|
|
} |
|
|
} |
|
|
|
|
|
$show->field('single_deposit'); |
|
|
$show->field('title'); |
|
|
$show->field('title'); |
|
|
$show->field('pictures')->image('', 80, 80); |
|
|
$show->field('pictures')->image('', 80, 80); |
|
|
$show->field('know')->unescape(); |
|
|
$show->field('know')->unescape(); |
|
|
|