This commit is contained in:
parent
dfc9667c90
commit
82624d49b5
|
|
@ -30,14 +30,13 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="shop_list">
|
<div class="shop_list">
|
||||||
<div class="item_wrap" v-for="(item, index) in productIds" :key="item.id">
|
<div class="item_wrap" style="display: flex;align-items: center;margin-top: 6px;"
|
||||||
<div style="display: flex;align-items: center;margin-top: 6px;">
|
v-for="(item, index) in productIds" :key="item.id">
|
||||||
<div class="name">{{ item.name }}</div>
|
<div class="name">{{ item.name }}</div>
|
||||||
<el-input style="width: 120px;" v-model="item.num" placeholder='请填写数量'
|
<el-input style="width: 120px;" v-model="item.num" placeholder='请填写数量'
|
||||||
@input="checkIfNum(item)"></el-input>
|
@input="checkIfNum(item)"></el-input>
|
||||||
<el-button type="text" @click="productIds.splice(index, 1)"
|
<el-button type="text" @click="productIds.splice(index, 1)"
|
||||||
style="margin-left: 20px;">删除</el-button>
|
style="margin-left: 20px;">删除</el-button>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -176,8 +175,8 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.shop_list {
|
.shop_list {
|
||||||
display: flex;
|
// display: flex;/
|
||||||
flex-wrap: wrap;
|
// flex-wrap: wrap;
|
||||||
|
|
||||||
.item_wrap {
|
.item_wrap {
|
||||||
$size: 80px;
|
$size: 80px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue