修改秒杀添加商品可能出现的bug
parent
28473979ec
commit
b9aa720bea
|
@ -21,7 +21,6 @@
|
||||||
format="yyyy-MM-dd HH:mm:ss"
|
format="yyyy-MM-dd HH:mm:ss"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
clearable
|
clearable
|
||||||
@on-change="applyTimeChange"
|
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
>
|
>
|
||||||
</DatePicker>
|
</DatePicker>
|
||||||
|
@ -33,7 +32,6 @@
|
||||||
format="yyyy-MM-dd"
|
format="yyyy-MM-dd"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
clearable
|
clearable
|
||||||
@on-change="startTimeChange"
|
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
>
|
>
|
||||||
</DatePicker>
|
</DatePicker>
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
</template>
|
</template>
|
||||||
</Row>
|
</Row>
|
||||||
<Row class="operation">
|
<Row class="operation">
|
||||||
<Tabs type="card" v-model="tabIndex">
|
<Tabs type="card" v-model="tabCurrent">
|
||||||
<TabPane v-for="(tab, tabIndex) in goodsList" :key="tabIndex" :label="tab.hour" :name="tabIndex + ''">
|
<TabPane v-for="(tab, tabIndex) in goodsList" :key="tabIndex" :label="tab.hour" :name="tabIndex + ''">
|
||||||
<Table :loading="loading" border :columns="goodsColumns" :data="tab.list" :ref="'table' + tabIndex"
|
<Table :loading="loading" border :columns="goodsColumns" v-if="tabIndex == tabCurrent" :data="tab.list" :ref="'table' + tabIndex"
|
||||||
@on-selection-change="changeSelect">
|
@on-selection-change="changeSelect">
|
||||||
<template slot-scope="{ row }" slot="originalPrice">
|
<template slot-scope="{ row }" slot="originalPrice">
|
||||||
<div>{{ row.originalPrice | unitPrice("¥") }}</div>
|
<div>{{ row.originalPrice | unitPrice("¥") }}</div>
|
||||||
|
@ -86,8 +86,14 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
skuSelect,
|
skuSelect,
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
tabCurrent(val){
|
||||||
|
this.tabIndex = val
|
||||||
|
}
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
tabCurrent:0,
|
||||||
promotionStatus: "", // 活动状态
|
promotionStatus: "", // 活动状态
|
||||||
loading: false, // 表单加载状态
|
loading: false, // 表单加载状态
|
||||||
searchForm: {
|
searchForm: {
|
||||||
|
@ -269,6 +275,7 @@ export default {
|
||||||
selectedGoodsData(callback) {
|
selectedGoodsData(callback) {
|
||||||
let way = [];
|
let way = [];
|
||||||
let data = JSON.parse(JSON.stringify(callback));
|
let data = JSON.parse(JSON.stringify(callback));
|
||||||
|
|
||||||
data.forEach((e) => {
|
data.forEach((e) => {
|
||||||
way.push({
|
way.push({
|
||||||
goodsName: e.goodsName,
|
goodsName: e.goodsName,
|
||||||
|
@ -284,10 +291,14 @@ export default {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
this.$set(this.goodsList[this.tabIndex], "list", [
|
this.$set(this.goodsList[this.tabIndex], "list", [
|
||||||
...way,
|
...way,
|
||||||
...this.defaultGoodsList,
|
...this.defaultGoodsList,
|
||||||
]);
|
]);
|
||||||
|
// this.$nextTick(() => {
|
||||||
|
// this.$forceUpdate();
|
||||||
|
// });
|
||||||
},
|
},
|
||||||
openSkuList() {
|
openSkuList() {
|
||||||
// 显示商品选择器
|
// 显示商品选择器
|
||||||
|
|
Loading…
Reference in New Issue