优化商品的多属性

This commit is contained in:
季圣华
2021-07-24 00:28:07 +08:00
parent c93fb4e45a
commit f797c61122

View File

@@ -80,7 +80,7 @@
</a-col> </a-col>
<a-col :lg="8" :md="12" :sm="24"> <a-col :lg="8" :md="12" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="多属性"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="多属性">
<a-switch checked-children="启用" un-checked-children="关闭" @change="onSkuChange"></a-switch> <a-switch checked-children="启用" un-checked-children="关闭" v-model="skuSwitch" @change="onSkuChange"></a-switch>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
@@ -363,6 +363,8 @@
this.form.resetFields(); this.form.resetFields();
this.model = Object.assign({}, record); this.model = Object.assign({}, record);
this.activeKey = '1' this.activeKey = '1'
this.skuSwitch = false
this.barCodeSwitch = false
this.visible = true; this.visible = true;
if(JSON.stringify(record) === '{}') { if(JSON.stringify(record) === '{}') {
this.fileList = [] this.fileList = []