From 8635d974e346b19a10af3806103cfdce378f14b2 Mon Sep 17 00:00:00 2001 From: JenniferW <1627055433@qq.com> Date: Thu, 3 Jul 2025 17:42:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/intention/Step2.vue | 175 +++++++++++++++++++++++----- 1 file changed, 148 insertions(+), 27 deletions(-) diff --git a/src/views/order/intention/Step2.vue b/src/views/order/intention/Step2.vue index 550ee5e..903dce4 100644 --- a/src/views/order/intention/Step2.vue +++ b/src/views/order/intention/Step2.vue @@ -29,42 +29,93 @@
车轴: - +
齿轮箱: - +
车轮: - +
制动盘: - +
- 查询 - 参数对比 + 查询
-
- -
- -
- -
-
{{ item.label }}
-
{{ item.code }}
-
-
+
+ + 参数对比 + +
+ +
+ +
+ +
+
{{ item.label }}
+
{{ item.code }}
+
+
+
- +
- +
{{ item.label }}
@@ -75,19 +126,29 @@
- +
上一步 - 下一步 + 下一步
- + @@ -118,10 +179,17 @@ const selectedCarTypeProxy = computed({ }, }); -const paramAxle = ref(""); -const paramGearbox = ref(""); -const paramWheel = ref(""); -const paramBrake = ref(""); +const paramAxle = ref("不限"); +const paramGearbox = ref("不限"); +const paramWheel = ref("不限"); +const paramBrake = ref("不限"); + +onMounted(() => { + if (!props.form.selectedCarType) { + selectedCarTypeProxy.value = "其他"; + } + onQuery(); // 首次自动查询,展示卡片 +}); function selectCarType(val) { selectedCarTypeProxy.value = val; @@ -153,7 +221,9 @@ function onQuery() { } const compareDialogVisible = ref(false); -const selectedCompareList = computed(() => queryResultList.value.filter(i => i.selected)); +const selectedCompareList = computed(() => + queryResultList.value.filter((i) => i.selected) +); const compareTableData = ref([ { param: "动车组联轴节", @@ -193,6 +263,10 @@ function onCompare() { } compareDialogVisible.value = true; } + +function toggleSelect(item) { + item.selected = !item.selected; +} \ No newline at end of file