Commit a1366f5f by zhangquan

bug修复

1 parent 729b6a3d
...@@ -53,9 +53,14 @@ ...@@ -53,9 +53,14 @@
<div class="detail-table"> <div class="detail-table">
<div class="rich-text" v-if="curTitle==1" v-html="goodsInfo.goodsDescribe"></div> <div class="rich-text" v-if="curTitle==1" v-html="goodsInfo.goodsDescribe"></div>
<div class="grid" v-if="curTitle==2"> <div class="grid" v-if="curTitle==2">
<div class="gird-item" v-for="(item,index) in goodsInfo.attributeResponses" :key="index"> <template v-for="(item,index) in goodsInfo.attributeResponses">
<span class="label">{{item.attributeName}}</span> <div class="gird-item" v-if="item.attributeName" :key="index">
<span class="value">{{item.attributeValueName}}</span> <span class="label">{{item.attributeName}}</span>
<span class="value">{{item.attributeValueName || '--'}}</span>
</div>
</template>
<div v-if="!(goodsInfo.attributeResponses && goodsInfo.attributeResponses.length)">
暂无产品参数
</div> </div>
</div> </div>
</div> </div>
......
...@@ -221,11 +221,11 @@ export default { ...@@ -221,11 +221,11 @@ export default {
console.log(e) console.log(e)
const {order, prop} = e const {order, prop} = e
if(prop=='saleAmount'){ if(prop=='saleAmount'){
this.goodsFormObj.orderBySaleAmount = order=='ascending' ? 1 : 2 this.goodsFormObj.orderBySaleAmount = order=='ascending' ? 1 : order=='descending' ? 2 : ''
this.goodsFormObj.orderBySalePrice = '' this.goodsFormObj.orderBySalePrice = ''
} }
if(prop=='salePrice'){ if(prop=='salePrice'){
this.goodsFormObj.orderBySalePrice = order=='ascending' ? 1 : 2 this.goodsFormObj.orderBySalePrice = order=='ascending' ? 1 : order=='descending' ? 2 : ''
this.goodsFormObj.orderBySaleAmount = '' this.goodsFormObj.orderBySaleAmount = ''
} }
this.handleSearch() this.handleSearch()
......
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
{ {
label: '库存', label: '库存',
prop: 'goodsStock', prop: 'goodsStock',
sortable: true, // sortable: true,
}, },
{ {
label: '商品状态', label: '商品状态',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!