From 82f319f0c4d5fa51f11f666fa15fc05a0bff1ad6 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Wed, 20 Nov 2019 10:22:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=95=86=E5=93=81=E5=88=86?= =?UTF-8?q?=E7=B1=BBview=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/antgoods/goods/src/views/category/view.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/vendor/antgoods/goods/src/views/category/view.php b/vendor/antgoods/goods/src/views/category/view.php index 2a087d5..9e7b161 100644 --- a/vendor/antgoods/goods/src/views/category/view.php +++ b/vendor/antgoods/goods/src/views/category/view.php @@ -27,10 +27,14 @@ $this->params['breadcrumbs'][] = $this->title; 'sort_order', 'icon_type', 'icon', - 'is_show', - 'is_delete', - 'created_at', - 'updated_at', + [ + 'attribute' => 'is_show', + 'value' => function ($model) { + return $model->is_show == \antgoods\goods\models\ars\Category::IS_SHOW_DISPLAY ? '显示':'隐藏'; + } + ], + 'created_at:datetime', + 'updated_at:datetime', ], ]) ?>