Forráskód Böngészése

增加商品属性定义

abiao 5 éve
szülő
commit
5b326b14bd

+ 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