feat: 分组追加商品修复
This commit is contained in:
@@ -270,7 +270,14 @@ async function addConfirm() {
|
||||
}
|
||||
// 添加商品的回调
|
||||
function subitgood() {
|
||||
selectData.value = contentRefs.value.getselectTable()
|
||||
|
||||
if (title.value == "编辑分组") {
|
||||
let arr = selectData.value
|
||||
arr.push(...contentRefs.value.getselectTable())
|
||||
selectData.value = arr
|
||||
} else {
|
||||
selectData.value = contentRefs.value.getselectTable()
|
||||
}
|
||||
switchref.value = false
|
||||
myDialogRef.value.close()
|
||||
}
|
||||
|
||||
@@ -20,7 +20,6 @@ const modalConfig: IModalConfig<UserForm> = {
|
||||
});
|
||||
data.productIds = arr
|
||||
}
|
||||
console.log("提交之前处理2", data);
|
||||
return UserAPI.addunit(data)
|
||||
},
|
||||
beforeSubmit(data: any) {
|
||||
|
||||
@@ -27,7 +27,6 @@ const contentConfig: IContentConfig<UserPageQuery> = {
|
||||
// exportAction: UserAPI.export,
|
||||
// importTemplate: UserAPI.downloadTemplate,
|
||||
modifyAction: function (params) {
|
||||
console.log(params, '调试2')
|
||||
let obj = { ...params }
|
||||
return UserAPI.update(obj);
|
||||
},
|
||||
|
||||
@@ -22,7 +22,6 @@ const modalConfig: IModalConfig<UserForm> = {
|
||||
});
|
||||
data.productIds = arr
|
||||
}
|
||||
console.log("提交之前处理2", data);
|
||||
// return UserAPI.update(data);
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user