|
@@ -310,12 +310,12 @@
|
|
if (valid) {
|
|
if (valid) {
|
|
console.log(this.ruleForm);
|
|
console.log(this.ruleForm);
|
|
if (this.$route.params.ProdID) {//修改
|
|
if (this.$route.params.ProdID) {//修改
|
|
- prodTypeUpdate({ProdID:this.$route.params.ProdID, ...this.ruleForm}, res => {
|
|
|
|
|
|
+ prodTypeUpdate([{ProdID:this.$route.params.ProdID, ...this.ruleForm}], res => {
|
|
this.$message.success('修改成功!')
|
|
this.$message.success('修改成功!')
|
|
this.$router.go(-1)
|
|
this.$router.go(-1)
|
|
})
|
|
})
|
|
} else {//添加
|
|
} else {//添加
|
|
- prodTypeCreate(this.ruleForm, res => {
|
|
|
|
|
|
+ prodTypeCreate([this.ruleForm], res => {
|
|
this.$message.success('创建成功!')
|
|
this.$message.success('创建成功!')
|
|
this.$router.push('/product')
|
|
this.$router.push('/product')
|
|
})
|
|
})
|
|
@@ -369,7 +369,7 @@
|
|
border-bottom: 1px solid #eff0f1;
|
|
border-bottom: 1px solid #eff0f1;
|
|
}
|
|
}
|
|
|
|
|
|
- .el-select, > > > .el-form-item__content, .el-cascader {
|
|
|
|
|
|
+ .el-select,/deep/ .el-form-item__content, .el-cascader {
|
|
width: 320px;
|
|
width: 320px;
|
|
}
|
|
}
|
|
}
|
|
}
|