!1 add goods parameter sort
Merge pull request !1 from OceansDeep/dev-gl
This commit is contained in:
		
						commit
						30b968b3e5
					
				@ -49,27 +49,27 @@
 | 
				
			|||||||
              class="goods-show-info"
 | 
					              class="goods-show-info"
 | 
				
			||||||
              v-for="(item, index) in goodsList"
 | 
					              v-for="(item, index) in goodsList"
 | 
				
			||||||
              :key="index"
 | 
					              :key="index"
 | 
				
			||||||
              @click="goGoodsDetail(item.id, item.goodsId)"
 | 
					              @click="goGoodsDetail(item.id, item.content.goodsId)"
 | 
				
			||||||
            >
 | 
					            >
 | 
				
			||||||
              <div class="goods-show-img">
 | 
					              <div class="goods-show-img">
 | 
				
			||||||
                <img width="220" height="220" :src="item.thumbnail" />
 | 
					                <img width="220" height="220" :src="item.content.thumbnail" />
 | 
				
			||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
              <div class="goods-show-price">
 | 
					              <div class="goods-show-price">
 | 
				
			||||||
                <span>
 | 
					                <span>
 | 
				
			||||||
                  <span class="seckill-price text-danger">{{
 | 
					                  <span class="seckill-price text-danger">{{
 | 
				
			||||||
                    item.price | unitPrice("¥")
 | 
					                    item.content.price | unitPrice("¥")
 | 
				
			||||||
                  }}</span>
 | 
					                  }}</span>
 | 
				
			||||||
                </span>
 | 
					                </span>
 | 
				
			||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
              <div class="goods-show-detail">
 | 
					              <div class="goods-show-detail">
 | 
				
			||||||
                <span>{{ item.goodsName }}</span>
 | 
					                <span>{{ item.content.goodsName }}</span>
 | 
				
			||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
              <div class="goods-show-num">
 | 
					              <div class="goods-show-num">
 | 
				
			||||||
                已有<span>{{ item.commentNum || 0 }}</span
 | 
					                已有<span>{{ item.content.commentNum || 0 }}</span
 | 
				
			||||||
                >人评价
 | 
					                >人评价
 | 
				
			||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
              <div class="goods-show-seller">
 | 
					              <div class="goods-show-seller">
 | 
				
			||||||
                <Tag v-if="item.selfOperated" style="padding:0 4px;" size="default" color="error">自营</Tag><span>{{ item.storeName }}</span>
 | 
					                <Tag v-if="item.content.selfOperated" style="padding:0 4px;" size="default" color="error">自营</Tag><span>{{ item.content.storeName }}</span>
 | 
				
			||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
				
			|||||||
@ -79,6 +79,9 @@
 | 
				
			|||||||
            <Checkbox label=1 v-model="paramForm.required">必填</Checkbox>
 | 
					            <Checkbox label=1 v-model="paramForm.required">必填</Checkbox>
 | 
				
			||||||
            <Checkbox label=1 v-model="paramForm.isIndex">可索引</Checkbox>
 | 
					            <Checkbox label=1 v-model="paramForm.isIndex">可索引</Checkbox>
 | 
				
			||||||
          </FormItem>
 | 
					          </FormItem>
 | 
				
			||||||
 | 
					          <FormItem label="排序" prop="specName3">
 | 
				
			||||||
 | 
					            <Input type="number" v-model="paramForm.sort" style="width: 100%" />
 | 
				
			||||||
 | 
					          </FormItem>
 | 
				
			||||||
        </Form>
 | 
					        </Form>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <div slot="footer">
 | 
					        <div slot="footer">
 | 
				
			||||||
@ -170,6 +173,7 @@ export default {
 | 
				
			|||||||
        options: "",
 | 
					        options: "",
 | 
				
			||||||
        required: false,
 | 
					        required: false,
 | 
				
			||||||
        isIndex: false,
 | 
					        isIndex: false,
 | 
				
			||||||
 | 
					        sort: 0,
 | 
				
			||||||
        groupId: group.groupId,
 | 
					        groupId: group.groupId,
 | 
				
			||||||
        categoryId: this.categoryId,
 | 
					        categoryId: this.categoryId,
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
@ -186,9 +190,9 @@ export default {
 | 
				
			|||||||
        isIndex: param.isIndex==1?true:false,
 | 
					        isIndex: param.isIndex==1?true:false,
 | 
				
			||||||
        groupId: group.groupId,
 | 
					        groupId: group.groupId,
 | 
				
			||||||
        categoryId: this.categoryId,
 | 
					        categoryId: this.categoryId,
 | 
				
			||||||
 | 
					        sort: param.sort,
 | 
				
			||||||
        id: param.id,
 | 
					        id: param.id,
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
      console.warn(this.paramForm.options)
 | 
					 | 
				
			||||||
      this.ops = this.paramForm.options
 | 
					      this.ops = this.paramForm.options
 | 
				
			||||||
      this.modalType = 1;
 | 
					      this.modalType = 1;
 | 
				
			||||||
      this.modalTitle = "修改参数";
 | 
					      this.modalTitle = "修改参数";
 | 
				
			||||||
 | 
				
			|||||||
@ -509,6 +509,7 @@ export default {
 | 
				
			|||||||
          isIndex: "",
 | 
					          isIndex: "",
 | 
				
			||||||
          required: "",
 | 
					          required: "",
 | 
				
			||||||
          paramId: "",
 | 
					          paramId: "",
 | 
				
			||||||
 | 
					          sort: ""
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[
 | 
					      this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[
 | 
				
			||||||
@ -519,6 +520,7 @@ export default {
 | 
				
			|||||||
        isIndex: params.isIndex,
 | 
					        isIndex: params.isIndex,
 | 
				
			||||||
        required: params.required,
 | 
					        required: params.required,
 | 
				
			||||||
        paramId: params.id,
 | 
					        paramId: params.id,
 | 
				
			||||||
 | 
					        sort: params.sort
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    // 编辑sku图片
 | 
					    // 编辑sku图片
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user