Browse Source

refactor:规格管理列表增加规格名称检索

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
3d2afc611e
  1. 13
      backend/modules/goods/views/attribute/_search.php
  2. 3
      backend/modules/goods/views/goods/sku_edit.php
  3. 38
      backend/views/layouts/sidebar.php

13
backend/modules/goods/views/attribute/_search.php

@ -29,6 +29,19 @@ use \blobt\widgets\DateRangePicker;
])
?>
</div>
<div class="col">
<?= $form->field($model, 'name', [
"template" => "{input}{error}",
"inputOptions" => [
"placeholder" => "规格名称",
"class" => "form-control",
],
"errorOptions" => [
"class" => "error-tips"
]
])
?>
</div>
<div class="col">
<?= $form->field($model, "created_at_range", [
"template" => "{input}{error}",

3
backend/modules/goods/views/goods/sku_edit.php

@ -5,7 +5,7 @@ use backend\modules\goods\web\GoodsSkuEditAsset;
$this->title = '添加SKU';
$this->params['breadcrumbs'][] = ['label' => '商品列表', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
//GoodsSkuEditAsset::register($this);
GoodsSkuEditAsset::register($this);
?>
<div id="app"></div>
<script>
@ -13,4 +13,3 @@ $this->params['breadcrumbs'][] = $this->title;
var attributes = <?=json_encode($attributes)?>;
var csrfToken = "<?= Yii::$app->request->csrfToken ?>";
</script>
<?= $this->render('@app/web/custom/sku_item.html') ?>

38
backend/views/layouts/sidebar.php

@ -15,11 +15,11 @@ use iron\widgets\Menu;
echo Menu::widget([
'items' => [
// ['label' => 'MAIN NAVIGATION', 'is_header' => true],
// ['label' => '商城管理', 'url' => '#', 'icon' => 'far fa-store', 'items' => [
// ['label' => '运营数据', 'url' => ['site/index', 'tag' => 'new']],
// ['label' => '基础配置', 'url' => ['config/index', 'tag' => 'new']],
// ]
// ],
['label' => '商城管理', 'url' => '#', 'icon' => 'far fa-store', 'items' => [
['label' => '运营数据', 'url' => ['site/index', 'tag' => 'new']],
['label' => '基础配置', 'url' => ['config/index', 'tag' => 'new']],
]
],
['label' => '商品管理', 'url' => '#', 'icon' => 'far fa-box', 'items' => [
['label' => '后台商品分类', 'url' => ['/goods/category/index']],
['label' => '规格管理', 'url' => ['/goods/attribute/index']],
@ -29,20 +29,20 @@ use iron\widgets\Menu;
['label' => '商品列表', 'url' => ['/goods/goods/index']],
]
],
// ['label' => '订单管理', 'url' => '#', 'icon' => 'far fa-list-alt', 'items' => [
// ['label' => '订单列表', 'url' => ['/shop/order/index', 'tag' => 'new']],
// ],
// ],
// ['label' => '配送服务', 'url' => '#', 'icon' => 'far fa-shipping-fast', 'items' => [
// ['label' => '上门自提', 'url' => ['/shop/taking-site/index']],
// ['label' => '运费模板', 'url' => ['/shop/express-template/index']],
// ]
// ],
// ['label' => '售后管理', 'url' => '#', 'icon' => 'far fa-retweet', 'items' => [
// ['label' => '售后管理', 'url' => ['/shop/after-sale/index']],
// ['label' => '评论', 'url' => ['/shop/comment/index']],
// ]
// ],
['label' => '订单管理', 'url' => '#', 'icon' => 'far fa-list-alt', 'items' => [
['label' => '订单列表', 'url' => ['/shop/order/index', 'tag' => 'new']],
],
],
['label' => '配送服务', 'url' => '#', 'icon' => 'far fa-shipping-fast', 'items' => [
['label' => '上门自提', 'url' => ['/shop/taking-site/index']],
['label' => '运费模板', 'url' => ['/shop/express-template/index']],
]
],
['label' => '售后管理', 'url' => '#', 'icon' => 'far fa-retweet', 'items' => [
['label' => '售后管理', 'url' => ['/shop/after-sale/index']],
['label' => '评论', 'url' => ['/shop/comment/index']],
]
],
]
]);

Loading…
Cancel
Save