Authored by 陈峰

新建商品组件分类

... ... @@ -20,6 +20,7 @@
<script>
export default {
name: 'CheckboxAge',
props: ['value'],
data() {
let _this = this;
... ...
import CheckboxAge from './checkbox-age';
export {
CheckboxAge
};
... ...
import SizeEdit from './size-edit';
import ModalSizeEdit from './modal-size-edit';
export {
SizeEdit
ModalSizeEdit
};
... ...
... ... @@ -21,7 +21,7 @@ import productService from 'product-service';
import _ from 'lodash';
export default {
name: 'SizEdit',
name: 'ModalSizeEdit',
props: {
},
data() {
... ... @@ -163,7 +163,7 @@ export default {
productSizeReferList: JSON.stringify(productSizeReferList),
sizeImgFlag: this.sizeImgFlag ? 1 : 0
};
console.log(sizeInfoList)
productService.saveProdSizeInfo(postData).then(result => {
if (result.code === 200) {
this.loadingOk = false;
... ...
import RadioGender from './radio-gender';
import RadioSeason from './radio-season';
export {
RadioGender,
RadioSeason
};
... ...
... ... @@ -14,6 +14,7 @@
<script>
export default {
name: 'RadioGender',
props: ['value'],
data() {
let _this = this;
... ...
... ... @@ -17,6 +17,7 @@
<script>
export default {
name: 'RadioSeason',
props: ['value'],
data() {
let _this = this;
... ...
import SelectBrand from './select-brand';
import SelectCategory from './select-category';
import SelectSeason from './select-season';
export {
SelectBrand,
SelectCategory
SelectCategory,
SelectSeason
};
... ...
... ... @@ -11,7 +11,7 @@
<script>
export default {
name: 'product-goods-season',
name: 'SelectSeason',
props: ['value'],
data() {
let _this = this;
... ...
... ... @@ -70,7 +70,7 @@
<Row>
<Col span="8">
<Form-item label="货品季" prop="goodsSeason">
<product-goods-season v-model="product.goodsSeason"></product-goods-season>
<SelectSeason v-model="product.goodsSeason"></SelectSeason>
</Form-item>
</Col>
</Row>
... ... @@ -84,16 +84,16 @@
</Row>
<Form-item label="性别" prop="gender">
<product-gender v-model="product.gender"></product-gender>
<RadioGender v-model="product.gender"></RadioGender>
</Form-item>
<Form-item label="适销季" prop="seasons">
<product-season v-model="product.seasons"></product-season>
<RadioSeason v-model="product.seasons"></RadioSeason>
</Form-item>
<Form-item label="年龄层" prop="ageLevel">
<product-age v-model="product.ageLevel"></product-age>
<CheckboxAge v-model="product.ageLevel"></CheckboxAge>
</Form-item>
<Row>
... ... @@ -187,15 +187,12 @@
</template>
<script>
import _ from 'lodash';
import api from 'product-create/api';
import service from 'product-create/service';
const _ = require('lodash');
import Age from './age';
import Season from './season';
import Gender from './gender';
import GoodsSeason from './goods-season';
import {CheckboxAge} from 'components/checkbox';
import {RadioSeason, RadioGender} from 'components/radio';
import {SelectSeason} from 'components/select';
const makeColor = () => {
return {
... ... @@ -834,10 +831,10 @@ export default {
}
},
components: {
'product-age': Age,
'product-season': Season,
'product-gender': Gender,
'product-goods-season': GoodsSeason,
CheckboxAge,
RadioSeason,
RadioGender,
SelectSeason,
}
};
</script>
... ...
... ... @@ -51,11 +51,8 @@
export default {
created() {
service.getShop().then((res) => {
this.shopData = res.data;
this.tableData = JSON.parse(res.data.shopRelationList);
console.log('res=====');
console.log(res);
}, (error) => {
this.$Message.error(error.message);
});
... ... @@ -84,8 +81,6 @@
methods: {
updateData: function(content) {
this.shopData.shopIntro = content;
console.log('1this.shopData.shopIntro-------');
console.log(this.shopData.shopIntro);
},
uploadImageSuccess: function(attach, file) {
... ... @@ -108,17 +103,11 @@
shopIntro: this.shopData.shopIntro
};
console.log('2this.shopData.shopIntro-------');
console.log(this.shopData.shopIntro);
return result;
},
submit: function() {
let newShop = this.beforeSubmit();
console.log('3this.shopData.shopIntro-------');
console.log(this.shopData.shopIntro);
this.$Loading.start();
service.saveBaseShopInfo(newShop).then((result) => {
this.$Loading.finish();
... ...