...
|
...
|
@@ -136,7 +136,9 @@ export default { |
|
|
data() {
|
|
|
return {
|
|
|
showLoading: true,
|
|
|
product: null,
|
|
|
product: {
|
|
|
seasons: ''
|
|
|
},
|
|
|
table: {
|
|
|
data: [],
|
|
|
defaultSelectedSizes: [],
|
...
|
...
|
@@ -178,7 +180,9 @@ export default { |
|
|
|
|
|
this.productService.getProduct(this.$route.params.id).then((result) => {
|
|
|
if (result.code === 200) {
|
|
|
this.product = result.data;
|
|
|
// 这里的处理单选的问题,双向绑定的问题
|
|
|
Object.assign(this.product, result.data);
|
|
|
|
|
|
_.update(this.product, 'goodsSeason', (s) => `${s}`);
|
|
|
if (!_.has(this.product, 'materialList')) {
|
|
|
this.product.materialList = [];
|
...
|
...
|
|