mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2025-12-26 07:56:43 +08:00
属性规格新增bug
This commit is contained in:
parent
9b4bea4f50
commit
1afc9e8af8
@ -52,7 +52,7 @@ export default {
|
||||
dataList: [{ propId: 0, propName: '', prodPropValues: [{ valueId: 0 }] }],
|
||||
dataRule: {
|
||||
propName: [
|
||||
{ required: true, message: '菜单名称不能为空', trigger: 'blur' }
|
||||
{ required: true, message: '属性名称不能为空', trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
page: {
|
||||
@ -87,6 +87,11 @@ export default {
|
||||
}
|
||||
this.dataList[0].prodPropValues = temp
|
||||
}
|
||||
if (this.dataList[0].prodPropValues.length < 1) {
|
||||
this.dataList[0].prodPropValues = [{ valueId: 0 }]
|
||||
this.$message.error('规格项不能为空')
|
||||
return
|
||||
}
|
||||
this.$http({
|
||||
url: this.$http.adornUrl(`/prod/spec`),
|
||||
method: this.dataList[0].propId ? 'put' : 'post',
|
||||
@ -126,4 +131,4 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user