diff --git a/app/AdminAgent/Controllers/IndustryOrderController.php b/app/AdminAgent/Controllers/IndustryOrderController.php index c03644d..c8e38ba 100644 --- a/app/AdminAgent/Controllers/IndustryOrderController.php +++ b/app/AdminAgent/Controllers/IndustryOrderController.php @@ -68,11 +68,11 @@ class IndustryOrderController extends AdminController ->display('查看') ->modal('购买信息', function ($model) { $info = [ - '预留姓名' => $this->name ?? '', - '预留手机' => $this->mobile ?? '', - '产品名称' => $this->title, - '规格名称' => $this->spec->name ?? '', - '规格日期' => $this->spec->date ?? '', + ['预留姓名', $this->name ?? ''], + ['预留手机', $this->mobile ?? ''], + ['产品名称', $this->title], + ['规格名称', $this->spec->name ?? ''], + ['规格日期', $this->spec->date ?? ''], ]; return Table::make([], $info); }); diff --git a/app/AdminSupplier/Controllers/IndustryOrderController.php b/app/AdminSupplier/Controllers/IndustryOrderController.php index 9fd9878..09fa663 100644 --- a/app/AdminSupplier/Controllers/IndustryOrderController.php +++ b/app/AdminSupplier/Controllers/IndustryOrderController.php @@ -62,8 +62,8 @@ class IndustryOrderController extends AdminController ->display('查看') ->modal('规格信息', function ($model) { $info = [ - '规格名称' => $this->spec->name ?? '', - '规格日期' => $this->spec->date ?? '', + ['规格名称', $this->spec->name ?? ''], + ['规格日期', $this->spec->date ?? ''], ]; return Table::make([], $info); });