|
@@ -171,6 +171,7 @@ const initProjectKey = () => {
|
|
|
const currentProject = cache.local.getJSON('currentProject');
|
|
const currentProject = cache.local.getJSON('currentProject');
|
|
|
if (currentProject && currentProject.id) {
|
|
if (currentProject && currentProject.id) {
|
|
|
queryParams.value.itemId = currentProject.id;
|
|
queryParams.value.itemId = currentProject.id;
|
|
|
|
|
+ form.value.itemId = currentProject.id;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -263,6 +264,7 @@ const handleUpdate = async (row: ProductCategoryVO) => {
|
|
|
const submitForm = () => {
|
|
const submitForm = () => {
|
|
|
productCategoryFormRef.value?.validate(async (valid: boolean) => {
|
|
productCategoryFormRef.value?.validate(async (valid: boolean) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
|
+ form.value.itemId = cache.local.getJSON('currentProject').id;
|
|
|
form.value.id ? await updateProductCategory(form.value) : await addProductCategory(form.value);
|
|
form.value.id ? await updateProductCategory(form.value) : await addProductCategory(form.value);
|
|
|
proxy?.$modal.msgSuccess('操作成功');
|
|
proxy?.$modal.msgSuccess('操作成功');
|
|
|
dialog.visible = false;
|
|
dialog.visible = false;
|