diff --git a/src/components.d.ts b/src/components.d.ts
index c3bd2b4..90278b2 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -17,9 +17,16 @@ declare module "vue" {
ElBreadcrumb: typeof import("element-plus/es")["ElBreadcrumb"];
ElBreadcrumbItem: typeof import("element-plus/es")["ElBreadcrumbItem"];
ElButton: typeof import("element-plus/es")["ElButton"];
+ ElCarousel: typeof import("element-plus/es")["ElCarousel"];
+ ElCarouselItem: typeof import("element-plus/es")["ElCarouselItem"];
+ ElCheckbox: typeof import("element-plus/es")["ElCheckbox"];
+ ElCheckboxGroup: typeof import("element-plus/es")["ElCheckboxGroup"];
+ ElColorPicker: typeof import("element-plus/es")["ElColorPicker"];
ElContainer: typeof import("element-plus/es")["ElContainer"];
ElDatePicker: typeof import("element-plus/es")["ElDatePicker"];
ElDialog: typeof import("element-plus/es")["ElDialog"];
+ ElDivider: typeof import("element-plus/es")["ElDivider"];
+ ElDrawer: typeof import("element-plus/es")["ElDrawer"];
ElDropdown: typeof import("element-plus/es")["ElDropdown"];
ElDropdownItem: typeof import("element-plus/es")["ElDropdownItem"];
ElDropdownMenu: typeof import("element-plus/es")["ElDropdownMenu"];
@@ -27,19 +34,28 @@ declare module "vue" {
ElFormItem: typeof import("element-plus/es")["ElFormItem"];
ElHeader: typeof import("element-plus/es")["ElHeader"];
ElIcon: typeof import("element-plus/es")["ElIcon"];
+ ElImage: typeof import("element-plus/es")["ElImage"];
ElInput: typeof import("element-plus/es")["ElInput"];
ElInputNumber: typeof import("element-plus/es")["ElInputNumber"];
ElMain: typeof import("element-plus/es")["ElMain"];
ElMenu: typeof import("element-plus/es")["ElMenu"];
ElMenuItem: typeof import("element-plus/es")["ElMenuItem"];
ElOption: typeof import("element-plus/es")["ElOption"];
+ ElPagination: typeof import("element-plus/es")["ElPagination"];
ElRadio: typeof import("element-plus/es")["ElRadio"];
+ ElRadioButton: typeof import("element-plus/es")["ElRadioButton"];
ElRadioGroup: typeof import("element-plus/es")["ElRadioGroup"];
ElScrollbar: typeof import("element-plus/es")["ElScrollbar"];
ElSelect: typeof import("element-plus/es")["ElSelect"];
ElSubMenu: typeof import("element-plus/es")["ElSubMenu"];
+ ElSwitch: typeof import("element-plus/es")["ElSwitch"];
+ ElTable: typeof import("element-plus/es")["ElTable"];
+ ElTableColumn: typeof import("element-plus/es")["ElTableColumn"];
ElTabPane: typeof import("element-plus/es")["ElTabPane"];
ElTabs: typeof import("element-plus/es")["ElTabs"];
+ ElTag: typeof import("element-plus/es")["ElTag"];
+ ElTooltip: typeof import("element-plus/es")["ElTooltip"];
+ ElTree: typeof import("element-plus/es")["ElTree"];
ElTreeSelect: typeof import("element-plus/es")["ElTreeSelect"];
ElUpload: typeof import("element-plus/es")["ElUpload"];
Empty: typeof import("./components/ProTable/components/Empty.vue")["default"];
diff --git a/src/views/productManagement/list/utils/common/addLabelValue.ts b/src/utils/addLabelValue.ts
similarity index 100%
rename from src/views/productManagement/list/utils/common/addLabelValue.ts
rename to src/utils/addLabelValue.ts
diff --git a/src/views/QAManagement/list/edit.vue b/src/views/QAManagement/list/edit.vue
index e6dd4cd..2e8b4cf 100644
--- a/src/views/QAManagement/list/edit.vue
+++ b/src/views/QAManagement/list/edit.vue
@@ -20,7 +20,7 @@
-
+
diff --git a/src/views/articleManagement/class/index.vue b/src/views/articleManagement/class/index.vue
index a56512b..edf6702 100644
--- a/src/views/articleManagement/class/index.vue
+++ b/src/views/articleManagement/class/index.vue
@@ -83,7 +83,7 @@
-./utils/common/addLabelValue
diff --git a/src/views/productManagement/recycle/index.vue b/src/views/productManagement/recycle/index.vue
index cad5011..e448670 100644
--- a/src/views/productManagement/recycle/index.vue
+++ b/src/views/productManagement/recycle/index.vue
@@ -37,6 +37,7 @@ import { useMsg } from "@/hooks/useMsg";
import { getProductCategoryListApi } from "@/api/modules/productClass";
// 获取 ProTable 元素,调用其获取刷新数据方法(还能获取到当前查询参数,方便导出携带参数)
const proTableRef = ref(null);
+import { addLabelValue } from "@/utils/addLabelValue";
// 数据源
const dataStore = reactive({
@@ -75,20 +76,6 @@ const handleBtnClick = (type: any, row: any) => {
}
};
-const addLabelValue = (arr: any) => {
- return arr.map((item: any) => {
- // 为当前对象添加 label 和 value 属性
- const newItem = { ...item };
- newItem.label = newItem.name;
- newItem.value = newItem.id;
-
- // 如果有子对象,递归调用 addLabelValue 处理子对象
- if (newItem.children && Array.isArray(newItem.children)) {
- newItem.children = addLabelValue(newItem.children);
- }
- return newItem;
- });
-};
//产品分类(后端大佬说直接掉列表接口)
const getProductCategoryList = async () => {
const result = await getProductCategoryListApi({ page: 1, size: 500 });