Commit 8a67ed64 authored by celaraze's avatar celaraze
Browse files

优化:命名空间导入&返回参数

parent e25b1a0d
No related merge requests found
Showing with 39 additions and 39 deletions
+39 -39
......@@ -14,7 +14,7 @@ class DeviceRecordDeleteActionNew extends RowAction
$this->title = '🔨 ' . admin_trans_label('Delete');
}
public function render()
public function render(): Modal
{
// 实例化表单类并传递自定义参数
$form = DeviceRecordDeleteForm::make()->payload([
......
......@@ -17,9 +17,9 @@ class DeviceRecordUpdateSSHAction extends RowAction
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
// 实例化表单类并传递自定义参数
$form = DeviceSSHInfoForm::make()->payload(['id' => $this->getKey()]);
......
......@@ -17,9 +17,9 @@ class DeviceTrackUpdateDeleteAction extends RowAction
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
$form = DeviceTrackUpdateDeleteForm::make()->payload([
'id' => $this->getKey(),
......
......@@ -20,9 +20,9 @@ class MaintenanceRecordCreateAction extends RowAction
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
$form = MaintenanceRecordCreateForm::make()->payload([
'item' => $this->item,
......
......@@ -17,9 +17,9 @@ class MaintenanceRecordUpdateAction extends RowAction
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
$form = MaintenanceRecordUpdateForm::make()->payload(['id' => $this->getKey()]);
......
......@@ -17,9 +17,9 @@ class PartRecordCreateUpdateTrackAction extends RowAction
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
$form = PartRecordCreateUpdateTrackForm::make()->payload(['id' => $this->getKey()]);
......
......@@ -17,9 +17,9 @@ class ServiceIssueUpdateAction extends RowAction
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
$form = ServiceIssueUpdateForm::make()->payload(['id' => $this->getKey()]);
......
......@@ -17,9 +17,9 @@ class ServiceRecordCreateIssueAction extends RowAction
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
$form = ServiceIssueCreateForm::make()->payload(['id' => $this->getKey()]);
......
......@@ -17,9 +17,9 @@ class ServiceRecordCreateUpdateTrackAction extends RowAction
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
$form = ServiceRecordCreateUpdateTrackForm::make()->payload(['id' => $this->getKey()]);
......
......@@ -17,9 +17,9 @@ class SoftwareRecordCreateUpdateTrackAction extends RowAction
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
$form = SoftwareRecordCreateUpdateTrackForm::make()->payload(['id' => $this->getKey()]);
......
......@@ -17,9 +17,9 @@ class TodoRecordUpdateAction extends RowAction
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
$form = TodoRecordUpdateForm::make()->payload(['id' => $this->getKey()]);
......
......@@ -17,9 +17,9 @@ class ConsumableInAction extends AbstractTool
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
return Modal::make()
->lg()
......
......@@ -17,9 +17,9 @@ class ConsumableOutAction extends AbstractTool
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
return Modal::make()
->lg()
......
......@@ -17,9 +17,9 @@ class DeviceRecordImportAction extends AbstractTool
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
return Modal::make()
->lg()
......
......@@ -17,9 +17,9 @@ class PartRecordImportAction extends AbstractTool
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
return Modal::make()
->lg()
......
......@@ -17,9 +17,9 @@ class PurchasedChannelImportAction extends AbstractTool
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
return Modal::make()
->lg()
......
......@@ -17,9 +17,9 @@ class SoftwareRecordImportAction extends AbstractTool
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
return Modal::make()
->lg()
......
......@@ -17,9 +17,9 @@ class TodoRecordCreateAction extends AbstractTool
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
return Modal::make()
->lg()
......
......@@ -17,9 +17,9 @@ class UserImportAction extends AbstractTool
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
return Modal::make()
->lg()
......
......@@ -17,9 +17,9 @@ class VendorRecordImportAction extends AbstractTool
/**
* 渲染模态框.
*
* @return Modal|string
* @return Modal
*/
public function render()
public function render(): Modal
{
return Modal::make()
->lg()
......
Supports Markdown
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