|
@@ -2,7 +2,7 @@
|
|
|
<div>
|
|
|
<el-dialog :title="exData.id ? '编辑': '新增'"
|
|
|
:visible.sync="dialog"
|
|
|
- width="70%"
|
|
|
+ width="900px"
|
|
|
:close-on-click-modal="false"
|
|
|
top="50px">
|
|
|
<el-form ref="form"
|
|
@@ -13,7 +13,7 @@
|
|
|
prop="category_id"
|
|
|
:rules="rules.categoryId"
|
|
|
label="商品分类:">
|
|
|
- <el-select v-model="form.category_id" placeholder="请选择">
|
|
|
+ <el-select style="width: 100%;" v-model="form.category_id" placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="item in categoryData"
|
|
|
:key="item.id"
|
|
@@ -25,11 +25,9 @@
|
|
|
<el-form-item prop="product_name"
|
|
|
:rules="formRules.required"
|
|
|
label="商品名称:">
|
|
|
- <el-col :span="16">
|
|
|
- <el-input v-model="form.product_name"
|
|
|
- placeholder="请输入商品名称"
|
|
|
- clearable></el-input>
|
|
|
- </el-col>
|
|
|
+ <el-input v-model="form.product_name"
|
|
|
+ placeholder="请输入商品名称"
|
|
|
+ clearable></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="product_img_url"
|
|
|
:rules="formRules.uploadImgs"
|
|
@@ -51,7 +49,7 @@
|
|
|
<el-form-item prop="product_place"
|
|
|
:rules="formRules.required"
|
|
|
label="出单位置:">
|
|
|
- <el-select v-model="form.product_place" placeholder="请选择">
|
|
|
+ <el-select style="width: 100%;" v-model="form.product_place" placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="item in [{id: '1', name: '厨房'},{id: '2', name: '柜台'}]"
|
|
|
:key="item.id"
|