Commit 90f85a5d by 前端

解决商品上架详情页商品标签显示错误的问题

1 parent f3290490
...@@ -5,40 +5,31 @@ ...@@ -5,40 +5,31 @@
<span>上架商品</span> <span>上架商品</span>
</div> </div>
<div class="check-tab"> <div class="check-tab">
<el-tabs v-model="tabsValue" type="card" class="my-tab-pane"> <el-tabs v-model="tabsValue"
<el-tab-pane type="card"
v-for="(item, idx) in goodTabs" class="my-tab-pane">
:key="item.name" <el-tab-pane v-for="(item, idx) in goodTabs"
:name="item.name" :key="item.name"
> :name="item.name">
<span slot="label" <span slot="label"><i class="el-icon-warning car-error-txt"
><i v-if="item.valiadError == 'Y'" />{{ item.title ? item.title + (idx + 1) : item.goodsName }}
class="el-icon-warning car-error-txt"
v-if="item.valiadError == 'Y'"
/>{{ item.title ? item.title + (idx + 1) : item.goodsName }}
</span> </span>
<span> <span>
<good-tab :info="item.info" :tab-idx="item.tabIndex" /> <good-tab :info="item.info"
:tab-idx="item.tabIndex" />
</span> </span>
</el-tab-pane> </el-tab-pane>
<el-tab-pane <el-tab-pane v-for="(item, idx) in packageTabs"
v-for="(item, idx) in packageTabs" :key="item.name"
:key="item.name" :label="item.title"
:label="item.title" :name="item.name">
:name="item.name" <span slot="label"><i class="el-icon-warning car-error-txt"
> v-if="item.valiadError == 'Y'" />{{ item.title ? item.title + (idx + 1) : item.goodsName }}
<span slot="label"
><i
class="el-icon-warning car-error-txt"
v-if="item.valiadError == 'Y'"
/>{{ item.title ? item.title + (idx + 1) : item.goodsName }}
</span> </span>
<span> <span>
<package-tab <package-tab :info="item.info"
:info="item.info" :tab-idx="item.tabIndex"
:tab-idx="item.tabIndex" @packageEditInfo="getPackageEditInfo_notice" />
@packageEditInfo="getPackageEditInfo_notice"
/>
</span> </span>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
...@@ -100,7 +91,7 @@ export default { ...@@ -100,7 +91,7 @@ export default {
const tabIndex = const tabIndex =
length == 0 ? length : this.goodTabs[length - 1].tabIndex + 1 length == 0 ? length : this.goodTabs[length - 1].tabIndex + 1
this.goodTabs.push({ this.goodTabs.push({
goodsName: item.goodsName, goodsName: item.upgradeGoodsName,
name: "good_" + tabIndex, name: "good_" + tabIndex,
tabIndex: tabIndex, tabIndex: tabIndex,
// goodId: item.id, // goodId: item.id,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!