From b6f9923618f65ca7ef2931b2095c18cf945b02d7 Mon Sep 17 00:00:00 2001
From: xuwenbo <717567226@qq.com>
Date: Fri, 4 Sep 2020 10:41:39 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=90=A5=E9=94=80=E5=95=86?=
=?UTF-8?q?=E5=93=81=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/activity/combination/form.vue | 11 +++---
src/views/activity/combination/index.vue | 44 ------------------------
src/views/activity/seckill/form.vue | 24 +++++--------
src/views/activity/seckill/index.vue | 44 ------------------------
src/views/shop/goods/index.vue | 37 +-------------------
5 files changed, 15 insertions(+), 145 deletions(-)
diff --git a/src/views/activity/combination/form.vue b/src/views/activity/combination/form.vue
index cebe2d0..a41ed7d 100644
--- a/src/views/activity/combination/form.vue
+++ b/src/views/activity/combination/form.vue
@@ -208,7 +208,7 @@
-
+
@@ -240,7 +240,7 @@
-
+
@@ -441,7 +441,7 @@ export default {
// is_new: 0,
// is_good: 0,
// is_postage: 0,
- // is_sub: 0,
+ is_sub: 0,
id: 0,
combinationId: 0,
productId: '',
@@ -746,7 +746,6 @@ export default {
]
}
}
-
that.treeSelect = res.cateList;
that.ruleList = res.ruleList;
that.templateList = res.tempList;
@@ -766,7 +765,6 @@ export default {
let id = that.$route.params.id || 0;
getCombinationInfo(id).then(async res => {
let data = res.productInfo;
- console.log('data:'+data)
if(data){
let cate_id = parseInt(data.cate_id) || 0;
this.attrs = data.items || [];
@@ -802,7 +800,8 @@ export default {
that.treeSelect = res.cateList;
that.ruleList = res.ruleList;
that.templateList = res.tempList;
-
+ that.form1.good.productId = data.productId;
+ that.form1.good.image = data.image
}).catch(res => {
console.log('err:'+res)
return this.$message({
diff --git a/src/views/activity/combination/index.vue b/src/views/activity/combination/index.vue
index dc8c111..4ef6894 100644
--- a/src/views/activity/combination/index.vue
+++ b/src/views/activity/combination/index.vue
@@ -15,7 +15,6 @@
size="mini"
type="primary"
icon="el-icon-plus"
- @click="add"
>
新增
@@ -174,49 +173,6 @@ export default {
})
})
.catch(() => { })
- },
- add() {
- this.isAdd = true
- this.$refs.form.dialog = true
- },
- edit(data) {
- this.isAdd = false
- const _this = this.$refs.form
- _this.form = {
- id: data.id,
- productId: data.productId,
- merId: data.merId,
- image: data.image,
- images: data.images,
- imageArr: data.image.split(','),
- sliderImageArr: data.images.split(','),
- title: data.title,
- attr: data.attr,
- people: data.people,
- info: data.info,
- price: data.price,
- sort: data.sort,
- sales: data.sales,
- stock: data.stock,
- addTime: data.addTime,
- isHost: data.isHost,
- isShow: data.isShow,
- isDel: data.isDel,
- combination: data.combination,
- merUse: data.merUse,
- isPostage: data.isPostage,
- postage: data.postage,
- description: data.description,
- startTime: data.startTime,
- stopTime: data.stopTime,
- startTimeDate: new Date(data.startTimeDate),
- endTimeDate: new Date(data.endTimeDate),
- effectiveTime: data.effectiveTime,
- cost: data.cost,
- browse: data.browse,
- unitName: data.unitName
- }
- _this.dialog = true
}
}
}
diff --git a/src/views/activity/seckill/form.vue b/src/views/activity/seckill/form.vue
index 88a8b99..fc74929 100644
--- a/src/views/activity/seckill/form.vue
+++ b/src/views/activity/seckill/form.vue
@@ -60,7 +60,7 @@
-
+
@@ -68,11 +68,6 @@
-
-
-
-
-
开启
@@ -218,7 +213,7 @@
-
+
@@ -250,7 +245,7 @@
-
+
@@ -470,8 +465,7 @@ export default {
browse: 0,
startTimeDate: '',
endTimeDate: '',
-
-
+ is_sub: '',
spec_type: 0,
temp_id: '',
attrs: [],
@@ -567,7 +561,6 @@ export default {
},
'form1.good': {
handler(val,oldVal){
- this.formValidate = val.cform
this.getInfoChooseGood (val.cform.id)
},
deep:true//对象内部的属性监听,也叫深度监听
@@ -710,7 +703,6 @@ export default {
that.formValidate.title = data.store_name
that.formValidate.info = data.store_info
that.formValidate.unitName = data.unit_name
- that.formValidate.imageArr = data.image
that.formValidate.sliderImageArr = data.slider_image
that.formValidate.status = 1
that.formValidate.header = [];
@@ -758,7 +750,6 @@ export default {
let id = that.$route.params.id || 0;
getSecKillInfo(id).then(async res => {
let data = res.productInfo;
- console.log('data:'+data)
if(data){
let cate_id = parseInt(data.cate_id) || 0;
this.attrs = data.items || [];
@@ -766,6 +757,8 @@ export default {
that.formValidate.cate_id = cate_id;
that.oneFormValidate = [data.attr];
that.formValidate.header = [];
+ that.formValidate.image = data.image
+ that.formValidate.sliderImageArr = data.slider_image
that.generate(data.productId);
that.manyFormValidate = data.attrs;
if(data.spec_type === 0){
@@ -790,7 +783,8 @@ export default {
]
}
}
-
+ that.form1.good.productId = data.productId
+ that.form1.good.image = data.image
that.treeSelect = res.cateList;
that.ruleList = res.ruleList;
that.templateList = res.tempList;
@@ -826,7 +820,7 @@ export default {
type: 'success'
});
setTimeout(() => {
- this.$router.push({ path: '/activity/combination' });
+ this.$router.push({ path: '/activity/seckill' });
}, 500);
}).catch(res => {
// this.$message({
diff --git a/src/views/activity/seckill/index.vue b/src/views/activity/seckill/index.vue
index a488b80..056ed33 100644
--- a/src/views/activity/seckill/index.vue
+++ b/src/views/activity/seckill/index.vue
@@ -15,7 +15,6 @@
size="mini"
type="primary"
icon="el-icon-plus"
- @click="add"
>
新增
@@ -24,7 +23,6 @@
-
@@ -88,15 +86,12 @@
/>
-