From c1798dc224cabf3d6561a2b74cef42f4149ada1e Mon Sep 17 00:00:00 2001 From: user Date: Sat, 12 Jul 2025 23:59:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(style-edit):=20=E6=9B=B4=E6=96=B0=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E9=80=89=E6=8B=A9=E6=A1=86=E6=A0=87=E7=AD=BE=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E4=B8=BA=E2=80=9C=E5=90=8D=E7=A7=B0(=E7=BC=96?= =?UTF-8?q?=E5=8F=B7)=E2=80=9D=E4=BB=A5=E7=BB=9F=E4=B8=80=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .agent.md | 0 src/main/webapp/app/orders/style/style-edit.component.ts | 5 ++--- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 .agent.md diff --git a/.agent.md b/.agent.md new file mode 100644 index 0000000..e69de29 diff --git a/src/main/webapp/app/orders/style/style-edit.component.ts b/src/main/webapp/app/orders/style/style-edit.component.ts index 502c608..de2de34 100644 --- a/src/main/webapp/app/orders/style/style-edit.component.ts +++ b/src/main/webapp/app/orders/style/style-edit.component.ts @@ -7,7 +7,6 @@ import buildPaginationQuery from '@/shared/sort/sorts'; import axios from 'axios'; import type { VxeTableInstance } from 'vxe-table'; import JhiCamera from '@/shared/components/jhi_camera.vue'; -import { Value } from 'sass'; export default defineComponent({ name: 'StyleUpdate', @@ -64,7 +63,7 @@ export default defineComponent({ // 返回处理后的数据,用于VxeSelect组件显示 return data.map(item => ({ value: item.number, - label: `${item.number} - ${item.name}`, + label: `${item.name}(${item.number})`, })); } catch (e) { console.error($t('error.load.data.failed'), e); @@ -289,7 +288,7 @@ export default defineComponent({ settingTypes.value = settingTypesRes.data; qualityDicts.value = qualityDictsRes.data; styleGroupTitle.value = styleGroupTitleRes.data; - materials.value = materialsRes.data.map(item => ({ ...item, label: `${item.number}(${item.name})` })); + materials.value = materialsRes.data.map(item => ({ ...item, label: `${item.name}(${item.number})` })); companies.value = companiesRes.data; const id = route.params?.id;