소스 검색

增加商品属性定义

abiao 5 년 전
부모
커밋
5b326b14bd
3개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 1
      app/models/product_attr.rb
  2. 2 1
      app/models/product_attr_config.rb
  3. 1 1
      app/models/product_attr_key.rb

+ 2 - 1
app/models/product_attr.rb

@@ -7,7 +7,8 @@ class ProductAttr < ActiveRecord::Base
     
     rails_admin do
         navigation_label '商品管理'
-        weight -230
+        weight -250
+        parent ProductAttrKey
         nestable_tree({
             position_field: :position,
             max_depth: 2

+ 2 - 1
app/models/product_attr_config.rb

@@ -7,7 +7,8 @@ class ProductAttrConfig < ActiveRecord::Base
     
     rails_admin do
         navigation_label '商品管理'
-        weight -230
+        weight -250
+        parent ProductAttrKey
         nestable_tree({
             position_field: :position,
             max_depth: 2

+ 1 - 1
app/models/product_attr_key.rb

@@ -6,7 +6,7 @@ class ProductAttrKey < ActiveRecord::Base
     
     rails_admin do
         navigation_label '商品管理'
-        weight -230
+        weight -250
         nestable_tree({
             position_field: :position,
             max_depth: 2