Browse Source

修改antgoods模块规格模块样式

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
79ec8930f1
  1. 3
      vendor/antgoods/goods/src/models/ars/Attribute.php
  2. 1
      vendor/antgoods/goods/src/models/searchs/AttributeSearch.php
  3. 2
      vendor/antgoods/goods/src/views/attribute/_form.php
  4. 4
      vendor/antgoods/goods/src/views/attribute/create.php
  5. 2
      vendor/antgoods/goods/src/views/attribute/index.php
  6. 4
      vendor/antgoods/goods/src/views/attribute/update.php
  7. 7
      vendor/antgoods/goods/src/views/attribute/view.php
  8. 4
      vendor/antgoods/goods/src/views/goods/view.php
  9. 4
      vendor/antgoods/goods/src/views/shopcategory/view.php

3
vendor/antgoods/goods/src/models/ars/Attribute.php

@ -19,6 +19,9 @@ use yii\behaviors\TimestampBehavior;
*/ */
class Attribute extends \yii\db\ActiveRecord class Attribute extends \yii\db\ActiveRecord
{ {
//是否删除is_delete
const IS_DELETE_NO = 0;//未删除
const IS_DELETE_YES = 1;//已删除
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */

1
vendor/antgoods/goods/src/models/searchs/AttributeSearch.php

@ -118,6 +118,7 @@ class AttributeSearch extends Attribute
* 条件筛选 * 条件筛选
*/ */
private function filter($query, $dataProvider){ private function filter($query, $dataProvider){
$query->andFilterWhere(['is_delete' => Attribute::IS_DELETE_NO]);
if (!$this->validate()) { if (!$this->validate()) {
// uncomment the following line if you do not want to return any records when validation fails // uncomment the following line if you do not want to return any records when validation fails
// $query->where('0=1'); // $query->where('0=1');

2
vendor/antgoods/goods/src/views/attribute/_form.php

@ -20,8 +20,6 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'sort_order')->textInput() ?> <?= $form->field($model, 'sort_order')->textInput() ?>
<?= $form->field($model, 'is_delete')->textInput() ?>
<div class="form-group"> <div class="form-group">
<?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?> <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
<?= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?> <?= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?>

4
vendor/antgoods/goods/src/views/attribute/create.php

@ -5,8 +5,8 @@ use yii\helpers\Html;
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $model antgoods\goods\models\ars\Attribute */ /* @var $model antgoods\goods\models\ars\Attribute */
$this->title = '创建 Attribute';
$this->params['breadcrumbs'][] = ['label' => 'Attributes', 'url' => ['index']];
$this->title = '创建规格';
$this->params['breadcrumbs'][] = ['label' => '规格管理', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title; $this->params['breadcrumbs'][] = $this->title;
?> ?>
<div class="attribute-create"> <div class="attribute-create">

2
vendor/antgoods/goods/src/views/attribute/index.php

@ -7,7 +7,7 @@ use iron\grid\GridView;
/* @var $searchModel common\models\searchs\AttributeSearch */ /* @var $searchModel common\models\searchs\AttributeSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */ /* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Attributes';
$this->title = '规格管理';
$this->params['breadcrumbs'][] = $this->title; $this->params['breadcrumbs'][] = $this->title;
?> ?>
<div class="row"> <div class="row">

4
vendor/antgoods/goods/src/views/attribute/update.php

@ -5,8 +5,8 @@ use yii\helpers\Html;
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $model antgoods\goods\models\ars\Attribute */ /* @var $model antgoods\goods\models\ars\Attribute */
$this->title = '编辑 Attribute: ' . $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Attributes', 'url' => ['index']];
$this->title = '编辑规格: ' . $model->name;
$this->params['breadcrumbs'][] = ['label' => '规格管理', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = 'Update '; $this->params['breadcrumbs'][] = 'Update ';
?> ?>

7
vendor/antgoods/goods/src/views/attribute/view.php

@ -7,7 +7,7 @@ use yii\widgets\DetailView;
/* @var $model antgoods\goods\models\ars\Attribute */ /* @var $model antgoods\goods\models\ars\Attribute */
$this->title = $model->name; $this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Attributes', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => '规格管理', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title; $this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this); \yii\web\YiiAsset::register($this);
?> ?>
@ -25,9 +25,8 @@ $this->params['breadcrumbs'][] = $this->title;
'value:ntext', 'value:ntext',
'type', 'type',
'sort_order', 'sort_order',
'is_delete',
'created_at',
'updated_at',
'created_at:datetime',
'updated_at:datetime',
], ],
]) ?> ]) ?>

4
vendor/antgoods/goods/src/views/goods/view.php

@ -51,8 +51,8 @@ $this->params['breadcrumbs'][] = $this->title;
'experience_points', 'experience_points',
'is_delete', 'is_delete',
'express_template', 'express_template',
'created_at',
'updated_at',
'created_at:datetime',
'updated_at:datetime',
], ],
]) ?> ]) ?>

4
vendor/antgoods/goods/src/views/shopcategory/view.php

@ -32,8 +32,8 @@ $this->params['breadcrumbs'][] = $this->title;
'filter_attr:ntext', 'filter_attr:ntext',
'is_show', 'is_show',
'is_delete', 'is_delete',
'created_at',
'updated_at',
'created_at:datetime',
'updated_at:datetime',
], ],
]) ?> ]) ?>

Loading…
Cancel
Save