Authored by htoooth

fix

... ... @@ -123,6 +123,7 @@ import _ from 'lodash';
import ProductCreateService from 'services/product/product-create-service';
import ProductService from 'services/product/product-service';
import {edit} from './store';
export default {
props: {
... ... @@ -134,42 +135,7 @@ export default {
}
},
data() {
return {
showLoading: true,
product: null,
table: {
data: [],
defaultSelectedSizes: [],
defaultSelectedColors: [],
},
desc: '',
render: {
goodsImagesReqStr: [],
productStandardRelationStr: [],
attributeProValuesOne: [],
attributeProValuesTwo: [],
productMaterial: {}
},
ruleValidate: {
productName: [
{ required: true, message: '商品名不能为空', trigger: 'blur' }
],
phrase: [
{ required: true, message: '商品卖点不能为空', trigger: 'blur' }
],
expectSaleTimeStr: [
{ required: true, message: '上市时间不能为空', trigger: 'change' }
],
seasons: [
{ required: true, message: '适销季不能为空', trigger: 'change' }
],
ageLevel: [
{ required: true, message: '年龄层不能为空', trigger: 'change' }
]
},
colors: [],
sizes: []
};
return edit.call(this);
},
created() {
this.productService = new ProductService();
... ...
export default function() {
return {
showLoading: true,
product: null,
table: {
data: [],
defaultSelectedSizes: [],
defaultSelectedColors: [],
},
desc: '',
render: {
goodsImagesReqStr: [],
productStandardRelationStr: [],
attributeProValuesOne: [],
attributeProValuesTwo: [],
productMaterial: {}
},
ruleValidate: {
productName: [
{required: true, message: '商品名不能为空', trigger: 'blur'}
],
phrase: [
{required: true, message: '商品卖点不能为空', trigger: 'blur'}
],
expectSaleTimeStr: [
{required: true, message: '上市时间不能为空', trigger: 'change'}
],
seasons: [
{required: true, message: '适销季不能为空', trigger: 'change'}
],
ageLevel: [
{required: true, message: '年龄层不能为空', trigger: 'change'}
]
},
colors: [],
sizes: []
};
};
\ No newline at end of file
... ...
import edit from './edit';
export {
edit
};
\ No newline at end of file
... ...