mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
选择商品弹窗优化
This commit is contained in:
@@ -51,8 +51,7 @@
|
||||
layout="total, sizes, prev, pager, next, jumper">
|
||||
</el-pagination>
|
||||
<span slot="footer">
|
||||
<el-button type="primary"
|
||||
@click="visible = false">取消</el-button>
|
||||
<el-button @click="visible = false">取消</el-button>
|
||||
<el-button type="primary"
|
||||
@click="submitProds()">确定</el-button>
|
||||
</span>
|
||||
@@ -164,6 +163,15 @@ export default {
|
||||
},
|
||||
// 确定事件
|
||||
submitProds () {
|
||||
if (!this.dataListSelections.length) {
|
||||
this.$message({
|
||||
message: '请选择商品',
|
||||
type: 'error',
|
||||
duration: 1000,
|
||||
onClose: () => {}
|
||||
})
|
||||
return
|
||||
}
|
||||
let prods = []
|
||||
this.dataListSelections.forEach(item => {
|
||||
let prodIndex = prods.findIndex((prod) => prod.prodId === item.prodId)
|
||||
|
||||
Reference in New Issue
Block a user