- List item
美多后台的添加
美多页面
添加商品
django中 序列化器添加
vue页面
<el-container>
<el-header class="md-header">
<!-- 商品增加 开始 -->
<div style="text-align: left">
<el-button type="danger" plain @click="dialogFormVisible = true">增加商品</el-button>
<el-dialog title="添加商品" :visible.sync="dialogFormVisible">
<el-form :model="form">
<el-form-item label="商品名称" :label-width="formLabelWidth">
<el-input v-model="form.name" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="商品价格" :label-width="formLabelWidth">
<el-input v-model="form.price" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="商品等级" :label-width="formLabelWidth">
<el-input v-model="form.level" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="商品等级" :label-width="formLabelWidth">
<el-input v-model="form.topid" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="商品库存" :label-width="formLabelWidth">
<el-input v-model="form.store" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="商品销量" :label-width="formLabelWidth">
<el-input v-model="form.sales" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="商品service" :label-width="formLabelWidth">
<el-input v-model="form.service" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="商品spu" :label-width="formLabelWidth">
<el-input v-model="form.spu" autocomplete="off